Add code for listing partitions to be removed from mount selections

merge-requests/273/head
Chrysostomus 8 years ago
parent 55eac1b0a4
commit 1e200255f0

@ -38,6 +38,18 @@ select_device() {
DEVICE=$(cat ${ANSWER})
}
## List partitions to be hidden from the mounting menu
list_mounted()
{
lsblk -l | awk '$7 ~ /mnt/ {print $1}' > /tmp/.mounted
echo /dev/* /dev/mapper/* | xargs -n1 | grep -f /tmp/.mounted
}
list_containing_crypt()
{
blkid | awk '/TYPE="crypto_LUKS"/{print $1}' | sed 's/.$//'
}
# delete partition in list $PARTITIONS
# param : partition to delete
delete_partition_in_list() {

Loading…
Cancel
Save