Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 52870 - /etc/init.d/clock fails if it's run in coLinux environment
Summary: /etc/init.d/clock fails if it's run in coLinux environment
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: x86 Linux
: High minor (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-03 04:25 UTC by Sergey Starosek
Modified: 2004-10-16 09:54 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments
(uname -a; cat /proc/cpuinfo /proc/devices) output (linux.txt,739 bytes, text/plain)
2004-10-16 09:07 UTC, Sergey Starosek
Details
(uname -a; cat /proc/cpuinfo /proc/devices) output (coLinux mode) (colinux.txt,721 bytes, text/plain)
2004-10-16 09:07 UTC, Sergey Starosek
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Sergey Starosek 2004-06-03 04:25:53 UTC
when /etc/init.d/clock is executed during startup modprobe
complains about missing /dev/rtc and /dev/misc. Even if I remove clock from the default runlevel, it's still required by syslog-ng.

There's a check in clock script for UML (User Mode Linux I guess). Adding such check for coLinux would be nice. One may check for the presense of /dev/cobd*
for example.

My system is:
Portage 2.0.50-r7 (default-x86-1.4, gcc-3.2.3, glibc-2.3.2-r9, 2.4.26-co-0.6.1)
=================================================================
System uname: 2.4.26-co-0.6.1 i686 Intel(R) Celeron(R) CPU 2.00GHz
Gentoo Base System version 1.4.10
Autoconf: sys-devel/autoconf-2.58-r1
Automake: sys-devel/automake-1.8.3
ACCEPT_KEYWORDS="x86"
AUTOCLEAN="yes"
CFLAGS="-march=pentium3 -O3 -pipe"
CHOST="i686-pc-linux-gnu"
COMPILER="gcc3"
CONFIG_PROTECT="/etc /opt/tomcat/conf /usr/X11R6/lib/X11/xkb /usr/kde/2/share/config /usr/kde/3/share/config /usr/share/config /var/bind /var/qmail/control"
CONFIG_PROTECT_MASK="/etc/gconf /etc/terminfo /etc/env.d"
CXXFLAGS="-march=pentium3 -O3 -pipe"
DISTDIR="/usr/portage/distfiles"
FEATURES="autoaddcvs ccache sandbox"
GENTOO_MIRRORS="http://gentoo.oregonstate.edu http://www.ibiblio.org/pub/Linux/distributions/gentoo"
MAKEOPTS="-j2"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR="/usr/portage"
PORTDIR_OVERLAY="/usr/local/portage"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
USE="X apm avi berkdb cdr crypt cups encode esd foomaticdb gdbm gif gpm gtk gtk2 imlib java jpeg libg++ libwww mad mikmod motif mpeg ncurses nls oggvorbis opengl oss pam pdflib perl png python qt quicktime readline sdl slang spell ssl svga tcltk tcpd truetype x86 xml2 xmms xv zlib"



Reproducible: Always
Steps to Reproduce:
Comment 1 SpanKY gentoo-dev 2004-10-15 15:23:12 UTC
using /dev/cobd* is not a valid check

what does /proc/cpuinfo report ?
what about `uname -a` ?
Comment 2 Sergey Starosek 2004-10-16 09:07:29 UTC
Created attachment 41965 [details]
(uname -a; cat /proc/cpuinfo /proc/devices) output
Comment 3 Sergey Starosek 2004-10-16 09:07:51 UTC
Created attachment 41966 [details]
(uname -a; cat /proc/cpuinfo /proc/devices) output (coLinux mode)
Comment 4 Sergey Starosek 2004-10-16 09:12:57 UTC
As you can see the difference is only in device list and kernel version.
I don't remember exactly but seem it was me who modified include/linux/version.h
so you may not rely on that difference.
Comment 5 Sergey Starosek 2004-10-16 09:19:21 UTC
to be exact, I've added EXTRAVERSION = -co-0.6.1 to a topmost Makefile
Comment 6 Sergey Starosek 2004-10-16 09:21:17 UTC
see http://www.colinux.org/wiki/index.php/coLinuxFAQ#A19
for details
Comment 7 SpanKY gentoo-dev 2004-10-16 09:49:50 UTC
ok, i'll use this as the check then:
grep -q '^117 cobd$' /proc/devices
Comment 8 SpanKY gentoo-dev 2004-10-16 09:54:04 UTC
+       elif grep -q ' cobd$' /proc/devices
+       then
+               TBLURB="coLinux"
+               return 0


-       if [ "${CLOCK}" == "UML" ]
+       if [ "${CLOCK}" == "UML" ] || [ "${CLOCK}" == "coLinux" ]

fixed in cvs