|
|
|
@ -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"
|
|
|
|
|