dracut: abort on dmroot assemble error
Add missing "exit 1". In the other case (TemplateVM) it is already there.
This commit is contained in:
parent
d3d84d5d49
commit
0f954034a1
@ -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..."
|
||||||
|
Loading…
Reference in New Issue
Block a user