core: 脚本运行前,清理更多之前的残留

This commit is contained in:
bin456789
2023-08-01 21:53:46 +08:00
parent 9c1ed4ef53
commit 5375cae96d

View File

@ -184,8 +184,8 @@ clear_previous() {
qemu_nbd -d /dev/nbd0
swapoff -a
# alpine 自带的umount没有-R除非安装了util-linux
umount -R /iso /wim /installer /os/installer /os /nbd /nbd-boot /nbd-efi
umount /iso /wim /installer /os/installer /os /nbd-boot
umount -R /iso /wim /installer /os/installer /os /nbd /nbd-boot /nbd-efi /mnt
umount /iso /wim /installer /os/installer /os /nbd /nbd-boot /nbd-efi /mnt
} 2>/dev/null || true
}