From 109051e46199dc79c683cc7d6e900f74bc47261c Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Wed, 18 Jan 2012 18:13:01 +0100 Subject: [PATCH] add btrfs compression options --- usr/share/archboot/installer/setup | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/usr/share/archboot/installer/setup b/usr/share/archboot/installer/setup index 4d6d1ca51..e47acf204 100755 --- a/usr/share/archboot/installer/setup +++ b/usr/share/archboot/installer/setup @@ -2138,11 +2138,16 @@ subvolumes_in_use() { # ask for btrfs compress option btrfs_compress() { BTRFS_COMPRESS="NONE" + BTRFS_COMPRESSLEVELS="lzo - zlib -" if [[ "${BTRFS_SUBVOLUME}" = "NONE" ]]; then DIALOG --defaultno --yesno "Would you like to compress the data on ${PART}?" 0 0 && BTRFS_COMPRESS="compress" else DIALOG --defaultno --yesno "Would you like to compress the data on ${PART} subvolume=${BTRFS_SUBVOLUME}?" 0 0 && BTRFS_COMPRESS="compress" fi + if [[ "${BTRFS_COMPRESS}" = "compress" ]]; then + DIALOG --menu "Select the compression method you want to use" 21 50 9 ${BTRFS_COMPRESSLEVELS} 2>${ANSWER} || return 1 + BTRFS_COMPRESS="compress=$(cat ${ANSWER})" + fi } # ask for btrfs ssd option