tools/hotplug: use configure --sysconfdir result
PATCH 1/1 tools/hotplug: use configure --sysconfdir result
... instead of hardcoding values and guess where they config files may be. Also use the result of --with-sysconfig-leaf-dir.
--- tools/hotplug/Linux/init.d/xencommons.in | 6 +----- tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in | 3 +-- tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in | 3 +-- tools/hotplug/Linux/systemd/xenconsoled.service.in | 3 +-- tools/hotplug/Linux/systemd/xenstored.service.in | 3 +-- tools/hotplug/Linux/xendomains.in | 6 +----- 6 files changed, 6 insertions(+), 18 deletions(-)
tools/hotplug/Linux/init.d/xencommons.in +1 -5
@@ -23,11 +23,7 @@ BACKEND_MODULES="@LINUX_BACKEND_MODULES@" . @XEN_SCRIPT_DIR@/hotplugpath.sh -if [ -d /etc/sysconfig ]; then - xencommons_config=/etc/sysconfig -else - xencommons_config=/etc/default -fi +xencommons_config=@CONFIG_DIR@/@CONFIG_LEAF_DIR@ test -f $xencommons_config/xencommons && . $xencommons_config/xencommons
tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in +1 -2
@@ -5,8 +5,7 @@ RefuseManualStop=true [Mount] Environment=XENSTORED_MOUNT_CTX=none -EnvironmentFile=-/etc/sysconfig/xenstored -EnvironmentFile=-/etc/default/xenstored +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored What=xenstore Where=@XEN_LIB_STORED@ Type=tmpfs
tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in +1 -2
@@ -8,8 +8,7 @@ ConditionVirtualization=xen [Service] Type=simple -EnvironmentFile=-/etc/default/xenstored -EnvironmentFile=-/etc/sysconfig/xenstored +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored PIDFile=@XEN_RUN_DIR@/qemu-dom0.pid ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@
tools/hotplug/Linux/systemd/xenconsoled.service.in +1 -2
@@ -9,8 +9,7 @@ Type=simple Environment=XENCONSOLED_ARGS= Environment=XENCONSOLED_LOG=none Environment=XENCONSOLED_LOG_DIR=@XEN_LOG_DIR@/console -EnvironmentFile=-/etc/default/xenconsoled -EnvironmentFile=-/etc/sysconfig/xenconsoled +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenconsoled PIDFile=@XEN_RUN_DIR@/xenconsoled.pid ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=/bin/mkdir -p ${XENCONSOLED_LOG_DIR}
tools/hotplug/Linux/systemd/xenstored.service.in +1 -2
@@ -11,8 +11,7 @@ Type=notify Environment=XENSTORED_ARGS= Environment=XENSTORED_ROOTDIR=@XEN_LIB_STORED@ Environment=XENSTORED=@XENSTORED@ -EnvironmentFile=-/etc/default/xencommons -EnvironmentFile=-/etc/sysconfig/xencommons +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=-/bin/rm -f @XEN_LIB_STORED@/tdb* ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@
tools/hotplug/Linux/xendomains.in +1 -5
@@ -51,11 +51,7 @@ fi LOCKFILE=${XEN_LOCK_DIR}/xendomains -if [ -d /etc/sysconfig ]; then - XENDOM_CONFIG=/etc/sysconfig/xendomains -else - XENDOM_CONFIG=/etc/default/xendomains -fi +XENDOM_CONFIG=@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xendomains test -r $XENDOM_CONFIG || { echo "$XENDOM_CONFIG not existing"; if [ "$1" = "stop" ]; then exit 0;
Quoted 4 lines · Olaf Hering
... instead of hardcoding values and guess where they config files may be. Also use the result of --with-sysconfig-leaf-dir.
Signed-off-by Olaf Hering <[email protected]>
Is this a bug fix or a feature? What are the risks? IsLKonrad OK with it?
Quoted 102 lines
Cc Ian Jackson <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Wei Liu <[email protected]>--- tools/hotplug/Linux/init.d/xencommons.in | 6 +----- tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in | 3 +-- tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in | 3 +-- tools/hotplug/Linux/systemd/xenconsoled.service.in | 3 +-- tools/hotplug/Linux/systemd/xenstored.service.in | 3 +-- tools/hotplug/Linux/xendomains.in | 6 +----- 6 files changed, 6 insertions(+), 18 deletions(-)tools/hotplug/Linux/init.d/xencommons.in +1
-5@@ -23,11 +23,7 @@ BACKEND_MODULES="@LINUX_BACKEND_MODULES@" . @XEN_SCRIPT_DIR@/hotplugpath.sh -if [ -d /etc/sysconfig ]; then - xencommons_config=/etc/sysconfig -else - xencommons_config=/etc/default -fi +xencommons_config=@CONFIG_DIR@/@CONFIG_LEAF_DIR@ test -f $xencommons_config/xencommons && . $xencommons_config/xencommonstools/hotplug/Linux/systemd/var-lib-xenstored.mount.in +1
-2@@ -5,8 +5,7 @@ RefuseManualStop=true [Mount] Environment=XENSTORED_MOUNT_CTX=none -EnvironmentFile=-/etc/sysconfig/xenstored -EnvironmentFile=-/etc/default/xenstored +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored What=xenstore Where=@XEN_LIB_STORED@ Type=tmpfstools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in +1
-2@@ -8,8 +8,7 @@ ConditionVirtualization=xen [Service] Type=simple -EnvironmentFile=-/etc/default/xenstored -EnvironmentFile=-/etc/sysconfig/xenstored +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored PIDFile=@XEN_RUN_DIR@/qemu-dom0.pid ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@tools/hotplug/Linux/systemd/xenconsoled.service.in +1
-2@@ -9,8 +9,7 @@ Type=simple Environment=XENCONSOLED_ARGS= Environment=XENCONSOLED_LOG=none Environment=XENCONSOLED_LOG_DIR=@XEN_LOG_DIR@/console -EnvironmentFile=-/etc/default/xenconsoled -EnvironmentFile=-/etc/sysconfig/xenconsoled +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenconsoled PIDFile=@XEN_RUN_DIR@/xenconsoled.pid ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=/bin/mkdir -p ${XENCONSOLED_LOG_DIR}tools/hotplug/Linux/systemd/xenstored.service.in +1
-2@@ -11,8 +11,7 @@ Type=notify Environment=XENSTORED_ARGS= Environment=XENSTORED_ROOTDIR=@XEN_LIB_STORED@ Environment=XENSTORED=@XENSTORED@ -EnvironmentFile=-/etc/default/xencommons -EnvironmentFile=-/etc/sysconfig/xencommons +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=-/bin/rm -f @XEN_LIB_STORED@/tdb* ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@tools/hotplug/Linux/xendomains.in +1
-5@@ -51,11 +51,7 @@ fi LOCKFILE=${XEN_LOCK_DIR}/xendomains -if [ -d /etc/sysconfig ]; then - XENDOM_CONFIG=/etc/sysconfig/xendomains -else - XENDOM_CONFIG=/etc/default/xendomains -fi +XENDOM_CONFIG=@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xendomains test -r $XENDOM_CONFIG || { echo "$XENDOM_CONFIG not existing"; if [ "$1" = "stop" ]; then exit 0;
Quoted 9 lines · Ian Campbell
Quoted 4 lines · Olaf Hering
... instead of hardcoding values and guess where they config files may be. Also use the result of --with-sysconfig-leaf-dir.
Signed-off-by Olaf Hering <[email protected]>Acked-by Ian Campbell <[email protected]>Is this a bug fix or a feature? What are the risks? IsLKonrad OK with
Now that these files are installed in --sysconfig=DIR its wrong to parse some other files that may or may not exist on the system. So in that sense its a bugfix.
Olaf
Olaf Hering writes ("[PATCH for-xen-4.5] tools/hotplug: use configure --sysconfdir result"):
Quoted 2 lines
... instead of hardcoding values and guess where they config files may be. Also use the result of --with-sysconfig-leaf-dir.
This looks plausible but I haven't tested it. Olaf, have you done before-and-after test builds and checked that the results in dist/install/ are identical ?
Thanks,
Ian.
Quoted 7 lines · Ian Jackson
Olaf Hering writes ("[PATCH for-xen-4.5]
tools/hotplug: use configure --sysconfdir result"):Quoted 2 lines
... instead of hardcoding values and guess where they config files may be. Also use the result of --with-sysconfig-leaf-dir.
This looks plausible but I haven't tested it. Olaf, have you done before-and-after test builds and checked that the results in dist/install/ are identical ?
I have verified that the values are what they are supposed to be. My /opt/xen/staging-upstream/etc/init.d/xencommons has xencommons_config=/opt/xen/staging-upstream/etc/sysconfig. Similar with odd values for --sysconfdir and --with-sysconfig-leaf-dir.
Olaf
Ping?
Quoted 113 lines
... instead of hardcoding values and guess where they config files may be. Also use the result of --with-sysconfig-leaf-dir.
Signed-off-by Olaf Hering <[email protected]>Cc Ian Campbell <[email protected]>Cc Ian Jackson <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Wei Liu <[email protected]>--- tools/hotplug/Linux/init.d/xencommons.in | 6 +----- tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in | 3 +-- tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in | 3 +-- tools/hotplug/Linux/systemd/xenconsoled.service.in | 3 +-- tools/hotplug/Linux/systemd/xenstored.service.in | 3 +-- tools/hotplug/Linux/xendomains.in | 6 +----- 6 files changed, 6 insertions(+), 18 deletions(-)tools/hotplug/Linux/init.d/xencommons.in +1
-5@@ -23,11 +23,7 @@ BACKEND_MODULES="@LINUX_BACKEND_MODULES@" . @XEN_SCRIPT_DIR@/hotplugpath.sh -if [ -d /etc/sysconfig ]; then - xencommons_config=/etc/sysconfig -else - xencommons_config=/etc/default -fi +xencommons_config=@CONFIG_DIR@/@CONFIG_LEAF_DIR@ test -f $xencommons_config/xencommons && . $xencommons_config/xencommonstools/hotplug/Linux/systemd/var-lib-xenstored.mount.in +1
-2@@ -5,8 +5,7 @@ RefuseManualStop=true [Mount] Environment=XENSTORED_MOUNT_CTX=none -EnvironmentFile=-/etc/sysconfig/xenstored -EnvironmentFile=-/etc/default/xenstored +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored What=xenstore Where=@XEN_LIB_STORED@ Type=tmpfstools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in +1
-2@@ -8,8 +8,7 @@ ConditionVirtualization=xen [Service] Type=simple -EnvironmentFile=-/etc/default/xenstored -EnvironmentFile=-/etc/sysconfig/xenstored +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored PIDFile=@XEN_RUN_DIR@/qemu-dom0.pid ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@tools/hotplug/Linux/systemd/xenconsoled.service.in +1
-2@@ -9,8 +9,7 @@ Type=simple Environment=XENCONSOLED_ARGS= Environment=XENCONSOLED_LOG=none Environment=XENCONSOLED_LOG_DIR=@XEN_LOG_DIR@/console -EnvironmentFile=-/etc/default/xenconsoled -EnvironmentFile=-/etc/sysconfig/xenconsoled +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenconsoled PIDFile=@XEN_RUN_DIR@/xenconsoled.pid ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=/bin/mkdir -p ${XENCONSOLED_LOG_DIR}tools/hotplug/Linux/systemd/xenstored.service.in +1
-2@@ -11,8 +11,7 @@ Type=notify Environment=XENSTORED_ARGS= Environment=XENSTORED_ROOTDIR=@XEN_LIB_STORED@ Environment=XENSTORED=@XENSTORED@ -EnvironmentFile=-/etc/default/xencommons -EnvironmentFile=-/etc/sysconfig/xencommons +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=-/bin/rm -f @XEN_LIB_STORED@/tdb* ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@tools/hotplug/Linux/xendomains.in +1
-5@@ -51,11 +51,7 @@ fi LOCKFILE=${XEN_LOCK_DIR}/xendomains -if [ -d /etc/sysconfig ]; then - XENDOM_CONFIG=/etc/sysconfig/xendomains -else - XENDOM_CONFIG=/etc/default/xendomains -fi +XENDOM_CONFIG=@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xendomains test -r $XENDOM_CONFIG || { echo "$XENDOM_CONFIG not existing"; if [ "$1" = "stop" ]; then exit 0;_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
You forgot to add the release manager... I've done that for you.
Quoted 4 lines · In <[email protected]> I said:
Acked-by Ian Campbell <[email protected]>Is this a bug fix or a feature? What are the risks? IsLKonrad OK with it?
Quoted 116 lines · Olaf Hering
Ping?
Quoted 113 lines
... instead of hardcoding values and guess where they config files may be. Also use the result of --with-sysconfig-leaf-dir.
Signed-off-by Olaf Hering <[email protected]>Cc Ian Campbell <[email protected]>Cc Ian Jackson <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Wei Liu <[email protected]>--- tools/hotplug/Linux/init.d/xencommons.in | 6 +----- tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in | 3 +-- tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in | 3 +-- tools/hotplug/Linux/systemd/xenconsoled.service.in | 3 +-- tools/hotplug/Linux/systemd/xenstored.service.in | 3 +-- tools/hotplug/Linux/xendomains.in | 6 +----- 6 files changed, 6 insertions(+), 18 deletions(-)tools/hotplug/Linux/init.d/xencommons.in +1
-5@@ -23,11 +23,7 @@ BACKEND_MODULES="@LINUX_BACKEND_MODULES@" . @XEN_SCRIPT_DIR@/hotplugpath.sh -if [ -d /etc/sysconfig ]; then - xencommons_config=/etc/sysconfig -else - xencommons_config=/etc/default -fi +xencommons_config=@CONFIG_DIR@/@CONFIG_LEAF_DIR@ test -f $xencommons_config/xencommons && . $xencommons_config/xencommonstools/hotplug/Linux/systemd/var-lib-xenstored.mount.in +1
-2@@ -5,8 +5,7 @@ RefuseManualStop=true [Mount] Environment=XENSTORED_MOUNT_CTX=none -EnvironmentFile=-/etc/sysconfig/xenstored -EnvironmentFile=-/etc/default/xenstored +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored What=xenstore Where=@XEN_LIB_STORED@ Type=tmpfstools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in +1
-2@@ -8,8 +8,7 @@ ConditionVirtualization=xen [Service] Type=simple -EnvironmentFile=-/etc/default/xenstored -EnvironmentFile=-/etc/sysconfig/xenstored +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored PIDFile=@XEN_RUN_DIR@/qemu-dom0.pid ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@tools/hotplug/Linux/systemd/xenconsoled.service.in +1
-2@@ -9,8 +9,7 @@ Type=simple Environment=XENCONSOLED_ARGS= Environment=XENCONSOLED_LOG=none Environment=XENCONSOLED_LOG_DIR=@XEN_LOG_DIR@/console -EnvironmentFile=-/etc/default/xenconsoled -EnvironmentFile=-/etc/sysconfig/xenconsoled +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenconsoled PIDFile=@XEN_RUN_DIR@/xenconsoled.pid ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=/bin/mkdir -p ${XENCONSOLED_LOG_DIR}tools/hotplug/Linux/systemd/xenstored.service.in +1
-2@@ -11,8 +11,7 @@ Type=notify Environment=XENSTORED_ARGS= Environment=XENSTORED_ROOTDIR=@XEN_LIB_STORED@ Environment=XENSTORED=@XENSTORED@ -EnvironmentFile=-/etc/default/xencommons -EnvironmentFile=-/etc/sysconfig/xencommons +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=-/bin/rm -f @XEN_LIB_STORED@/tdb* ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@tools/hotplug/Linux/xendomains.in +1
-5@@ -51,11 +51,7 @@ fi LOCKFILE=${XEN_LOCK_DIR}/xendomains -if [ -d /etc/sysconfig ]; then - XENDOM_CONFIG=/etc/sysconfig/xendomains -else - XENDOM_CONFIG=/etc/default/xendomains -fi +XENDOM_CONFIG=@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xendomains test -r $XENDOM_CONFIG || { echo "$XENDOM_CONFIG not existing"; if [ "$1" = "stop" ]; then exit 0;_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 7 lines · Ian Campbell
You forgot to add the release manager... I've done that for you.
Quoted 4 lines · In <[email protected]> I said:
Acked-by Ian Campbell <[email protected]>Is this a bug fix or a feature? What are the risks? IsLKonrad OK with it?
Back again to that question.
What happens if we do not take that in now but delay to Xen 4.6?
Will systemd still correctly work? It looks like it will and this is just an improvement that makes the code be more streamlined.
It does not fix a bug (at least that is what I see from reading), I believe this should be deferred to Xen 4.6.
Quoted 120 lines · Olaf Hering
Quoted 116 lines
Ping?
Quoted 113 lines
... instead of hardcoding values and guess where they config files may be. Also use the result of --with-sysconfig-leaf-dir.
Signed-off-by Olaf Hering <[email protected]>Cc Ian Campbell <[email protected]>Cc Ian Jackson <[email protected]>Cc Stefano Stabellini <[email protected]>Cc Wei Liu <[email protected]>--- tools/hotplug/Linux/init.d/xencommons.in | 6 +----- tools/hotplug/Linux/systemd/var-lib-xenstored.mount.in | 3 +-- tools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in | 3 +-- tools/hotplug/Linux/systemd/xenconsoled.service.in | 3 +-- tools/hotplug/Linux/systemd/xenstored.service.in | 3 +-- tools/hotplug/Linux/xendomains.in | 6 +----- 6 files changed, 6 insertions(+), 18 deletions(-)tools/hotplug/Linux/init.d/xencommons.in +1
-5@@ -23,11 +23,7 @@ BACKEND_MODULES="@LINUX_BACKEND_MODULES@" . @XEN_SCRIPT_DIR@/hotplugpath.sh -if [ -d /etc/sysconfig ]; then - xencommons_config=/etc/sysconfig -else - xencommons_config=/etc/default -fi +xencommons_config=@CONFIG_DIR@/@CONFIG_LEAF_DIR@ test -f $xencommons_config/xencommons && . $xencommons_config/xencommonstools/hotplug/Linux/systemd/var-lib-xenstored.mount.in +1
-2@@ -5,8 +5,7 @@ RefuseManualStop=true [Mount] Environment=XENSTORED_MOUNT_CTX=none -EnvironmentFile=-/etc/sysconfig/xenstored -EnvironmentFile=-/etc/default/xenstored +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored What=xenstore Where=@XEN_LIB_STORED@ Type=tmpfstools/hotplug/Linux/systemd/xen-qemu-dom0-disk-backend.service.in +1
-2@@ -8,8 +8,7 @@ ConditionVirtualization=xen [Service] Type=simple -EnvironmentFile=-/etc/default/xenstored -EnvironmentFile=-/etc/sysconfig/xenstored +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenstored PIDFile=@XEN_RUN_DIR@/qemu-dom0.pid ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@tools/hotplug/Linux/systemd/xenconsoled.service.in +1
-2@@ -9,8 +9,7 @@ Type=simple Environment=XENCONSOLED_ARGS= Environment=XENCONSOLED_LOG=none Environment=XENCONSOLED_LOG_DIR=@XEN_LOG_DIR@/console -EnvironmentFile=-/etc/default/xenconsoled -EnvironmentFile=-/etc/sysconfig/xenconsoled +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xenconsoled PIDFile=@XEN_RUN_DIR@/xenconsoled.pid ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=/bin/mkdir -p ${XENCONSOLED_LOG_DIR}tools/hotplug/Linux/systemd/xenstored.service.in +1
-2@@ -11,8 +11,7 @@ Type=notify Environment=XENSTORED_ARGS= Environment=XENSTORED_ROOTDIR=@XEN_LIB_STORED@ Environment=XENSTORED=@XENSTORED@ -EnvironmentFile=-/etc/default/xencommons -EnvironmentFile=-/etc/sysconfig/xencommons +EnvironmentFile=-@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xencommons ExecStartPre=/bin/grep -q control_d /proc/xen/capabilities ExecStartPre=-/bin/rm -f @XEN_LIB_STORED@/tdb* ExecStartPre=/bin/mkdir -p @XEN_RUN_DIR@tools/hotplug/Linux/xendomains.in +1
-5@@ -51,11 +51,7 @@ fi LOCKFILE=${XEN_LOCK_DIR}/xendomains -if [ -d /etc/sysconfig ]; then - XENDOM_CONFIG=/etc/sysconfig/xendomains -else - XENDOM_CONFIG=/etc/default/xendomains -fi +XENDOM_CONFIG=@CONFIG_DIR@/@CONFIG_LEAF_DIR@/xendomains test -r $XENDOM_CONFIG || { echo "$XENDOM_CONFIG not existing"; if [ "$1" = "stop" ]; then exit 0;_______________________________________________
Xen-devel mailing list
[email protected]
http://lists.xen.org/xen-devel
Quoted 1 line · Konrad Rzeszutek Wilk
What happens if we do not take that in now but delay to Xen 4.6?
I will be very unhappy...
I mean, what exactly is the concern here?!
Quoted 5 lines
Will systemd still correctly work? It looks like it will and this is just an improvement that makes the code be more streamlined.
It does not fix a bug (at least that is what I see from reading), I believe this should be deferred to Xen 4.6.
It does fix a bug. If the whole thing was configured with --prefix=X --sysconfdir=Y parts of it will still refer to hardcoded paths entirely unrelated to what was just installed with 'make install'.
Olaf
Quoted 7 lines · Olaf Hering
Quoted 1 line · Konrad Rzeszutek Wilk
What happens if we do not take that in now but delay to Xen 4.6?
I will be very unhappy...
I mean, what exactly is the concern here?!
I need to know what the risk is if this does not go in. We are at RC2 and I really want to make the amount of patches that go in be a trickle.
Quoted 10 lines
Quoted 6 lines
Will systemd still correctly work? It looks like it will and this is just an improvement that makes the code be more streamlined.
It does not fix a bug (at least that is what I see from reading), I believe this should be deferred to Xen 4.6.
It does fix a bug. If the whole thing was configured with --prefix=X --sysconfdir=Y parts of it will still refer to hardcoded paths entirely unrelated to what was just installed with 'make install'.
How often does that happen? Do the two paths that are specified in the code cover 99% of the use-cases?
Quoted 2 lines
Olaf
Quoted 4 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Olaf Hering
On Wed, Nov 12, Konrad Rzeszutek Wilk wrote:
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
What happens if we do not take that in now but delay to Xen 4.6?
I will be very unhappy...
I mean, what exactly is the concern here?!I need to know what the risk is if this does not go in. We are at RC2 and I really want to make the amount of patches that go in be a trickle.
Its risk free.
Quoted 6 lines
Quoted 6 lines
Quoted 5 lines
Will systemd still correctly work? It looks like it will and this is just an improvement that makes the code be more streamlined.
It does not fix a bug (at least that is what I see from reading), I believe this should be deferred to Xen 4.6.
Quoted 6 lines
Quoted 3 lines
It does fix a bug. If the whole thing was configured with --prefix=X --sysconfdir=Y parts of it will still refer to hardcoded paths entirely unrelated to what was just installed with 'make install'.
How often does that happen? Do the two paths that are specified in the code cover 99% of the use-cases?
It covers 100% of the use cases. Just today someone complained on xen-users that stuff isnt appearing below /usr/local (not sure why, not our fault), but even if it was there it wouldnt be used because the code hardcodes /etc.
Olaf
Quoted 27 lines · Olaf Hering
Quoted 4 lines · Konrad Rzeszutek Wilk
Quoted 3 lines · Olaf Hering
On Wed, Nov 12, Konrad Rzeszutek Wilk wrote:
Quoted 8 lines
Quoted 4 lines
Quoted 1 line
What happens if we do not take that in now but delay to Xen 4.6?
I will be very unhappy...
I mean, what exactly is the concern here?!I need to know what the risk is if this does not go in. We are at RC2 and I really want to make the amount of patches that go in be a trickle.
Its risk free.
Quoted 10 lines
Quoted 9 lines
Quoted 5 lines
Will systemd still correctly work? It looks like it will and this is just an improvement that makes the code be more streamlined.
It does not fix a bug (at least that is what I see from reading), I believe this should be deferred to Xen 4.6.
It does fix a bug. If the whole thing was configured with --prefix=X --sysconfdir=Y parts of it will still refer to hardcoded paths entirely unrelated to what was just installed with 'make install'.
Quoted 7 lines
Quoted 2 lines
How often does that happen? Do the two paths that are specified in the code cover 99% of the use-cases?
It covers 100% of the use cases. Just today someone complained on xen-users that stuff isnt appearing below
/usr/local(not sure why, not our fault), but even if it was there it wouldnt be used because the code hardcodes /etc.
Excellent.
Quoted 2 lines
Olaf
Ian Campbell
AppliedQuoted 1 line · Konrad Rzeszutek Wilk
Release-Acked-by Konrad Rzeszutek Wilk <[email protected]>
Applied.