dracut: abort on dmroot assemble error

Add missing "exit 1". In the other case (TemplateVM) it is already
there.
This commit is contained in:
Marek Marczykowski-Górecki 2015-10-15 02:37:20 +02:00
parent d3d84d5d49
commit 0f954034a1
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

View File

@ -22,7 +22,7 @@ if [ `cat /sys/block/xvda/ro` = 1 ] ; then
while ! [ -e /dev/xvdc2 ]; do sleep 0.1; done while ! [ -e /dev/xvdc2 ]; do sleep 0.1; done
echo "0 `cat /sys/block/xvda/size` snapshot /dev/xvda /dev/xvdc2 N 16" | \ echo "0 `cat /sys/block/xvda/size` snapshot /dev/xvda /dev/xvdc2 N 16" | \
dmsetup create dmroot || { echo "Qubes: FATAL: cannot create dmroot!"; } dmsetup create dmroot || { echo "Qubes: FATAL: cannot create dmroot!"; exit 1; }
echo Qubes: done. echo Qubes: done.
else else
echo "Qubes: Doing R/W setup for TemplateVM..." echo "Qubes: Doing R/W setup for TemplateVM..."