dracut: add missing 'die' function to 'simple' module

This commit is contained in:
Marek Marczykowski-Górecki 2016-09-04 15:13:44 +02:00
parent 162e3734e5
commit 44edc8a9b2
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -12,6 +12,10 @@ fi
modprobe xenblk || modprobe xen-blkfront || echo "Qubes: Cannot load Xen Block Frontend..." modprobe xenblk || modprobe xen-blkfront || echo "Qubes: Cannot load Xen Block Frontend..."
die() {
echo "$@" >&2
exit 1
}
echo "Waiting for /dev/xvda* devices..." echo "Waiting for /dev/xvda* devices..."
while ! [ -e /dev/xvda ]; do sleep 0.1; done while ! [ -e /dev/xvda ]; do sleep 0.1; done