verbose on found nbd

This commit is contained in:
parazyd 2017-02-15 15:52:37 +01:00
parent 059a533ff7
commit 693ee05e21
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE
2 changed files with 2 additions and 0 deletions

View File

@ -145,6 +145,7 @@ bootstrap_tar_unpack() {
else
error "no .keep file found. exiting..."
zerr
exit 1
fi
cat <<EOF | sudo tee ${strapdir}/postunpack >/dev/null

View File

@ -184,6 +184,7 @@ image_qcow2_as_strapdir() {
sudo modprobe nbd max_part=8 || zerr
loopdevice="$(findfreenbd)"
[ -n "$loopdevice" ] || zerr
act "$loopdevice"
sudo qemu-nbd --connect=${loopdevice} base.qcow2 || zerr
notice "partitioning"
sudo parted ${loopdevice} mktable msdos || zerr