Remove -r option from kpartx for successful build
This option does not exist on RHEL hosts and matches what is currently present in elements/rhel/root.d/10-rhel-cloud-image. Change-Id: I578233c1f37d035c67600fc60e7c4eb4ff75cbb3
This commit is contained in:
parent
0eaddbd214
commit
ccd7b86b60
@ -43,7 +43,7 @@ else
|
||||
# NOTE: On F17 (parted-3.0-10.fc17.x86_64), partprobe of
|
||||
# /dev/loop0 does not create /dev/loop0p2, while kpartx at
|
||||
# least creates /dev/mapper/loop0p2.
|
||||
LOOPDEV=$(sudo kpartx -avr $WORKING/$RAW_FILE | awk "/loop[0-9]+$MAGIC_BIT/ {print \$3}")
|
||||
LOOPDEV=$(sudo kpartx -av $WORKING/$RAW_FILE | awk "/loop[0-9]+$MAGIC_BIT/ {print \$3}")
|
||||
if ! timeout 5 sh -c "while ! [ -e /dev/mapper/$LOOPDEV ]; do sleep 1; done"; then
|
||||
echo "Error: Could not find /dev/mapper/$LOOPDEV"
|
||||
exit 1
|
||||
|
Loading…
Reference in New Issue
Block a user