Bug 716685

Summary: /tmp on tmpfs is mounted twice
Product: [Fedora] Fedora Reporter: Adalbert Prokop <adalbert.prokop>
Component: systemdAssignee: Lennart Poettering <lpoetter>
Status: CLOSED NOTABUG QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: medium Docs Contact:
Priority: unspecified    
Version: 15CC: harald, johannbg, lpoetter, metherid, mschmidt, notting, plautrba
Target Milestone: ---   
Target Release: ---   
Hardware: i686   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2011-06-30 10:43:12 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Attachments:
Description Flags
/proc/self/mounts
none
/etc/fstab none

Description Adalbert Prokop 2011-06-26 11:19:08 UTC
Description of problem:
I've setup my EeePC using encrypted LVM group. Swap is encrypted using random keys and I want /tmp to be on an tmpfs partition. After the system is up, "mount" tells me that /tmp has been mounted twice.

I suspect systemd is responsible for this behaviour, but without any proof... It's really hard to debug this heap of config files in an completely new (to me) subsystem...

Version-Release number of selected component (if applicable):
kernel-2.6.38.8-32.fc15.i686
systemd-26-4.fc15.i686

How reproducible:
Replace the mount for /tmp in /etc/fstab with the following one

tmpfs  /tmp  tmpfs  size=200m,mode=1777  0  0

then reboot.
  
Actual results:
/tmp is mounted twice:
# mount | grep /tmp
tmpfs on /tmp type tmpfs (rw,relatime,size=204800k)
tmpfs on /tmp type tmpfs (rw,relatime,size=204800k)
/dev/mapper/vg_chepre-root on /var/tmp type ext4 (rw,relatime,barrier=1,data=ordered)

Expected results:
/tmp should be mounted only once.

Comment 1 Lennart Poettering 2011-06-27 09:41:31 UTC
can you paste the contents of /proc/self/mounts please?

Comment 2 Adalbert Prokop 2011-06-27 20:38:14 UTC
Created attachment 510165 [details]
/proc/self/mounts

Of course, here they are.

Comment 3 Lennart Poettering 2011-06-28 16:04:05 UTC
Hmm, and could you also paste your full /etc/fstab please?

Comment 4 Adalbert Prokop 2011-06-28 18:29:24 UTC
Created attachment 510340 [details]
/etc/fstab

Here is all of /etc/fstab.

Comment 5 Michal Schmidt 2011-06-29 10:30:19 UTC
The /proc/self/mounts also shows a duplicate /home mount and a /var/tmp mount (which is not even in fstab). This looks like the bind mounts done by the sandbox service.

See if disabling it helps:
chkconfig sandbox off

Comment 6 Adalbert Prokop 2011-06-29 17:30:15 UTC
Oh yes, it did help. The mount table looks much cleaner now. And /tmp mount apears only once.

Thank you.

Comment 7 Michal Schmidt 2011-06-30 10:43:12 UTC
Closing this bug, because systemd did nothing wrong here. For an explanation of the sandbox service see for instance:
http://lists.fedoraproject.org/pipermail/users/2011-May/398310.html