so turns out syslinux doesnt support booting from btrfs subvols

pull/3/head
Amy 3 years ago
parent 60d06bf0b8
commit 1da8aa55ff
No known key found for this signature in database
GPG Key ID: 6672E6DD65BEA50B

@ -126,7 +126,8 @@ if [[ "$MANUAL" == "no" ]]; then
inf "Partitioned ${DISK} as an EFI volume" inf "Partitioned ${DISK} as an EFI volume"
else else
parted ${DISK} mklabel msdos --script parted ${DISK} mklabel msdos --script
parted ${DISK} mkpart primary ext4 0% 100% --script parted ${DISK} mkpart primary ext4 512MIB 100% --script
parted ${DISK} mkpart primary fat32 1MIB 512MIB --script
inf "Partitioned ${DISK} as an MBR volume" inf "Partitioned ${DISK} as an MBR volume"
fi fi
@ -141,7 +142,16 @@ if [[ "$MANUAL" == "no" ]]; then
else else
inf "Initializing ${DISK} as NVME MBR" inf "Initializing ${DISK} as NVME MBR"
mkfs.btrfs -f ${DISK}p1 mkfs.btrfs -f ${DISK}p1
mount ${DISK}p1 /mnt mount ${DISK}1 /mnt
cd /mnt
btrfs subvolume create @
btrfs subvolume create @home
cd /
umount /mnt
mount -o noatime,subvol=@ ${DISK}p1 /mnt
mkdir -p /mnt/{home,boot}
mount -o noatime,subvol=@home ${DISK}p1 /mnt/home
mount ${DISK}p2 /mnt/boot
fi fi
else else
if [[ "$EFI" == "yes" ]]; then if [[ "$EFI" == "yes" ]]; then
@ -158,13 +168,12 @@ if [[ "$MANUAL" == "no" ]]; then
cd /mnt cd /mnt
btrfs subvolume create @ btrfs subvolume create @
btrfs subvolume create @home btrfs subvolume create @home
btrfs subvolume create @var
cd / cd /
umount /mnt umount /mnt
mount -o noatime,compress=zstd,subvol=@ ${DISK}1 /mnt mount -o noatime,subvol=@ ${DISK}1 /mnt
mkdir -p /mnt/{home,var} mkdir -p /mnt/{home,boot}
mount -o noatime,compress=zstd,subvol=@home ${DISK}1 /mnt/home mount -o noatime,subvol=@home ${DISK}1 /mnt/home
mount -o noatime,compress=zstd,subvol=@var ${DISK}1 /mnt/var mount ${DISK}2 /mnt/boot
fi fi
fi fi
else else

Loading…
Cancel
Save