V8.00.000.2025.06.17
All checks were successful
🛡️ Shell Script Linting / 🛡️ Shell Script Linting (push) Successful in 1m53s

Signed-off-by: Marc S. Weidner <msw@coresecret.dev>
This commit is contained in:
2025-08-31 20:29:06 +02:00
parent a08ceffc37
commit 9de62db6d4

View File

@@ -211,26 +211,6 @@ partitioning() {
### Assign the correct GPT typecode via sgdisk if the table is GPT. ### Assign the correct GPT typecode via sgdisk if the table is GPT.
if [[ "${VAR_RECIPE_TABLE,,}" == "gpt" ]]; then if [[ "${VAR_RECIPE_TABLE,,}" == "gpt" ]]; then
case "${var_fs,,}" in
fat32)
typecode="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ;; ### EFI System Partition
swap)
typecode="0657fd6d-a4ab-43c4-84e5-0933c84b4f4f" ;; ### Linux SWAP [NOT Ephemeral Devices]
bios)
typecode="21686148-6449-6e6f-744e-656564454649" ;; ### BIOS Boot Partition
ext4|btrfs)
typecode="0fc63daf-8483-4772-8e79-3d69d8477de4" ;; ### Linux native FS
*)
do_log "warn" "file_only" "3200() Partition: '/dev/${var_dev}${var_part}' unknown FS type: '${var_fs}', using default GPT FS '8300'."
;;
esac
case "${var_mount_path,,}" in case "${var_mount_path,,}" in
"/") "/")
@@ -260,6 +240,26 @@ partitioning() {
esac esac
case "${var_fs,,}" in
fat32)
typecode="c12a7328-f81f-11d2-ba4b-00a0c93ec93b" ;; ### EFI System Partition
swap)
typecode="0657fd6d-a4ab-43c4-84e5-0933c84b4f4f" ;; ### Linux SWAP [NOT Ephemeral Devices]
bios)
typecode="21686148-6449-6e6f-744e-656564454649" ;; ### BIOS Boot Partition
ext4|btrfs)
typecode="0fc63daf-8483-4772-8e79-3d69d8477de4" ;; ### Linux native FS
*)
do_log "warn" "file_only" "3200() Partition: '/dev/${var_dev}${var_part}' unknown FS type: '${var_fs}', using default GPT FS '8300'."
;;
esac
if sgdisk --typecode="${var_part}:${typecode}" "/dev/${var_dev}" &>/dev/null; then if sgdisk --typecode="${var_part}:${typecode}" "/dev/${var_dev}" &>/dev/null; then
do_log "info" "file_only" "3200() Partition: '/dev/${var_dev}${var_part}' GPT typecode '${typecode}' set for '${var_fs}'." do_log "info" "file_only" "3200() Partition: '/dev/${var_dev}${var_part}' GPT typecode '${typecode}' set for '${var_fs}'."