add /efi to exceptions in unmount script

This commit is contained in:
Hector Canizales 2021-08-15 18:56:31 -05:00
parent eef59cafd7
commit c62e9d7e44

View File

@ -26,7 +26,7 @@ asktype() { \
esac
}
drives=$(lsblk -nrpo "name,type,size,mountpoint" | awk '$4!~/\/boot|\/home$|SWAP/&&length($4)>1{printf "%s (%s)\n",$4,$3}')
drives=$(lsblk -nrpo "name,type,size,mountpoint" | awk '$4!~/\/boot|\/efi|\/home$|SWAP/&&length($4)>1{printf "%s (%s)\n",$4,$3}')
if ! grep simple-mtpfs /etc/mtab; then
[ -z "$drives" ] && echo "No drives to unmount." && exit