diff --git a/scripts/internal_config.sh b/scripts/internal_config.sh index 2abca09..06e716b 100644 --- a/scripts/internal_config.sh +++ b/scripts/internal_config.sh @@ -302,7 +302,7 @@ create_default_disk_layout() { if [[ $root_fs == "btrfs" ]]; then DISK_ID_ROOT_TYPE="btrfs" - DISK_ID_ROOT_MOUNT_OPTS="defaults,noatime,compress=zstd,subvol=/root" + DISK_ID_ROOT_MOUNT_OPTS="defaults,noatime,compress-force=zstd,subvol=/root" elif [[ $root_fs == "btrfs" ]]; then DISK_ID_ROOT_TYPE="ext4" DISK_ID_ROOT_MOUNT_OPTS="defaults,noatime,errors=remount-ro,discard" diff --git a/scripts/utils.sh b/scripts/utils.sh index 0a4d1bc..946c79f 100644 --- a/scripts/utils.sh +++ b/scripts/utils.sh @@ -121,6 +121,7 @@ get_blkid_field_by_device() { local device="$2" blkid -g \ || die "Error while executing blkid -g" + partprobe local val val="$(blkid -o export "$device")" \ || die "Error while executing blkid '$device'" @@ -141,6 +142,7 @@ get_device_by_blkid_field() { local field_value="$2" blkid -g \ || die "Error while executing blkid -g" + partprobe local dev dev="$(blkid -o export -t "$blkid_field=$field_value")" \ || die "Error while executing blkid to find $blkid_field=$field_value"