On Thu, 1 Dec 2011 00:27:06 +0000, David W Noon wrote: > > Why not mount root read-only, just like in a non-initramfs system? > > > > Any e2fsck commands will be run during the boot runlevel, before > > remounting root rw. > > Unfortunately, the system does not work that way. When running inside > an initramfs, one cannot load executable content from mount points -- > only from within the initramfs. So, while it is perfectly possible to > do "ls /mnt/root/sbin/e2fsck" (assuming the root partition has been > mounted ro as /mnt/root), it is not possible to load and execute that > program. [And, yes, I have adjusted the PATH and LD_LIBRARY_PATH shell > variables to address the program and library directories on the mounted > root partition.] After performing a switch_root to the actual root > partition, this restriction is lifted.
I understand that, but not why you need to run e2fsck before the switch_root. Is this to do with the way your system is set up? The object of the initramfs is only to get the system into a state where / can be mounted and switch_root run, I assume you are trying to do more than that with it. -- Neil Bothwick WORM: (n.) acronym for Write Once, Read Mangled. Used to describe a normally-functioning computer disk of the very latest design.
signature.asc
Description: PGP signature