X-Git-Url: http://git.grml.org/?p=grml-autoconfig.git;a=blobdiff_plain;f=autoconfig.functions;h=5c8e08772a0a919b94945a6242f6ca4427d1658b;hp=22a8e83e1e66708f1f15541176cc9ca042ead486;hb=9eeb806d12012b16f75ccdf78f680b8ca9e5f569;hpb=5ff34bb10a86b066b23197d5c67c7a6c00da3a22 diff --git a/autoconfig.functions b/autoconfig.functions index 22a8e83..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 } # }}} @@ -964,7 +972,9 @@ if [ -n "$partitions" ]; then case "$f" in swap) eindent if [ -n "$NOSWAP" ]; then - ewarn "Ignoring swap partition ${WHITE}$p${NORMAL}. (Force usage via boot option 'swap', or execute grml-swapon)" ; eend 0 + if [ -z "$INSTALLED" ] ; then + 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 S1SUSP|S2SUSP|pmdisk|[zZ]*)