@@ -902,15 +902,15 @@ show_gpg_keyfile_partitions() {
902
902
if (( NUMGPGPARTS== 0 )) ; then
903
903
show " No potential keyfile partitions found on your machine"
904
904
else
905
- printf " %3s %-36s %-10s %-3s %3s\n " " Num " " Partition UUID " " Path " " Use "
906
- printf " %s\n " " --- ------------------------------------ ---------- ---"
905
+ echo " Num Use UUID Path "
906
+ echo " --- --- ------------------------------------ ---------------------------- ---"
907
907
for I in " ${! GPGUUIDS[@]} " ; do
908
908
local INUSE=" [ ]"
909
909
if [[ ${KEYFILEPARTUUID:- " " } == " ${GPGUUIDS[$I]} " ]]; then
910
910
INUSE=" [*]"
911
911
fi
912
- printf " %2d) %-36s %-10s %3s \n" $(( I+ 1 )) " ${GPGUUIDS[$I]} " \
913
- " ${ALLUUIDS[ ${GPGUUIDS[$I]} ]} " " ${INUSE } "
912
+ printf " %2d) %3s % -36s %-10s\n" $(( I+ 1 )) \
913
+ " ${INUSE} " " ${GPGUUIDS[$I]} " " ${ALLUUIDS[${GPGUUIDS[$I]} ] }"
914
914
done
915
915
fi
916
916
if [ -n " ${LASTITEM} " ]; then
@@ -923,8 +923,8 @@ show_luks_partitions() {
923
923
if (( NUMLUKSPARTS== 0 )) ; then
924
924
die " No LUKS partitions found on your machine"
925
925
else
926
- printf " %3s %-36s %-10s %-3s %3s\n " " Num " " Partition UUID " " Path " " USB " " Use "
927
- printf " %s\n " " --- ------------------------------------ ---------- --- ---"
926
+ echo " Num USB Use UUID Path "
927
+ echo " --- --- --- ------------------------------------ ---------------------------- ---"
928
928
for I in " ${! LUKSUUIDS[@]} " ; do
929
929
local ISUSB=" N "
930
930
local INUSE=" [ ]"
@@ -935,8 +935,8 @@ show_luks_partitions() {
935
935
if [[ ${CRYPTPARTUUID:- " " } == " ${LUKSUUIDS[$I]} " ]]; then
936
936
INUSE=" [* ]"
937
937
fi
938
- printf " %2d) %-36s %-10s %-3s %3s \n " $(( I+ 1 )) " ${LUKSUUIDS[$I]} " \
939
- " ${DEVNAME } " " ${ISUSB } " " ${INUSE} "
938
+ printf " %2d) %3s %3s %-36s %-10s \n " $(( I+ 1 )) \
939
+ " ${ISUSB} " " ${INUSE } " " ${LUKSUUIDS[$I] } " " ${DEVNAME} "
940
940
done
941
941
fi
942
942
if [ -n " ${LASTITEM} " ]; then
@@ -950,8 +950,8 @@ show_efi_system_partitions() {
950
950
if ((NUMEFIPARTS==0)); then
951
951
die " No EFI system partitions found on your machine"
952
952
else
953
- printf " %3s %-36s %-10s %-3s %-3s %3s \n " " Num " " Partition UUID " " Path " " USB " " Win " " Use "
954
- printf " %s \n " " --- ------------------------------------ ---------- --- --- ---"
953
+ echo " Num USB Win Use UUID Path "
954
+ echo " --- --- --- --- ------------------------------------ ---------------------------- ---"
955
955
for I in " ${! EFIUUIDS[@]} " ; do
956
956
local ISUSB=" N "
957
957
local INUSE=" [ ]"
@@ -968,8 +968,8 @@ show_efi_system_partitions() {
968
968
elif [[ " ${HASWINBOOTLOADER[${EFIUUIDS[$I]} ]-0}" == " 1" ]]; then
969
969
ISWIN=" Y "
970
970
fi
971
- printf " %2d) %-36s %-10s %- 3s %-3s %3s \n " $(( I+ 1 )) " ${EFIUUIDS[$I]} " \
972
- " ${DEVNAME } " " ${ISUSB } " " ${ISWIN } " " ${INUSE } "
971
+ printf " %2d) %3s %3s % 3s %-36s %-30s \n " $(( I+ 1 )) \
972
+ " ${ISUSB} " " ${ISWIN } " " ${INUSE } " " ${EFIUUIDS[$I] } " " ${DEVNAME } "
973
973
done
974
974
fi
975
975
if [ -n " ${LASTITEM} " ]; then
@@ -2222,6 +2222,7 @@ handle_final_options() {
2222
2222
suppress_colour_and_alert_if_output_not_to_a_terminal
2223
2223
check_if_booted_under_efi
2224
2224
load_all_devices
2225
+
2225
2226
source_etc_conf_file
2226
2227
process_command_line_options " ${@ } "
2227
2228
setup_build_directory
0 commit comments