qubes-linux-utils/dracut/full/mount_modules.sh
Marek Marczykowski-Górecki 15cc3b2d51 dracut: Provide minimalistic initramfs files - no udev, no systemd
Provide simple script to run under busybox, this is all we need in the
VM.
2015-03-25 23:25:33 +01:00

15 lines
317 B
Bash

#
# This file should be places in pre-pivot directory in dracut's initramfs
#
#!/bin/sh
if ! [ -d $NEWROOT/lib/modules/`uname -r` ]; then
echo "Waiting for /dev/xvdd device..."
while ! [ -e /dev/xvdd ]; do sleep 0.1; done
mount -n -t ext3 /dev/xvdd $NEWROOT/lib/modules
fi
killall udevd systemd-udevd