Il giorno dom, 04/12/2005 alle 09.36 +0100, Jan Engelhardt ha scritto:
> >As initramfs and klibc run_init seem that will substitute initrd and
> >pivot_root i think it would be nice to figure out a solution for this.
> 
> What is run_init good for anyway?
> 
> 
  
some good links should explain this better then me:

http://www.busybox.net/lists/busybox/2005-October/016597.html

linux-2.6.14/Documentation/filesystems/ramfs-rootfs-initramfs.txt

mainly initramfs seems it will substitute the "old" initrd for many
reason and advanteges you have using it.

"When switching another root device, initrd would pivot_root and then
umount the ramdisk.  But initramfs is rootfs: you can neither pivot_root
rootfs, nor unmount it.  Instead delete everything out of rootfs to free
up the space (find -xdev / -exec rm '{}' ';'), overmount rootfs  with
the new root (cd /newmount; mount --move . /; chroot .), attach
stdin/stdout/stderr to the new /dev/console, and exec the new init."

"Since this is a remarkably persnickity process (and involves deleting
commands before you can run them), the klibc package introduced a helper
program (utils/run_init.c) to do all this for you.  Most other packages
(such as busybox) have named this command "switch_root" ".



_______________________________________________
unionfs mailing list
[email protected]
http://www.fsl.cs.sunysb.edu/mailman/listinfo/unionfs

Reply via email to