scripts: init.sh: Change btrfs compression algorithm 90/223790/1 accepted/tizen/unified/20200204.125757 submit/tizen/20200204.042154
authorJunghoon Kim <jhoon20.kim@samsung.com>
Tue, 4 Feb 2020 04:05:48 +0000 (13:05 +0900)
committerJunghoon Kim <jhoon20.kim@samsung.com>
Tue, 4 Feb 2020 04:05:48 +0000 (13:05 +0900)
The OBS build system does not yet support zstd compression algorithm.
Change the btrfs compression algorithm to lzo before upgrading the OBS
server.

Change-Id: Ibc6be7d3f5c9a3364a63aba27e5646c4a0fd58d8
Signed-off-by: Junghoon Kim <jhoon20.kim@samsung.com>
scripts/init.sh

index dd1fbeb..3c172be 100755 (executable)
@@ -57,7 +57,7 @@ then
        if [ x$BTRFS_ROOTFS != "x" ]
        then
                /sbin/btrfs check $ROOTFS
-               /bin/mount $ROOTFS /sysroot -o rw,compress=zstd
+               /bin/mount $ROOTFS /sysroot -o rw,compress-force=lzo
                if [ "$NEED_RESIZEFS" = "1" ]
                then
                        /sbin/btrfs filesystem resize max /sysroot