feat(mkrootfs): clean up files when completed
Signed-off-by: Coelacanthus <coelacanthus@outlook.com>
This commit is contained in:
parent
8855d84c83
commit
8446758c6c
1 changed files with 3 additions and 0 deletions
|
@ -26,3 +26,6 @@ sudo usermod --root (realpath ./rootfs) --password $(perl -e "print crypt('archr
|
|||
|
||||
msg "Compressing rootfs..."
|
||||
sudo bsdtar --create --zstd --verbose --xattrs --acls -f "archriscv-$(date --rfc-3339=date).tar.zst" -C rootfs/ .
|
||||
|
||||
msg "Clean up rootfs directory..."
|
||||
rm -rf ./rootfs
|
||||
|
|
Loading…
Add table
Reference in a new issue