Skip to content
Snippets Groups Projects
Commit c04ea58c authored by Markus Frosch's avatar Markus Frosch
Browse files

debootstrap: Make sure to umount target system fs

parent 8fc8f212
No related branches found
No related tags found
1 merge request!2Implement CI
Pipeline #2998 failed
...@@ -14,6 +14,10 @@ set -exu ...@@ -14,6 +14,10 @@ set -exu
gpg --no-tty --keyserver "$KEYSERVER" --recv-key "$GPGKEY" 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 -rf "${TARGET:?}"
rm -f "${TARBALL}" rm -f "${TARBALL}"
...@@ -31,6 +35,10 @@ then ...@@ -31,6 +35,10 @@ then
exit 1 exit 1
fi 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/lib/apt/lists/*
rm -rf "${TARGET:?}"/var/cache/apt/archives/* rm -rf "${TARGET:?}"/var/cache/apt/archives/*
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment