forked from espos/rootfs
refactor: add cleanup for mounted filesystems before packaging
This commit is contained in:
@@ -228,6 +228,12 @@ rm -rf "$ROOTFS/var/lib/apt/lists/*"
|
|||||||
rm -rf "$ROOTFS/tmp/*"
|
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"
|
echo "[+] Creating artifact"
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user