Move all files to /run/initramfs
authorHarald Hoyer <harald@redhat.com>
Mon, 11 Apr 2011 15:19:41 +0000 (17:19 +0200)
committerHarald Hoyer <harald@redhat.com>
Tue, 12 Apr 2011 10:08:50 +0000 (12:08 +0200)
commitdbad9f466157b66762931e0803960140e9e47c3d
tree43b221e04ace75d448544dac95093bf182f1c8a7
parent7eb40c488c33aa1c80d9cf79d7264de9f89013f2
Move all files to /run/initramfs

Given that we boot into a modern Linux distribution with the "/run" toplevel
directory, we can easily mount move the whole /run directory to the real
root in the end and have the complete initramfs later on in
/run/initramfs. All log files and /run states are still accessible and
to save space /run/initramfs can be removed later on.

Because the kernel does not mount a tmpfs on /run prior to unpacking the
initramfs cpio image, we have to copy ourselves very early to a tmpfs
and mount it on /run.
Due to lazy umount the old initramfs binaries should
be removed in the end by switch_root.

This feature can be turned on with "--prefix".
dracut
dracut.8.xml
modules.d/45ifcfg/write-ifcfg.sh
modules.d/90mdraid/mdmon-pre-udev.sh
modules.d/99base/init