Warning!

Notice: the grml team is migrating from Mercurial to Git.
Please visit git.grml.org instead!

* config_time: use option --directisa for hwclock if running hwclock
authorMichael Prokop <mika@grml.org>
Sun Dec 03 18:08:08 2006 +0100 (24 months ago)
changeset 39e57dc3b3cad1
manifeste57dc3b3cad1
parent 38e5f2b44965c8
child 400b73a976d4bc
* config_time: use option --directisa for hwclock if running hwclock
fails (work around the 'select() to /dev/rtc to wait for clock
tick timed out' problem).
autoconfig.functions
debian/changelog
--- a/autoconfig.functions Sun Dec 03 12:52:44 2006 +0100
+++ b/autoconfig.functions Sun Dec 03 18:08:08 2006 +0100
@@ -335,8 +335,16 @@ config_time(){
checkbootparam utc >>$DEBUG 2>&1 && UTC="-u"
checkbootparam gmt >>$DEBUG 2>&1 && UTC="-u"
# hwclock uses the TZ variable
- export TZ
- hwclock $UTC -s
+ . /etc/default/locale
+ ERROR=$(TZ="$TZ" hwclock $UTC -s 2>&1) ; RC=$?
+ if [ -n "$ERROR" ] ; then
+ eindent
+ ERROR=$(TZ="$TZ" hwclock $UTC -s --directisa 2>&1)
+ if [ -n "$ERROR" ] ; then
+ eerror "Problem running hwclock: $ERROR" ; eend 1
+ fi
+ eoutdent
+ fi
fi
}
# }}}
@@ -965,7 +973,7 @@ if [ -n "$partitions" ]; then
eindent
if [ -n "$NOSWAP" ]; then
if [ -z "$INSTALLED" ] ; then
- ewarn "Ignoring swap partition ${WHITE}$p${NORMAL}. (Force usage via boot option 'swap', or execute grml-swapon)" ; eend 0
+ ewarn "Ignoring swap partition ${WHITE}$p${NORMAL}. (Force usage via boot option 'swap', or execute grml-swapon)" ; eend 0
fi
else
case "$(dd if=$p bs=1 count=6 skip=4086 2>/dev/null)" in
--- a/debian/changelog Sun Dec 03 12:52:44 2006 +0100
+++ b/debian/changelog Sun Dec 03 18:08:08 2006 +0100
@@ -1,3 +1,11 @@ grml-autoconfig (0.6-6) unstable; urgenc
+grml-autoconfig (0.6-7) unstable; urgency=low
+
+ * config_time: use option --directisa for hwclock if running hwclock
+ fails (work around the 'select() to /dev/rtc to wait for clock
+ tick timed out' problem).
+
+ -- Michael Prokop <mika@grml.org> Sun, 3 Dec 2006 18:07:08 +0100
+
grml-autoconfig (0.6-6) unstable; urgency=low
* Display "not using swap partition" only in live-cd mode.