Commit c04ea58c authored by Markus Frosch's avatar Markus Frosch 📣
Browse files

debootstrap: Make sure to umount target system fs

parent 8fc8f212
Pipeline #2998 failed with stage
in 3 minutes and 59 seconds
......@@ -14,6 +14,10 @@ set -exu
gpg --no-tty --keyserver "$KEYSERVER" --recv-key "$GPGKEY"
umount -R "${TARGET:?}/proc" || true
umount -R "${TARGET:?}/sys" || true
umount -R "${TARGET:?}/dev" || true
rm -rf "${TARGET:?}"
rm -f "${TARBALL}"
......@@ -31,6 +35,10 @@ then
exit 1
fi
umount -R "${TARGET:?}/proc" || true
umount -R "${TARGET:?}/sys" || true
umount -R "${TARGET:?}/dev" || true
rm -rf "${TARGET:?}"/var/lib/apt/lists/*
rm -rf "${TARGET:?}"/var/cache/apt/archives/*
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment