Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 61091 Details for
Bug 70161
Ebuild to be used with the source and or binaries of Xen
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
patch for /etc/init.d/clock to skip hwclock in xenU
xen-clock.patch (text/plain), 1.58 KB, created by
Christopher G. Stach II
on 2005-06-11 19:32:16 UTC
(
hide
)
Description:
patch for /etc/init.d/clock to skip hwclock in xenU
Filename:
MIME Type:
Creator:
Christopher G. Stach II
Created:
2005-06-11 19:32:16 UTC
Size:
1.58 KB
patch
obsolete
>diff -ur ../orig/etc/init.d/clock ./etc/init.d/clock >--- ../orig/etc/init.d/clock 2005-06-11 21:17:18.000000000 -0500 >+++ ./etc/init.d/clock 2005-06-11 21:26:32.000000000 -0500 >@@ -18,6 +18,10 @@ > TBLURB="VServer" > fakeit=1 > return 0 >+ elif is_xenU_sys ; then >+ TBLURB="xenU" >+ fakeit=1 >+ return 0 > elif grep -q ' cobd$' /proc/devices ; then > TBLURB="coLinux" > fakeit=1 >@@ -103,9 +107,15 @@ > setupopts > > ebegin "Syncing system clock to hardware clock [${TBLURB}]" >- if [[ ${CLOCK} == "UML" ]] ; then >+ >+ # Shouldn't this be a test against fakeit? If not, shouldn't this be >+ # checking TBLURB and not CLOCK? -cgs >+ if [[ "${CLOCK}" == "UML" ]] ; then > ret=0 >- >+ >+ elif [[ "${TBLURB}" == "xenU" ]] ; then >+ ret=0 >+ > elif [[ -x /sbin/hwclock ]] ; then > errstr=$(/sbin/hwclock --systohc ${myopts} 2>&1 >/dev/null) > >diff -ur ../orig/sbin/functions.sh ./sbin/functions.sh >--- ../orig/sbin/functions.sh 2005-06-11 21:17:06.000000000 -0500 >+++ ./sbin/functions.sh 2005-06-11 21:26:19.000000000 -0500 >@@ -639,6 +639,26 @@ > return $? > } > >+# bool is_xen0_sys() >+# >+# return 0 if the currently running system is in Xen domain 0 >+# >+# EXAMPLE: if is_xen0_sys ; then ... >+# >+is_xen0_sys() { >+ return [ -d "/proc/xen" ] && [ -f "/proc/xen/privcmd" ] >+} >+ >+# bool is_xenU_sys() >+# >+# return 0 if the currently running system is in an unprivileged Xen domain >+# >+# EXAMPLE: if is_xenU_sys ; then ... >+# >+is_xenU_sys() { >+ return [ -d "/proc/xen" ] && [ ! -f "/proc/xen/privcmd" ] >+} >+ > # bool get_mount_fstab(path) > # > # return the parameters to pass to the mount command generated from fstab
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 70161
:
43893
|
43894
|
43934
|
44961
|
44962
|
44963
|
44965
|
50718
|
51453
|
52423
|
52424
|
53755
|
53756
|
53757
|
53758
|
53759
|
56536
|
57185
|
57186
|
57187
|
57188
|
57189
|
57231
|
57232
|
57233
|
57234
|
57444
|
59355
|
59688
|
59694
|
59695
|
59703
|
59710
|
59947
|
60478
|
60552
|
60561
|
60562
|
60746
| 61091 |
61951
|
62232
|
62233
|
66585