From 048a2ebb95979712ddb6d168019b87f6b18ad933 Mon Sep 17 00:00:00 2001 From: Bananymous Date: Sun, 26 Feb 2023 02:59:33 +0200 Subject: [PATCH] ALL: Disk image's root partition now has name 'banan-root' --- disk.sh | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/disk.sh b/disk.sh index 06ab90374b..88b97a76e5 100755 --- a/disk.sh +++ b/disk.sh @@ -8,7 +8,7 @@ MOUNT_DIR=/mnt dd if=/dev/zero of=$DISK_NAME bs=512 count=$[$DISK_SIZE / 512] -sed -e 's/\s*\([\+0-9a-zA-Z]*\).*/\1/' << EOF | fdisk $DISK_NAME +sed -e 's/\s*\([-\+[:alnum:]]*\).*/\1/' << EOF | fdisk $DISK_NAME g # gpt n # new partition 1 # partition number 1 @@ -24,6 +24,11 @@ sed -e 's/\s*\([\+0-9a-zA-Z]*\).*/\1/' << EOF | fdisk $DISK_NAME t # set type 2 # ... of partition 2 20 # Linux filesystem + x # expert menu + n # partition name + 2 # ... of partition 2 + banan-root + r # back to main menu w # write changes EOF