Add umountAndClean()
This commit is contained in:
parent
80e222e3d6
commit
d4f382b9a0
|
@ -598,4 +598,12 @@ runScript() {
|
||||||
done
|
done
|
||||||
}
|
}
|
||||||
|
|
||||||
|
umountAndClean() {
|
||||||
|
swapoff /mnt/swapfile
|
||||||
|
rm /mnt/swapfile
|
||||||
|
umount -R /mnt
|
||||||
|
swapoff /dev/sda2
|
||||||
|
parted -s /dev/sda mklabel gpt
|
||||||
|
}
|
||||||
|
|
||||||
runScript "$@"
|
runScript "$@"
|
||||||
|
|
Loading…
Reference in New Issue