add sync, umount and shutdown to guestfish calls
This commit is contained in:
parent
c4a47947ab
commit
5bf8c3fcf9
2 changed files with 6 additions and 3 deletions
|
@ -539,7 +539,10 @@ END
|
|||
copy-in "$tmpdir/worker.sh" / : \
|
||||
copy-in "$tmpdir/mini-httpd" /etc/default : \
|
||||
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"
|
||||
cleanuptmpdir
|
||||
trap "cleanup_newcachedir" EXIT INT TERM
|
||||
|
|
|
@ -5079,8 +5079,8 @@ Use as replacement for autopkgtest-build-qemu and vmdb2:
|
|||
part-set-bootable /dev/sda 1 true : \
|
||||
mkfs ext2 /dev/sda1 : mount /dev/sda1 / : \
|
||||
tar-in debian-unstable.tar / xattrs:true : \
|
||||
extlinux / : \
|
||||
copy-in extlinux.conf /
|
||||
extlinux / : copy-in extlinux.conf / : \
|
||||
sync : umount / : shutdown
|
||||
$ qemu-img convert -O qcow2 debian-unstable.img debian-unstable.qcow2
|
||||
|
||||
=end comment
|
||||
|
|
Loading…
Reference in a new issue