Dominique Leuenberger 2020-09-05 21:58:01 +00:00 committed by Git OBS Bridge
parent 7b7b9b683b
commit a5f35d8adb
2 changed files with 11 additions and 0 deletions

View File

@ -1,3 +1,9 @@
-------------------------------------------------------------------
Wed Sep 2 08:53:55 UTC 2020 - Thorsten Kukuk <kukuk@suse.com>
- Adjust btrfsmaintenance sysconfig to not use the read-only
root filesystem [bsc#1176052]
-------------------------------------------------------------------
Thu Jul 30 17:50:08 UTC 2020 - iforster@suse.com

View File

@ -80,6 +80,11 @@ fi
if [ -f %{_sysconfdir}/zypp/zypp.conf ]; then
sed -i 's/^multiversion =.*/multiversion =/g' %{_sysconfdir}/zypp/zypp.conf
fi
# btrfsmaintainence uses as default "/", but that is read-only.
# Change that to /.snapshots/
for var in BTRFS_BALANCE_MOUNTPOINTS BTRFS_SCRUB_MOUNTPOINTS BTRFS_TRIM_MOUNTPOINTS; do
grep -q "${var}=\"/\"" /etc/sysconfig/btrfsmaintenance && sed -i "s|${var}=.*|${var}=\"/.snapshots\"|g" /etc/sysconfig/btrfsmaintenance
done
%{?update_bootloader_posttrans}
exit 0