From 92fcf6b4384b23aa26139d8dd1399793564158e5 Mon Sep 17 00:00:00 2001 From: rootzoll Date: Mon, 13 Jan 2025 22:26:24 +0100 Subject: [PATCH] add debug --- home.admin/config.scripts/blitz.data.sh | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/home.admin/config.scripts/blitz.data.sh b/home.admin/config.scripts/blitz.data.sh index 3e8fc30c9..54b71b264 100644 --- a/home.admin/config.scripts/blitz.data.sh +++ b/home.admin/config.scripts/blitz.data.sh @@ -622,6 +622,8 @@ if [ "$1" = "setup" ]; then # SYSTEM (single drive) elif [ setupType="SEPERATE-SYSTEM" ]; then + echo "# SYSTEM" + echo "# .. partitioning" wipefs -a /dev/${setupDevice} parted /dev/${setupDevice} --script mklabel msdos parted /dev/${setupDevice} --script mkpart primary fat32 1MiB 100% @@ -632,10 +634,13 @@ if [ "$1" = "setup" ]; then # STOARGE with System elif [ setupType="STORAGE" ] && [ ${setupBootFromStorage} -eq 1 ]; then + echo "# STORAGE (with system)" + echo "# .. partitioning" wipefs -a /dev/${setupDevice} parted /dev/${setupDevice} --script mklabel msdos parted /dev/${setupDevice} --script mkpart primary fat32 1MiB 513MiB parted /dev/${setupDevice} --script mkpart primary ext4 541MB 100% + echo "# .. formating" wipefs -a /dev/${setupDevicePartitionBase}1 mkfs -t vfat -F 32 /dev/${setupDevicePartitionBase}1 wipefs -a /dev/${setupDevicePartitionBase}2 @@ -645,17 +650,23 @@ if [ "$1" = "setup" ]; then # STOARGE (single drive OR host for seperate data & system) elif [ setupType="STORAGE" ] && [ ${setupBootFromStorage} -eq 0 ]; then + echo "# STORAGE" + echo "# .. partitioning" wipefs -a /dev/${setupDevice} parted /dev/${setupDevice} --script mklabel msdos parted /dev/${setupDevice} --script mkpart primary ext4 1MB 100% + echo "# .. formating" wipefs -a /dev/${setupDevicePartitionBase}1 mkfs -t ext4 /dev/${setupDevicePartitionBase}1 # DATA (single drive) elif [ setupType="SEPERATE-DATA" ]; then + echo "# DATA" + echo "# .. partitioning" wipefs -a /dev/${setupDevice} parted /dev/${setupDevice} --script mklabel msdos parted /dev/${setupDevice} --script mkpart primary ext4 1MB 100% + echo "# .. formating" wipefs -a /dev/${setupDevicePartitionBase}1 mkfs -t ext4 /dev/${setupDevicePartitionBase}1 @@ -694,10 +705,6 @@ if [ "$1" = "setup" ]; then parted /dev/${setupDevice} --script set 1 esp on isFlagSetBOOT=$(parted /dev/${setupDevice} --script print | grep -c 'fat32.*boot') isFlagSetESP=$(parted /dev/${setupDevice} --script print | grep -c 'fat32.*esp') - if [ ${isFlagSetESP} -eq 0 ]; then - echo "error='failed to set ESP flag'" - exit 1 - fi fi else echo "# skipping: Bootable"