[CentOS] C8 regression / tmp on tmpfs

Leon Fauster

leonfauster at googlemail.com
Tue Oct 22 17:01:09 UTC 2019


Am 22.10.19 um 16:31 schrieb Orion Poplawski:
> On 10/22/19 7:04 AM, Leon Fauster via CentOS wrote:
>> 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.
>>
> 
> I'm not quite sure why you don't appear to have read the bug I pointed 
> to.  It has been fix in git (c8-beta branch) and will either be out with 
> 8.1 or with an errata earlier if it is judged to be worth it.
> 

Recognition is stronger then recall :-). There was no direct c8-beta 
evidence and I was not aware of RH's public systemd branch, but I see
it now. For the archives:

https://git.centos.org/rpms/systemd/tree/e52536df65a972e6f8ab59b15659f7681b96abc9


--
Leon



More information about the CentOS mailing list