public inbox for initramfs@vger.kernel.org
 help / color / mirror / Atom feed
* [dracut] rd.shell won't work if "root=" is missing
@ 2016-01-05  9:11 tammo-v8BkjJTOJzf1qYPpFx2fzhvVK+yQ3ZXh
  2016-04-15 10:04 ` Harald Hoyer
  0 siblings, 1 reply; 2+ messages in thread
From: tammo-v8BkjJTOJzf1qYPpFx2fzhvVK+yQ3ZXh @ 2016-01-05  9:11 UTC (permalink / raw)
  To: initramfs-u79uwXL29TY76Z2rM5mHXA

Hi,
 
i just stumbled upon a detail in dracut that i found surprising and appears as a small bug to me. 

If you boot a dracut image without giving a "root=" parameter (or e.g. a misspelled argument to that parameter) the system will _not_ drop you into a shell, even if rd.shell is set. IMHO this is not the expected behavior, as the manual says that rd.shell will drop you into a shell if rd.shell is set and no root is found. So i would suggest to change the "die()" function in the dracut-lib.sh and add a test for rd.shell in line 460 (getargbool 0 "rd.debug=" && emergency_shell) too. The system will already drop you in a shell if you have a "rd.debug" parameter set, but i think that rd.shell (and probably "rdshell" too) alone should be sufficient, as this is more convinient and less surprising.

I could prepare a patch, if you prefer that.

If this is not some kind of bug, you may call it a "wishlist item" and/or change the documentation accordingly.

kr
Tammo



^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2016-04-15 10:04 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2016-01-05  9:11 [dracut] rd.shell won't work if "root=" is missing tammo-v8BkjJTOJzf1qYPpFx2fzhvVK+yQ3ZXh
2016-04-15 10:04 ` Harald Hoyer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox