From 2f66c37c283277e92bb4ff1e791504c7f13baeb9 Mon Sep 17 00:00:00 2001 From: Chrysostomus Date: Wed, 11 Oct 2017 12:47:45 +0300 Subject: [PATCH] Add extra check for LUKS and lvm --- lib/util-disk.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/lib/util-disk.sh b/lib/util-disk.sh index bb631da..c7f9fe5 100644 --- a/lib/util-disk.sh +++ b/lib/util-disk.sh @@ -911,6 +911,8 @@ mount_partitions() { ini mount.root "${PARTITION}" delete_partition_in_list "${ROOT_PART}" + # Extra check if root is on LUKS or lvm + get_cryptroot # If the root partition is btrfs, offer to create subvolumus if [[ $(lsblk -lno FSTYPE,MOUNTPOINT | awk '/ \/mnt$/ {print $1}') == btrfs ]]; then DIALOG " Your root volume is formatted in btrfs " --yesno "\nWould you like to create subvolumes in it? \n " 0 0 && btrfs_subvolumes && touch /tmp/.btrfsroot