add sync, umount and shutdown to guestfish calls

This commit is contained in:
Johannes 'josch' Schauer 2020-02-06 08:14:19 +01:00
parent c4a47947ab
commit 5bf8c3fcf9
Signed by: josch
GPG key ID: F2CBA5C78FBD83E1
2 changed files with 6 additions and 3 deletions

View file

@ -539,7 +539,10 @@ END
copy-in "$tmpdir/worker.sh" / : \ copy-in "$tmpdir/worker.sh" / : \
copy-in "$tmpdir/mini-httpd" /etc/default : \ copy-in "$tmpdir/mini-httpd" /etc/default : \
copy-in "$tmpdir/hosts" /etc/ : \ copy-in "$tmpdir/hosts" /etc/ : \
touch /mmdebstrap-testenv : touch /mmdebstrap-testenv : \
sync : \
umount / : \
shutdown
qemu-img convert -O qcow2 "$tmpdir/debian-$DEFAULT_DIST.img" "$newcachedir/debian-$DEFAULT_DIST.qcow" qemu-img convert -O qcow2 "$tmpdir/debian-$DEFAULT_DIST.img" "$newcachedir/debian-$DEFAULT_DIST.qcow"
cleanuptmpdir cleanuptmpdir
trap "cleanup_newcachedir" EXIT INT TERM trap "cleanup_newcachedir" EXIT INT TERM

View file

@ -5079,8 +5079,8 @@ Use as replacement for autopkgtest-build-qemu and vmdb2:
part-set-bootable /dev/sda 1 true : \ part-set-bootable /dev/sda 1 true : \
mkfs ext2 /dev/sda1 : mount /dev/sda1 / : \ mkfs ext2 /dev/sda1 : mount /dev/sda1 / : \
tar-in debian-unstable.tar / xattrs:true : \ tar-in debian-unstable.tar / xattrs:true : \
extlinux / : \ extlinux / : copy-in extlinux.conf / : \
copy-in extlinux.conf / sync : umount / : shutdown
$ qemu-img convert -O qcow2 debian-unstable.img debian-unstable.qcow2 $ qemu-img convert -O qcow2 debian-unstable.img debian-unstable.qcow2
=end comment =end comment