[Bug 422010] New: aaa_base clock boot scripts error in Xen
https://bugzilla.novell.com/show_bug.cgi?id=422010 Summary: aaa_base clock boot scripts error in Xen Product: openSUSE 11.0 Version: Final Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: P5 - None Component: Xen AssignedTo: cgriffin@novell.com ReportedBy: pzb@novell.com QAContact: qa@suse.de Blocks: 422003 Found By: --- Xen domU domains do not have a hardware clock. The /etc/init.d/boot.clock and /etc/init.d/boot.getclock scripts do not check to see if they are running in a domU and error when run in a domU. Something similar to the following patch is needed. --- /etc/init.d/boot.clock.orig 2008-05-20 03:25:20.000000000 -0400 +++ /etc/init.d/boot.clock 2008-08-30 07:43:27.000000000 -0400 @@ -29,6 +29,8 @@ esac test "$USE_ADJFILE" = no && HWCLOCK="$HWCLOCK --noadjfile" +XEN_DOMU=$([ -e /proc/sys/xen/independent_wallclock ] && echo 1) + rc_reset case "$1" in @@ -43,7 +45,7 @@ fi # Set and adjust the hardware clock # - if test "$HOSTTYPE" = "s390" -o "$HOSTTYPE" = "s390x" ; then + if test "$HOSTTYPE" = "s390" -o "$HOSTTYPE" = "s390x" -o "$XEN_DOMU"; then echo -n Setting up the system clock --- /etc/init.d/boot.getclock.orig 2008-04-18 07:47:35.000000000 -0400 +++ /etc/init.d/boot.getclock 2008-08-30 11:31:00.000000000 -0400 @@ -28,13 +28,15 @@ esac test "$USE_ADJFILE" = no && HWCLOCK="$HWCLOCK --noadjfile" +XEN_DOMU=$([ -e /proc/sys/xen/independent_wallclock ] && echo 1) + rc_reset case "$1" in start|restart) ;; stop) - if test "$HOSTTYPE" != "s390" -a "$HOSTTYPE" != "s390x" ; then + if test "$HOSTTYPE" != "s390" -a "$HOSTTYPE" != "s390x" -a ! "$XEN_DOMU" ; then if test "$SYSTOHC" = "yes" ; then echo -n "Set Hardware Clock to the current System Time" # -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are on the CC list for the bug.
https://bugzilla.novell.com/show_bug.cgi?id=422010
Jason Douglas
https://bugzilla.novell.com/show_bug.cgi?id=422010
Jan Beulich
https://bugzilla.novell.com/show_bug.cgi?id=422010
Jan Beulich
https://bugzilla.novell.com/show_bug.cgi?id=422010
Cyril Hrubis
https://bugzilla.novell.com/show_bug.cgi?id=422010
User ro@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=422010#c1
Ruediger Oertel
https://bugzilla.novell.com/show_bug.cgi?id=422010
User werner@novell.com added comment
https://bugzilla.novell.com/show_bug.cgi?id=422010#c2
Dr. Werner Fink
participants (1)
-
bugzilla_noreply@novell.com