dracut: abort on dmroot assemble error

Add missing "exit 1". In the other case (TemplateVM) it is already
there.
pull/1/head
Marek Marczykowski-Górecki 9 years ago
parent d3d84d5d49
commit 0f954034a1
No known key found for this signature in database
GPG Key ID: 063938BA42CFA724

@ -22,7 +22,7 @@ if [ `cat /sys/block/xvda/ro` = 1 ] ; then
while ! [ -e /dev/xvdc2 ]; do sleep 0.1; done
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.
else
echo "Qubes: Doing R/W setup for TemplateVM..."

Loading…
Cancel
Save