diff --git a/build-rootfs.sh b/build-rootfs.sh index 35e313c..f3cb17b 100644 --- a/build-rootfs.sh +++ b/build-rootfs.sh @@ -228,6 +228,12 @@ rm -rf "$ROOTFS/var/lib/apt/lists/*" rm -rf "$ROOTFS/tmp/*" +echo "[+] Cleaning mounts before packaging" + +umount -lf "$ROOTFS/dev/pts" || true +umount -lf "$ROOTFS/dev" || true +umount -lf "$ROOTFS/proc" || true +umount -lf "$ROOTFS/sys" || true echo "[+] Creating artifact"