Red Hat Bugzilla – Bug 180166
nash "mkrootdev" and "switchroot" only work with a specific pathname
Last modified: 2007-11-30 17:11:23 EST
From Bugzilla Helper:
User-Agent: Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.8) Gecko/20051111 Firefox/1.5
Description of problem:
Despite the descriptions in the nash manpage, the "mkrootdev <path>" and "switchroot <newrootpath>" will now only work with specific path names, rather than any general pathname or newrootpath. Specifically:
"mkrootdev /dev/root" will work, but
"mkrootdev /dev/rootdev" fails, and
"mkrootdev /rootdev" fails.
"switchroot --movedev /sysroot" will work, but
"switchroot --movedev /rootdir" fails - with device mounted, of course.
The commands use to work as described by the manpage. It would seem that either nash is broken - has hardcoded paths now? - or the manpage needs to be updated.
Version-Release number of selected component (if applicable):
Steps to Reproduce:
1."mkrootdev /dev/rootdev" or
"switchroot --movedev /rootdir"
in initrd init script.
Actual Results: kernel panic on boot - "attempted to kill init", which usually means that the root file system was not mounted.
Expected Results: normal boot
I'll gladly apply any patches contributed which update the man pages and reflect
current behavior. For the time being, though, I'm going to close this bug.