dracut: load ext4 module manually in minimalistic dracut module

This commit is contained in:
Marek Marczykowski-Górecki 2015-03-22 03:25:01 +01:00
parent 15cc3b2d51
commit bc7a2091db

View File

@ -7,7 +7,7 @@ mount -t sysfs sysfs /sys
mount -t devtmpfs devtmpfs /dev
if [ -e /dev/mapper/dmroot ] ; then
die "Qubes: FATAL error: /dev/mapper/dmroot already exists?!"
echo "Qubes: FATAL error: /dev/mapper/dmroot already exists?!"
fi
modprobe xenblk || modprobe xen-blkfront || echo "Qubes: Cannot load Xen Block Frontend..."
@ -32,8 +32,11 @@ else
fi
dmsetup mknodes dmroot
modprobe ext4
mkdir -p /sysroot
mount /dev/mapper/dmroot /sysroot -o ro
NEWROOT=/sysroot
if ! [ -d $NEWROOT/lib/modules/`uname -r` ]; then
echo "Waiting for /dev/xvdd device..."
@ -45,4 +48,4 @@ fi
umount /dev /sys /proc
exec switch_root /sysroot /sbin/init
exec switch_root $NEWROOT /sbin/init