Does someone have a working tmp on tmpfs via systemctl enable tmp.mount under CentOS8/RHEL8? This seems to work straight in EL7 ... # LANG=C systemctl enable tmp.mount The unit files have no installation config (WantedBy, RequiredBy, Also, Alias settings in the [Install] section, and DefaultInstance for template units). This means they are not meant to be enabled using systemctl. Possible reasons for having this kind of units are: 1) A unit may be statically enabled by being symlinked from another unit's .wants/ or .requires/ directory. 2) A unit's purpose may be to act as a helper for some other unit which has a requirement dependency on it. 3) A unit may be started when needed via activation (socket, path, timer, D-Bus, udev, scripted systemctl call, ...). 4) In case of template units, the unit is meant to be enabled with some instance name specified. -- Leon
On 10/21/19 3:42 PM, Leon Fauster via CentOS wrote:> Does someone have a working tmp on tmpfs via > > systemctl enable tmp.mount > > under CentOS8/RHEL8? This seems to work straight in EL7 ... > > > # LANG=C systemctl enable tmp.mount > The unit files have no installation config (WantedBy, RequiredBy, Also, > Alias > settings in the [Install] section, and DefaultInstance for template units).Looks like a known issue: https://bugzilla.redhat.com/show_bug.cgi?id=1667065 -- Orion Poplawski Manager of NWRA Technical Systems 720-772-5637 NWRA, Boulder/CoRA Office FAX: 303-415-9702 3380 Mitchell Lane orion at nwra.com Boulder, CO 80301 https://www.nwra.com/
Am 22.10.19 um 04:52 schrieb Orion Poplawski:> On 10/21/19 3:42 PM, Leon Fauster via CentOS wrote: >> Does someone have a working tmp on tmpfs via >> >> systemctl enable tmp.mount >> >> under CentOS8/RHEL8? This seems to work straight in EL7 ... >> >> >> # LANG=C systemctl enable tmp.mount >> The unit files have no installation config (WantedBy, RequiredBy, >> Also, Alias >> settings in the [Install] section, and DefaultInstance for template >> units). > > Looks like a known issue: > > https://bugzilla.redhat.com/show_bug.cgi?id=1667065 >It works in EL7 and F30. In EL8 it seems to be intentional : $ rpm -q --changelog systemd |grep tmp.mount - unit: don't add Requires for tmp.mount (#1619292) $ grep -E 'tmpfs|tmp.mount' systemd.spec |grep -v devpts Patch0004: 0004-Avoid-tmp-being-mounted-as-tmpfs-without-the-user-s-.patch Patch0059: 0059-unit-don-t-add-Requires-for-tmp.mount.patch # No tmp-on-tmpfs by default in RHEL. bz#876122 bz#1578772 rm -f %{buildroot}%{_prefix}/lib/systemd/system/local-fs.target.wants/tmp.mount - unit: don't add Requires for tmp.mount (#1619292) - avoid /tmp being mounted as tmpfs without the user's will (#1578772) - do not mount /tmp as tmpfs (#1578772) - Enable /var/run and /var/lock on tmpfs The "remove" stanza leads to the missing "WantedBy". Unfortunately all bz# are private ... so why they remove this functionality? We then at least known what impact it has when enabled. -- Leon