tier-0: Enable tmp.mount by default
The long-carried-forward patch to disable `tmp.mount` for RHEL rears its head again.
This commit is contained in:
parent
c9e121ade9
commit
fb8efab43f
|
|
@ -0,0 +1,19 @@
|
|||
# Fix general bugs
|
||||
|
||||
postprocess:
|
||||
# See also https://github.com/openshift/os/blob/f6cde963ee140c02364674db378b2bc4ac42675b/common.yaml#L156
|
||||
# This one is undoes the effect of
|
||||
# # RHEL-only: Disable /tmp on tmpfs.
|
||||
#Wants=tmp.mount
|
||||
# in /usr/lib/systemd/system/basic.target
|
||||
# We absolutely must have tmpfs-on-tmp for multiple reasons,
|
||||
# but the biggest is that when we have composefs for / it's read-only,
|
||||
# and for units with ProtectSystem=full systemd clones / but needs
|
||||
# a writable place.
|
||||
- |
|
||||
#!/usr/bin/env bash
|
||||
set -xeuo pipefail
|
||||
mkdir -p /usr/lib/systemd/system/local-fs.target.wants
|
||||
if test '!' -f /usr/lib/systemd/system/local-fs.target.wants/tmp.mount; then
|
||||
ln -sf ../tmp.mount /usr/lib/systemd/system/local-fs.target.wants
|
||||
fi
|
||||
|
|
@ -54,6 +54,7 @@ include:
|
|||
- bootc-config.yaml
|
||||
- initramfs.yaml
|
||||
- autoupdates.yaml
|
||||
- basic-fixes.yaml
|
||||
|
||||
packages:
|
||||
# Even in tier-0, we have this. If you don't want SELinux today, you'll need
|
||||
|
|
|
|||
|
|
@ -0,0 +1 @@
|
|||
../tier-0/basic-fixes.yaml
|
||||
Loading…
Reference in New Issue