mirror of
https://github.com/Le0xFF/VoidLinuxInstaller.git
synced 2024-10-26 20:35:50 +03:00
Some more fixing on unmounting when killing script
This commit is contained in:
parent
f14a0d31f5
commit
791ce7fcbb
4
vli.sh
4
vli.sh
@ -36,7 +36,7 @@ function kill_script {
|
||||
|
||||
echo -e -n "\n\n${RED_LIGHT}Kill signal captured, unmonting, cleaning and closing everything...${NORMAL}\n"
|
||||
|
||||
if grep -q /dev/mapper /proc/mounts ; then
|
||||
if [[ -b /dev/mapper/"$encrypted_name" ]] ; then
|
||||
if grep -q /mnt /proc/mounts ; then
|
||||
for dir in sys dev proc ; do
|
||||
umount /mnt/$dir
|
||||
@ -46,6 +46,8 @@ function kill_script {
|
||||
if [[ "$lvm_yn" == "y" ]] || [[ "$lvm_yn" == "Y" ]] ; then
|
||||
if [[ -n "$lv_root_name" ]] ; then
|
||||
lvchange -an /dev/mapper/"$vg_name"-"$lv_root_name"
|
||||
else
|
||||
vgchange -an /dev/mapper/"$vg_name"
|
||||
fi
|
||||
fi
|
||||
else
|
||||
|
Loading…
Reference in New Issue
Block a user