From: Michael Prokop Date: Sun, 3 Dec 2006 17:08:08 +0000 (+0100) Subject: * config_time: use option --directisa for hwclock if running hwclock X-Git-Tag: 0.6-8~1 X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=commitdiff_plain;h=9eeb806d12012b16f75ccdf78f680b8ca9e5f569;ds=sidebyside * 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). --- diff --git a/autoconfig.functions b/autoconfig.functions index 5307d54..5c8e087 100755 --- a/autoconfig.functions +++ b/autoconfig.functions @@ -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 diff --git a/debian/changelog b/debian/changelog index 3ce03ed..a7ee4b1 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,11 @@ +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 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.