This commit is contained in:
teldra 2022-08-05 15:57:09 +02:00
parent f71c67c64e
commit b3ffa166e1

17
main.sh
View File

@ -172,18 +172,17 @@ do_partition() {
done
mount "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-root" "${target}/home" -o subvol=homefs
if [ "${ENCRYPTION_STYLE}" == "e" ]; then
mkdir -p "${target}/boot" "${target}/var/lib/backup/quelle/bootfs"
mount "${BOOTDEV}" "${target}/boot"
mkdir -p "${target}/boot/system/snapshots/update" "${target}/boot/system/snapshots/regular" "${target}/boot/system/backup"
btrfs subvol create "${target}/boot/bootfs"
umount "${target}/boot"
mount "${BOOTDEV}" "${target}/boot" -o subvol=bootfs
fi
if [ "${EFI}" == "1" ]; then
mkdir -p "${target}/boot/efi"
mount "${TARGET_PHY_ID}-part1" "${target}/boot/efi"
else
if [ "${ENCRYPTION_STYLE}" == "e" ]; then
mkdir -p "${target}/boot" "${target}/var/lib/backup/quelle/bootfs"
mount "${BOOTDEV}" "${target}/boot"
mkdir -p "${target}/boot/system/snapshots/update" "${target}/boot/system/snapshots/regular" "${target}/boot/system/backup"
btrfs subvol create "${target}/boot/bootfs"
umount "${target}/boot"
mount "${TARGET_PHY_ID}-part1" "${target}/boot" -o subvol=bootfs
fi
fi