Bug 716685 - /tmp on tmpfs is mounted twice
Summary: /tmp on tmpfs is mounted twice
Keywords:
Status: CLOSED NOTABUG
Alias: None
Product: Fedora
Classification: Fedora
Component: systemd
Version: 15
Hardware: i686
OS: Linux
unspecified
medium
Target Milestone: ---
Assignee: Lennart Poettering
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2011-06-26 11:19 UTC by Adalbert Prokop
Modified: 2011-06-30 10:43 UTC (History)
7 users (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2011-06-30 10:43:12 UTC
Type: ---


Attachments (Terms of Use)
/proc/self/mounts (2.71 KB, text/plain)
2011-06-27 20:38 UTC, Adalbert Prokop
no flags Details
/etc/fstab (1.13 KB, text/plain)
2011-06-28 18:29 UTC, Adalbert Prokop
no flags Details

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


Note You need to log in before you can comment on or make changes to this bug.