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

Bug#59576: libc6: kernel flavours break /etc/init.d/devpts.sh



Package: libc6
Version: 2.1.3-5
Severity: normal

See /usr/doc/kernel-package/Flavours.gz for a description of flavours.
My kernelversion (uname -r) is "2.2.14-reiserfs-3.5.18", and devpts.sh
does not recognize it as a 2.2 kernel so /dev/pts does not get mounted.
The following patch solves the problem:

--- devpts.sh.orig      Fri Mar  3 15:32:33 2000
+++ devpts.sh   Fri Mar  3 16:01:07 2000
@@ -24,8 +24,7 @@
 devpts=$(grep -c '\<devpts' /proc/filesystems || true)
 devpts_mounted=$(mount | grep -c '/dev/pts' || true)

-release=$(uname -r)
-major_release=${release%.*}
+major_release=$(uname -r | { IFS=. read major minor tail; echo $major.$minor; }
)

 if [ $devfs -eq 1 ]; then
     solution=devfs

The trick is not to chop at the last dot but after the second dot, so it
doesn't matter how many dots you have in your kernelversion.

Your 'case' construct also seems to break at higher kernelversions like 2.10.*,
4.*, 10.*. Won't it be enough to rely entirely on the value of $solution?

    Ingo

-- System Information
Kernel Version: Linux pinguin 2.2.14-reiserfs-3.5.18 #1 Fre Mär 3 13:50:44 CET 2000 i686 unknown

Versions of the packages libc6 depends on:
ii  ldso                1.9.11-5            The Linux dynamic linker, library and utilities.


Reply to: