0c4c2323c0
This is preparation for pvgrub support, where all VM kernel files will be installed inside of VM instead of dom0. But also the same could be used to prepare VM kernel image from any dom0 kernel.
14 lines
289 B
Bash
14 lines
289 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
|
|
|