mmdebstrap-autopkgtest-build-qemu: use mount --no-mtab
Otherwise it fails with: umount: /tmp/mmdebstrap.Tw9G7ZLL4J/mnt: filesystem was unmounted, but failed to update userspace mount table. E: setup failed: E: command failed: umount --lazy "$1/mnt" Also umount mnt/dev.
This commit is contained in:
parent
1e68ffd2c4
commit
8c0ddc3266
1 changed files with 4 additions and 3 deletions
|
@ -356,10 +356,11 @@ EXT4_OPTIONS="offset=$EXT4_OFFSET_BYTES,assume_storage_prezeroed=1"
|
||||||
set -- "$@" \
|
set -- "$@" \
|
||||||
"--customize-hook=download vmlinuz '$WORKDIR/kernel'" \
|
"--customize-hook=download vmlinuz '$WORKDIR/kernel'" \
|
||||||
"--customize-hook=download initrd.img '$WORKDIR/initrd'" \
|
"--customize-hook=download initrd.img '$WORKDIR/initrd'" \
|
||||||
'--customize-hook=mount --bind "$1" "$1/mnt"' \
|
'--customize-hook=mount --no-mtab --bind "$1" "$1/mnt"' \
|
||||||
'--customize-hook=mount --bind "$1/mnt/mnt" "$1/mnt/dev"' \
|
'--customize-hook=mount --no-mtab --bind "$1/mnt/mnt" "$1/mnt/dev"' \
|
||||||
'--customize-hook=/sbin/mkfs.ext4 -d "$1/mnt" -L autopkgtestvm -E '"'$EXT4_OPTIONS' '$IMAGE' '$SIZE'" \
|
'--customize-hook=/sbin/mkfs.ext4 -d "$1/mnt" -L autopkgtestvm -E '"'$EXT4_OPTIONS' '$IMAGE' '$SIZE'" \
|
||||||
'--customize-hook=umount --lazy "$1/mnt"' \
|
'--customize-hook=umount --lazy --no-mtab "$1/mnt/dev"' \
|
||||||
|
'--customize-hook=umount --lazy --no-mtab "$1/mnt"' \
|
||||||
"$RELEASE" \
|
"$RELEASE" \
|
||||||
/dev/null
|
/dev/null
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue