File fix-default-systemd-unit-dir.patch of Package cloud-init.7450
Index: setup.py
===================================================================
--- setup.py.orig
+++ setup.py
@@ -52,8 +52,8 @@ def tiny_p(cmd, capture=True):
def pkg_config_read(library, var):
fallbacks = {
'systemd': {
- 'systemdsystemunitdir': '/lib/systemd/system',
- 'systemdsystemgeneratordir': '/lib/systemd/system-generators',
+ 'systemdsystemunitdir': '/usr/lib/systemd/system',
+ 'systemdsystemgeneratordir': '/usr/lib/systemd/system-generators',
}
}
cmd = ['pkg-config', '--variable=%s' % var, library]
Index: systemd/cloud-init-generator
===================================================================
--- systemd/cloud-init-generator.orig
+++ systemd/cloud-init-generator
@@ -9,7 +9,7 @@ DISABLE="disabled"
FOUND="found"
NOTFOUND="notfound"
RUN_ENABLED_FILE="$LOG_D/$ENABLE"
-CLOUD_SYSTEM_TARGET="/lib/systemd/system/cloud-init.target"
+CLOUD_SYSTEM_TARGET="/usr/lib/systemd/system/cloud-init.target"
CLOUD_TARGET_NAME="cloud-init.target"
# lxc sets 'container', but lets make that explicitly a global
CONTAINER="${container}"