diff options
author | Andreas Loibl <andreas@andreas-loibl.de> | 2014-05-06 23:40:51 +0200 |
---|---|---|
committer | Andreas Loibl <andreas@andreas-loibl.de> | 2014-05-07 00:17:34 +0200 |
commit | 841662c37f1c12887a2be25abba25bffd390d759 (patch) | |
tree | 341546379d23dec8a42482a8c3408d5a75b970fe /backend/modules/partitions | |
parent | 6da3f6fb65e588934db6eb2d097a66f42911c4b2 (diff) | |
download | acritoxinstaller-841662c37f1c12887a2be25abba25bffd390d759.zip acritoxinstaller-841662c37f1c12887a2be25abba25bffd390d759.tar.gz |
added /boot/efi detection for hdmap
Diffstat (limited to 'backend/modules/partitions')
-rw-r--r-- | backend/modules/partitions | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/backend/modules/partitions b/backend/modules/partitions index b586d17..9af0b96 100644 --- a/backend/modules/partitions +++ b/backend/modules/partitions @@ -169,6 +169,24 @@ function list_linux_partitions() ) | sort -u } +# Synopsis: list_efi_partitions +# +# This function lists all partitions from the disks (by list_all_disks) which have partition Id 0xef (= EFI) and DOS filesystem +# Output example: +# /dev/sda1 +# /dev/sdb1 +function list_linux_partitions() +{ + for part in $(list_all_partitions) + do + case "$(blkid -p -s PART_ENTRY_TYPE -o value "$part")" in + 0xef|c12a7328-f81f-11d2-ba4b-00a0c93ec93b) + [ "$(get_filesystem_type $part)" = "DOS" ] && echo "$part" + ;; + esac + done +} + # Synopsis: list_swap_partitions # # This function lists all partitions or lvm from the disks (by list_all_disks) which have partition Id 0x82 (= Linux swap) |