From bae03ce7f189f08b596ac37ca5a42a0cc05f692b Mon Sep 17 00:00:00 2001 From: Tobias Powalowski Date: Thu, 2 Jun 2022 17:52:17 +0200 Subject: [PATCH] add discard to fstab --- usr/lib/archboot/update-installer.sh | 1 + 1 file changed, 1 insertion(+) diff --git a/usr/lib/archboot/update-installer.sh b/usr/lib/archboot/update-installer.sh index ce5d3b24d..c7f05dccf 100644 --- a/usr/lib/archboot/update-installer.sh +++ b/usr/lib/archboot/update-installer.sh @@ -150,6 +150,7 @@ EOF echo -e "\033[1mStep 6/7:\033[0m Stopping dbus ..." systemctl stop dbus echo -e "\033[1mStep 7/7:\033[0m Switching root to /new_root ..." + echo "/dev/zram0 / btrfs defaults,discard,noatime,compress=zstd 0 0" >>/etc/fstab systemctl switch-root /new_root fi }