[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#230758: libc6: mountkernfs check for tmpfs availability is useless and attempts to mount even if unavailable



Package: libc6
Version: 2.3.2.ds1-11
Severity: normal

/etc/init.d/mountkernfs performs an availability check for tmpfs
before attempting to mount tmpfs like this:

tmpfs_avail=`grep -ci '[<[:space:]]tmpfs' /proc/filesystems || true`
...

if [ "$tmpfs_avail" != 0 ] || [ "$shmfs_avail" != 0 ]
then
...


Now, on my sytem tmpfs is not enabled in the kernel:

spleen:~# grep -i tmpfs /boot/config-2.4.24
# CONFIG_TMPFS is not set
spleen:~#

however, this availability test is still true:

spleen:~# grep -i tmpfs /proc/filesystems
nodev   tmpfs
spleen:~# grep -ci '[<[:space:]]tmpfs' /proc/filesystems
1
spleen:~#

And so mounting tmpfs at boot fails with an error message.


After recompiling the kernel and enabling tmpfs, the check produces the
same results:

spleen:~# grep -i tmpfs /boot/config-2.4.24
CONFIG_TMPFS=y
spleen:~# grep -i tmpfs /proc/filesystems
nodev   tmpfs
spleen:~# grep -ci '[<[:space:]]tmpfs' /proc/filesystems
1
spleen:~#


I don't know why /proc/filesytems shows tmpfs even if it's not compiled in...



-- System Information:
Debian Release: testing/unstable
Architecture: i386
Kernel: Linux spleen 2.4.24 #1 Thu Jan 29 18:16:44 CET 2004 i686
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8

Versions of packages libc6 depends on:
ii libdb1-compat 2.1.3-7 The Berkeley database routines [gl

-- no debconf information



Reply to: