forked from pool/tik-osimage-Aeon
Accepting request 1192347 from devel:microos:aeon:images
- Force relabeling of /etc as part of fstab.script OBS-URL: https://build.opensuse.org/request/show/1192347 OBS-URL: https://build.opensuse.org/package/show/openSUSE:Factory/tik-osimage-Aeon?expand=0&rev=6
This commit is contained in:
commit
abc7e8f8e8
@ -102,6 +102,14 @@ 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
|
||||
touch /etc/sysconfig/bootloader # Make sure this exists so it gets labelled
|
||||
setfiles -e /proc -e /sys -e /dev /etc/selinux/${SELINUXTYPE}/contexts/files/file_contexts /etc
|
||||
fi
|
||||
EOF
|
||||
|
||||
chmod a+x /etc/fstab.script
|
||||
|
@ -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 31 14:09:59 UTC 2024 - Richard Brown <rbrown@suse.com>
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user