Bug 113409 - No /dev in /etc/mtab
Summary: No /dev in /etc/mtab
Status: RESOLVED FIXED
Alias: None
Product: SUSE LINUX 10.0
Classification: openSUSE
Component: Basesystem (show other bugs)
Version: Beta 3
Hardware: Other All
: P5 - None : Major
Target Milestone: ---
Assignee: Ruediger Oertel
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-08-26 18:20 UTC by Andreas Schwab
Modified: 2005-09-06 16:17 UTC (History)
1 user (show)

See Also:
Found By: Other
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Andreas Schwab 2005-08-26 18:20:00 UTC
There is no entry for /dev in /etc/mtab, so df cannot learn about that mount 
point.
Comment 1 Dr. Werner Fink 2005-08-29 09:19:06 UTC
/dev is part of the root file system and udev is used to
update missing entries in this directory.
Comment 2 Andreas Schwab 2005-08-29 10:55:56 UTC
/dev is a mount point. 
Comment 3 Dr. Werner Fink 2005-08-29 10:58:15 UTC
Not on standard SuSE Linux 10 nor 9.3
Comment 4 Andreas Schwab 2005-08-29 10:59:42 UTC
What are you smoking???? 
Comment 5 Dr. Werner Fink 2005-08-29 11:07:50 UTC
Nothing. AFAIK a static initramfsdevs partition is not what we do.
This was the result of the dist team meeting.

Hannes?
Comment 6 Hannes Reinecke 2005-09-05 08:03:01 UTC
Yes, we have /dev a mount point in 10.0. Been there since Preview2.
Yes, /dev does not show up in /etc/mtab as it's being mount prior to accessing
the root fs and hence prior to creating /etc/mtab.

Should it show up there?
Andreas, what's your opinion
Comment 7 Andreas Jaeger 2005-09-05 09:08:51 UTC
Please ask on research.  I personally think it should show up there.
Comment 8 Hannes Reinecke 2005-09-05 15:07:19 UTC
Ruediger, this needs to be changed in aaa_base:/etc/sysconfig/boot.localfs:

--- boot.localfs.orig   2005-09-05 16:56:50.000000000 +0200
+++ boot.localfs        2005-09-05 17:06:31.000000000 +0200
@@ -19,7 +19,7 @@
 
 # to get max number of parallel fsck processes
 . /etc/sysconfig/boot
-
+. /etc/sysconfig/kernel
 if [ -f /etc/sysconfig/dump ]; then
        . /etc/sysconfig/dump
 fi
@@ -132,7 +132,11 @@ case "$1" in
        echo "Mounting local file systems..."
        mount -fv -t proc proc /proc
        mount -fv -t sysfs sysfs /sys
-       mount -fv -t tmpfs tmpfs /dev/shm
+       if [ -n "$DEV_ON_TMPFS" -a "$DEV_ON_TMPFS" != "yes" ] ; then
+               mount -fv -t tmpfs tmpfs /dev/shm
+       else
+               mount -fv -t tmpfs initramdevs /dev
+       fi
        rc_status
        optpts="-o mode=0620,gid=5"
        mount -fv -t devpts $optpts devpts /dev/pts

Can you do it, please?
Comment 9 Andreas Schwab 2005-09-05 15:29:36 UTC
Are you sure you want to drop the /dev/shm mount?  What happens with the 
old /dev contents when another tmpfs is mounted on top of it? 
Comment 10 Ruediger Oertel 2005-09-05 21:28:00 UTC
well, what about just listing both, /dev and /dev/shm. 
 
Comment 11 Ruediger Oertel 2005-09-05 21:43:08 UTC
Hannes, ok ? 
 
Comment 12 Hannes Reinecke 2005-09-06 06:17:08 UTC
Personally, I don't care. I just found it a bit pointless to mount a tmpfs
/dev/shm on a tmpfs /dev. But we might as well list both so as not confuse users.

Having said that; no-one is ever going to umount /dev/shm, or is he?
Comment 13 Andreas Schwab 2005-09-06 07:59:17 UTC
You are of course right, I was pretty confused. 
Comment 14 Andreas Schwab 2005-09-06 08:36:39 UTC
On the other hand, /etc/mtab should list all current mount points, so /dev/shm 
should be added as well. 
Comment 15 Hannes Reinecke 2005-09-06 08:39:23 UTC
True. So _if_ /dev/shm is mounted it should be listed there. Only I'm not quite
sure that we actually do mount it. initramfs certainly doesn't when using dev on
tmpfs (not much point, really). Don't know about aaa_base.

Ruediger?
Comment 16 Andreas Schwab 2005-09-06 09:28:19 UTC
See /etc/init.d/boot.shm.  Also note that /dev/shm is mounted with a different  
size (which is configurable) than /dev.  
Comment 17 Ruediger Oertel 2005-09-06 16:17:20 UTC
submitted for RC2