Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 142140 - clock init script needs to consider genrtc module as well
Summary: clock init script needs to consider genrtc module as well
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] baselayout (show other bugs)
Hardware: All Linux
: Highest critical (vote)
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
: 142141 (view as bug list)
Depends on:
Blocks:
 
Reported: 2006-07-29 19:29 UTC by Robin Johnson
Modified: 2006-07-30 16:57 UTC (History)
1 user (show)

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


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Robin Johnson archtester Gentoo Infrastructure gentoo-dev Security 2006-07-29 19:29:27 UTC
We need to support the genrtc module for systems where the RTC module is not suitable, but don't need the full fakeit support. This also helps for other cases that call hwclock directly, as the genrtc module will ensure it works properly.

Affects me presently on a PPC system, a specific MIPS system, and non-standard i386 hardware (SGI VisWS).

If this isn't set, then the machine fails to boot. The hwclock fails, and you get asked for a root password, or ctrl-D, and on the ctrl-D, the machine reboots.

diff -Nuar /etc/init.d/clock.orig /etc/init.d/clock
--- /etc/init.d/clock.orig	2006-07-29 19:25:02.000000000 -0700
+++ /etc/init.d/clock	2006-07-29 12:10:51.000000000 -0700
@@ -73,7 +73,7 @@
 	setupopts
 
 	if [[ ${fakeit} -ne 1 && -e /proc/modules && ! -e /dev/rtc ]] ; then
-		modprobe rtc &> /dev/null
+		modprobe rtc &> /dev/null || modprobe genrtc &> /dev/null
 	fi
 
 	ebegin "Setting system clock using the hardware clock [${TBLURB}]"
Comment 1 Jakub Moc (RETIRED) gentoo-dev 2006-07-30 04:39:21 UTC
*** Bug 142141 has been marked as a duplicate of this bug. ***
Comment 2 SpanKY gentoo-dev 2006-07-30 16:57:14 UTC
added to svn, cheers