[Pkg-sysvinit-devel] Bug#690363: initscripts: /tmp is not listed in /proc/mount
Roger Leigh
rleigh at codelibre.net
Sun Oct 14 15:26:19 UTC 2012
On Sun, Oct 14, 2012 at 08:43:29PM +0530, Ritesh Raj Sarraf wrote:
> On Sunday 14 October 2012 04:27 PM, Roger Leigh wrote:
> > Could you perhaps show an example? If it's not in /proc/mounts, then
> > it's not there.
> >
> > What is the output of:
> > % ls -ld /tmp
>
> THis is the weirdest part. All commands were run in order.
>
> rrs at champaran:~$ ls -ld /tmp/
> drwxrwxrwt 1 root root 498 Oct 14 20:37 /tmp//
Could you try this again, but without the trailing slash?
The goal is to check if /tmp is itself a symlink; with the
trailing slash, this looks at the pointed-to directory,
which is not what we want. i.e. "ls -ld /tmp".
> So I am all confused. But to prove that /tmp _is_ on tmpfs, here it is:
>
> rrs at champaran:~$ ln x.sh /tmp/
> ln: failed to create hard link `/tmp/x.sh' => `x.sh': Invalid
> cross-device link
This is just showing that ~ and /tmp are on separate filesystems--
it's not saying anything about tmpfs directly; it could just be
that /home is a separate mount from /.
Run "stat" on / and /tmp and this will tell you if they are
different (look at the Device numbers).
> Would systemd have anything to do with this? I am running systemd.
Possibly. systemd does not use any of the initscripts logic to
mount filesystems; I'm not even sure it respects RAMTMP--it
might not even look at it.
Regards,
Roger
--
.''`. Roger Leigh
: :' : Debian GNU/Linux http://people.debian.org/~rleigh/
`. `' Printing on GNU/Linux? http://gutenprint.sourceforge.net/
`- GPG Public Key: 0x25BFB848 Please GPG sign your mail.
More information about the Pkg-sysvinit-devel
mailing list