Bug 1408572
Summary: | tmpfs not mounted to /tmp | ||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | Red Hat Enterprise Linux 7 | Reporter: | Sergey Safarov <s.safarov> | ||||||||||
Component: | releng | Assignee: | Lubos Kocman <lkocman> | ||||||||||
Status: | CLOSED ERRATA | QA Contact: | Release Test Team <release-test-team-automation> | ||||||||||
Severity: | unspecified | Docs Contact: | |||||||||||
Priority: | unspecified | ||||||||||||
Version: | 7.3 | CC: | jstodola, mganisin, msekleta, pkotvan, s.safarov, systemd-maint-list | ||||||||||
Target Milestone: | rc | ||||||||||||
Target Release: | --- | ||||||||||||
Hardware: | Unspecified | ||||||||||||
OS: | Unspecified | ||||||||||||
Whiteboard: | |||||||||||||
Fixed In Version: | Doc Type: | If docs needed, set a value | |||||||||||
Doc Text: | Story Points: | --- | |||||||||||
Clone Of: | Environment: | ||||||||||||
Last Closed: | 2017-08-01 17:32:24 UTC | Type: | Bug | ||||||||||
Regression: | --- | Mount Type: | --- | ||||||||||
Documentation: | --- | CRM: | |||||||||||
Verified Versions: | Category: | --- | |||||||||||
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |||||||||||
Cloudforms Team: | --- | Target Upstream Version: | |||||||||||
Embargoed: | |||||||||||||
Attachments: |
|
Description
Sergey Safarov
2016-12-25 07:25:41 UTC
What is your version of systemd? Works just fine on my machine: [0 root@qeos-225 ~]# mount | grep '/tmp' tmpfs on /tmp type tmpfs (rw,relatime,seclabel,size=262144k) [0 root@qeos-225 ~]# grep '/tmp' /etc/fstab tmpfs /tmp tmpfs size=256m 0 0 [0 root@qeos-225 ~]# rpm -q systemd systemd-219-30.el7.x86_64 Also could you attach output of "systemctl show tmp.mount"? Requested info in attached file. Created attachment 1236663 [details]
tmp mount info
hmmm weird. Can you check that /run/systemd/generator/tmp.mount and /run/systemd/generator/local-fs.target.requires/tmp.mount exist? What about "systemctl show local-fs.target"? Created attachment 1236701 [details]
tmp mount info 2
Requested info is attached in file tmp-mount-info2.txt
Hmm that seems to be fine. Can you try to reboot your machine, put the word "debug" on kernel cmdline and post here the output of "journalctl -b" after the machine boots up? Created attachment 1237190 [details]
boot log
Requested boot log in attached file "boot-debug.txt"
I tried this with unmodified CentOS7 vagrant box (except updated systemd) and I couldn't reproduce. From logs I can see that you are running the VM machine in EC2. I'd bet that there is something fishy with how that centos7 AMI is built. I'll be able to test this on EC2 tomorrow. I was able to reproduce this problem on EC2 with both RHEL7 and CentOS7. In both images tmp.mount is masked by default, hence mount unit generated from fstab doesn't take any effect. This is a configuration issue and not a bug in systemd. We should talk to people building those AMIs and advice them to stop masking tmp.mount. In the meantime please unmask the unit manually in your provisioning scripts. Created attachment 1237723 [details]
Proposed patch
Modified in spin-kickstarts dhcp-24-203:rhel7 lkocman$ git status On branch master Your branch is up-to-date with 'origin/master'. Changes to be committed: (use "git reset HEAD <file>..." to unstage) modified: rhel-7.3-server-ec2.ks modified: rhel-7.3-server-kvm.ks new file: rhel-7.4-server-ec2.ks modified: rhel-7.4-server-kvm.ks modified: rhel-7.4-server-rt.ks Change should be visible on next spin of image. Lubos Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. https://access.redhat.com/errata/RHBA-2017:1850 |