20 lines
780 B
YAML
20 lines
780 B
YAML
# 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
|