[Pkg-sysvinit-devel] Bug#690363: initscripts: /tmp is not listed in /proc/mount
Ritesh Raj Sarraf
rrs at debian.org
Sun Oct 14 15:40:54 UTC 2012
On Sunday 14 October 2012 08:56 PM, Roger Leigh wrote:
>> 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".
>
rrs at champaran:~$ ls -ld /tmp
drwxrwxrwt 1 root root 556 Oct 14 21:00 /tmp/
rrs at champaran:~$ file /tmp
/tmp: sticky directory
rrs at champaran:~$ readlink /tmp
I am on btrfs. So I am giving your this list...
rrs at champaran:~$ sudo btrfs subvolume list /
ID 256 top level 5 path var
ID 259 top level 5 path usr
ID 260 top level 5 path home
ID 261 top level 5 path var/log
ID 262 top level 5 path etc
>> 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 /.
>
Yes. And my root vol is btrfs. But /tmp is not a subvol.
> Run "stat" on / and /tmp and this will tell you if they are>
> Regards,
> Roger
>
> different (look at the Device numbers).
>
rrs at champaran:~$ stat /
File: `/'
Size: 194 Blocks: 8 IO Block: 4096 directory
Device: 10h/16d Inode: 256 Links: 1
Access: (0555/dr-xr-xr-x) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-10-10 17:22:27.949340594 +0530
Modify: 2012-10-10 22:19:31.458631459 +0530
Change: 2012-10-10 22:19:31.458631459 +0530
Birth: -
rrs at champaran:~$ stat /tmp
File: `/tmp'
Size: 556 Blocks: 0 IO Block: 4096 directory
Device: 10h/16d Inode: 10797 Links: 1
Access: (1777/drwxrwxrwt) Uid: ( 0/ root) Gid: ( 0/ root)
Access: 2012-10-10 17:22:08.317347537 +0530
Modify: 2012-10-14 21:05:01.716336750 +0530
Change: 2012-10-14 21:05:01.716336750 +0530
Birth: -
>> 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.
>
Let me check it out.
--
Ritesh Raj Sarraf | http://people.debian.org/~rrs
Debian - The Universal Operating System
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 900 bytes
Desc: OpenPGP digital signature
URL: <http://lists.alioth.debian.org/pipermail/pkg-sysvinit-devel/attachments/20121014/fe87a52e/attachment-0001.pgp>
More information about the Pkg-sysvinit-devel
mailing list