Doesn't place filesystem type in /etc/mtab
Affects | Status | Importance | Assigned to | Milestone | |
---|---|---|---|---|---|
sysvinit (Ubuntu) |
Invalid
|
Medium
|
Unassigned |
Bug Description
At least when using XFS, the filesystem type doesn't end up in /etc/mtab,
instead you get "unknown", e.g.:
/dev/hda2 / unknown rw 0 0
I traced this to /etc/init.
mtab entry:
if [ "$init_mtab" = yes ]
then
[ "$roottype" != none ] && mount -f -o $rootopts $fstabroot /
[ -n "$devfs" ] && mount -f $devfs
. /etc/init.
fi
It needs '-t $roottype' added before the '$fstabroot' bit ... that way mount
knows what file system type to add to mtab.
Although this seems superficial, it's actually quite important as without this
information laptop-mode doesn't know how to adjust the filesystem settings and
set the "noatime" bit (ie. you get a non-slumbering drive).
This bug has been marked as a duplicate of bug 8585.