On Thu, 1 Dec 2011 08:47:27 +0000, Neil Bothwick wrote about "Re: [gentoo-user] Re: Full disk encryption":
>On Thu, 1 Dec 2011 00:27:06 +0000, David W Noon wrote: [snip] >> 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. The objective is to get /, /usr, /var and any other directory path the user feels is needed mounted before udev starts. This is a continuation of the "udev now sucks" thread from a few months ago. I need to fsck / before I mount /usr, /var and everything else. This is because the mount point directories could be zombies that would be removed by fsck, thus invalidating the mount. We all hope that /usr and /var are not zombies, but fsck won't take my word for it. -- Regards, Dave [RLU #314465] ====================================================================== dwn...@ntlworld.com (David W Noon) ======================================================================
signature.asc
Description: PGP signature