added subvolume stuff to efi too

pull/3/head
Amy 3 years ago
parent 85c9e81081
commit 215e81cc62
No known key found for this signature in database
GPG Key ID: 6672E6DD65BEA50B

@ -137,7 +137,14 @@ if [[ "$MANUAL" == "no" ]]; then
mkfs.vfat ${DISK}p1 mkfs.vfat ${DISK}p1
mkfs.btrfs -f ${DISK}p2 mkfs.btrfs -f ${DISK}p2
mount ${DISK}p2 /mnt 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 mount ${DISK}p1 /mnt/boot/efi
else else
inf "Initializing ${DISK} as NVME MBR" inf "Initializing ${DISK} as NVME MBR"
@ -159,7 +166,14 @@ if [[ "$MANUAL" == "no" ]]; then
mkfs.vfat -F32 ${DISK}1 mkfs.vfat -F32 ${DISK}1
mkfs.btrfs -f ${DISK}2 mkfs.btrfs -f ${DISK}2
mount ${DISK}2 /mnt 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 mount ${DISK}1 /mnt/boot/efi
else else
inf "Initializing ${DISK} as MBR" inf "Initializing ${DISK} as MBR"

Loading…
Cancel
Save