Accepting request 1192346 from devel:microos:aeon:images

- Force relabeling of /etc as part of fstab.script

OBS-URL: https://build.opensuse.org/request/show/1192346
OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/openSUSE-Aeon?expand=0&rev=8
This commit is contained in:
Dominique Leuenberger 2024-08-08 08:58:31 +00:00 committed by Git OBS Bridge
commit 9c2c4c6e41
2 changed files with 12 additions and 0 deletions

View File

@ -102,6 +102,13 @@ set -eux
gawk -i inplace '$2 == "/home" { $4 = $4",x-systemd.growfs" } { print $0 }' /etc/fstab
# workaround https://github.com/systemd/systemd/issues/927, drop the ro from the fstab mount
gawk -i inplace '$2 == "/" && $4 == "compress=zstd:1,ro" { $4 = "compress=zstd:1" } { print $0 }' /etc/fstab
# Relabel /etc. While kiwi already relabelled it earlier, there are some files created later (boo#1210604).
# The "gawk -i inplace" above also removes the label on /etc/fstab.
if [ -e /etc/selinux/config ]; then
. /etc/selinux/config
setfiles -e /proc -e /sys -e /dev /etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts /etc
fi
EOF
chmod a+x /etc/fstab.script

View File

@ -1,3 +1,8 @@
-------------------------------------------------------------------
Wed Aug 7 17:12:23 UTC 2024 - Richard Brown <rbrown@suse.com>
- Force relabeling of /etc as part of fstab.script
-------------------------------------------------------------------
Wed Jul 24 12:40:41 UTC 2024 - Richard Brown <rbrown@suse.com>