From 215e81cc62f769c410f222419e60717372804621 Mon Sep 17 00:00:00 2001 From: Amy Date: Sun, 14 Nov 2021 12:41:44 +0100 Subject: [PATCH] added subvolume stuff to efi too --- citrine.internal.sh | 18 ++++++++++++++++-- 1 file changed, 16 insertions(+), 2 deletions(-) diff --git a/citrine.internal.sh b/citrine.internal.sh index fab92b9..9bf80b1 100755 --- a/citrine.internal.sh +++ b/citrine.internal.sh @@ -137,7 +137,14 @@ if [[ "$MANUAL" == "no" ]]; then mkfs.vfat ${DISK}p1 mkfs.btrfs -f ${DISK}p2 mount ${DISK}p2 /mnt - mkdir -p /mnt/boot/efi + cd /mnt + btrfs subvolume create @ + btrfs subvolume create @home + cd / + umount /mnt + mount -o subvol=@ /dev/${DISK}p2 /mnt + mkdir -p /mnt/{boot/efi,home} + mount -o subvol=@home /dev/${DISK}p2 /mnt/home mount ${DISK}p1 /mnt/boot/efi else inf "Initializing ${DISK} as NVME MBR" @@ -159,7 +166,14 @@ if [[ "$MANUAL" == "no" ]]; then mkfs.vfat -F32 ${DISK}1 mkfs.btrfs -f ${DISK}2 mount ${DISK}2 /mnt - mkdir -p /mnt/boot/efi + cd /mnt + btrfs subvolume create @ + btrfs subvolume create @home + cd / + umount /mnt + mount -o subvol=@ /dev/${DISK}2 /mnt + mkdir -p /mnt/{boot/efi,home} + mount -o subvol=@home /dev/${DISK}2 /mnt/home mount ${DISK}1 /mnt/boot/efi else inf "Initializing ${DISK} as MBR"