From 7bcf36dd84011f47b06d8bc2a586f625efc8a364 Mon Sep 17 00:00:00 2001 From: Your Name Date: Wed, 24 May 2023 21:28:18 -0600 Subject: [PATCH] fix --- debian.sh | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/debian.sh b/debian.sh index 0f5fa1c..b6c5179 100755 --- a/debian.sh +++ b/debian.sh @@ -486,10 +486,11 @@ custom_service_files() { initialize-disk() { parted /dev/$HARD_DISK mklabel gpt - parted /dev/$HARD_DISK mkpart primary fat32 1MiB 200MiB - parted /dev/$HARD_DISK mkpart primary ext3 200MiB 700MiB - parted /dev/$HARD_DISK set 1 esp on - parted /dev/$HARD_DISK mkpart P2 ext3 700MiB 100% + parted -a optimal /dev/$HARD_DISK mkpart primary fat32 1MiB 200MiB + parted -a optimal /dev/$HARD_DISK mkpart primary ext3 200MiB 700MiB + parted -a optimal /dev/$HARD_DISK set 1 esp on + parted -a optimal /dev/$HARD_DISK mkpart P2 ext3 700MiB 100% + partitionDetection printf "$DISK_PASSWORD\n$DISK_PASSWORD" | cryptsetup luksFormat ${BTRFS} printf "$DISK_PASSWORD" | cryptsetup open ${BTRFS} $ROOT_MAPPER_NAME echo