Mount /lib/modules at initramfs phase (#263)

This isn't elegant but /etc/rc.d/rc.sysinit requires modules at very early
phase - before any customizable script (just before calling
/etc/sysconfig/modules/*.modules).
This commit is contained in:
Marek Marczykowski 2011-07-03 20:51:47 +02:00
parent cb6a955561
commit 5d31a4cc98
2 changed files with 11 additions and 0 deletions

View File

@ -288,6 +288,7 @@ mkdir -p %buildroot/%vm_install_dir
/sbin/dracut --nomdadmconf --nolvmconf \ /sbin/dracut --nomdadmconf --nolvmconf \
--kmoddir %buildroot/lib/modules/%kernelrelease \ --kmoddir %buildroot/lib/modules/%kernelrelease \
--include %_sourcedir/vm-initramfs-pre-udev /pre-udev \ --include %_sourcedir/vm-initramfs-pre-udev /pre-udev \
--include %_sourcedir/vm-initramfs-pre-pivot /pre-pivot \
--add-drivers xenblk \ --add-drivers xenblk \
%buildroot/%vm_install_dir/initramfs %kernelrelease %buildroot/%vm_install_dir/initramfs %kernelrelease

View File

@ -0,0 +1,10 @@
#
# This file should be places in pre-pivot directory in dracut's initramfs
#
#!/bin/sh
echo "Waiting for /dev/xvdd device..."
while ! [ -e /dev/xvdd ]; do sleep 0.1; done
mount -n -t ext3 -o ro /dev/xvdd $NEWROOT/lib/modules