new
This commit is contained in:
parent
f71c67c64e
commit
b3ffa166e1
9
main.sh
9
main.sh
|
@ -172,18 +172,17 @@ do_partition() {
|
||||||
done
|
done
|
||||||
|
|
||||||
mount "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-root" "${target}/home" -o subvol=homefs
|
mount "/dev/mapper/vg_${TARGETNAME_UNDERSCORE}-root" "${target}/home" -o subvol=homefs
|
||||||
if [ "${EFI}" == "1" ]; then
|
|
||||||
mkdir -p "${target}/boot/efi"
|
|
||||||
mount "${TARGET_PHY_ID}-part1" "${target}/boot/efi"
|
|
||||||
else
|
|
||||||
if [ "${ENCRYPTION_STYLE}" == "e" ]; then
|
if [ "${ENCRYPTION_STYLE}" == "e" ]; then
|
||||||
mkdir -p "${target}/boot" "${target}/var/lib/backup/quelle/bootfs"
|
mkdir -p "${target}/boot" "${target}/var/lib/backup/quelle/bootfs"
|
||||||
mount "${BOOTDEV}" "${target}/boot"
|
mount "${BOOTDEV}" "${target}/boot"
|
||||||
mkdir -p "${target}/boot/system/snapshots/update" "${target}/boot/system/snapshots/regular" "${target}/boot/system/backup"
|
mkdir -p "${target}/boot/system/snapshots/update" "${target}/boot/system/snapshots/regular" "${target}/boot/system/backup"
|
||||||
btrfs subvol create "${target}/boot/bootfs"
|
btrfs subvol create "${target}/boot/bootfs"
|
||||||
umount "${target}/boot"
|
umount "${target}/boot"
|
||||||
mount "${TARGET_PHY_ID}-part1" "${target}/boot" -o subvol=bootfs
|
mount "${BOOTDEV}" "${target}/boot" -o subvol=bootfs
|
||||||
fi
|
fi
|
||||||
|
if [ "${EFI}" == "1" ]; then
|
||||||
|
mkdir -p "${target}/boot/efi"
|
||||||
|
mount "${TARGET_PHY_ID}-part1" "${target}/boot/efi"
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user