Accepting request 831410 from devel:kubic
OBS-URL: https://build.opensuse.org/request/show/831410 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/read-only-root-fs?expand=0&rev=14
This commit is contained in:
parent
7b7b9b683b
commit
a5f35d8adb
@ -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
|
Thu Jul 30 17:50:08 UTC 2020 - iforster@suse.com
|
||||||
|
|
||||||
|
@ -80,6 +80,11 @@ fi
|
|||||||
if [ -f %{_sysconfdir}/zypp/zypp.conf ]; then
|
if [ -f %{_sysconfdir}/zypp/zypp.conf ]; then
|
||||||
sed -i 's/^multiversion =.*/multiversion =/g' %{_sysconfdir}/zypp/zypp.conf
|
sed -i 's/^multiversion =.*/multiversion =/g' %{_sysconfdir}/zypp/zypp.conf
|
||||||
fi
|
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}
|
%{?update_bootloader_posttrans}
|
||||||
exit 0
|
exit 0
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user