mirror of
https://gitlab.manjaro.org/applications/manjaro-architect
synced 2024-11-08 01:10:26 +00:00
Add code for listing partitions to be removed from mount selections
This commit is contained in:
parent
55eac1b0a4
commit
1e200255f0
@ -38,6 +38,18 @@ select_device() {
|
|||||||
DEVICE=$(cat ${ANSWER})
|
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
|
# delete partition in list $PARTITIONS
|
||||||
# param : partition to delete
|
# param : partition to delete
|
||||||
delete_partition_in_list() {
|
delete_partition_in_list() {
|
||||||
|
Loading…
Reference in New Issue
Block a user