mirror of
https://github.com/bin456789/reinstall.git
synced 2025-12-10 15:37:43 +08:00
core: 脚本运行前,清理更多之前的残留
This commit is contained in:
4
trans.sh
4
trans.sh
@ -184,8 +184,8 @@ clear_previous() {
|
|||||||
qemu_nbd -d /dev/nbd0
|
qemu_nbd -d /dev/nbd0
|
||||||
swapoff -a
|
swapoff -a
|
||||||
# alpine 自带的umount没有-R,除非安装了util-linux
|
# alpine 自带的umount没有-R,除非安装了util-linux
|
||||||
umount -R /iso /wim /installer /os/installer /os /nbd /nbd-boot /nbd-efi
|
umount -R /iso /wim /installer /os/installer /os /nbd /nbd-boot /nbd-efi /mnt
|
||||||
umount /iso /wim /installer /os/installer /os /nbd-boot
|
umount /iso /wim /installer /os/installer /os /nbd /nbd-boot /nbd-efi /mnt
|
||||||
} 2>/dev/null || true
|
} 2>/dev/null || true
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user