diff options
author | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-01-22 18:02:40 +0000 |
---|---|---|
committer | Bruce Ashfield <bruce.ashfield@gmail.com> | 2020-01-22 18:02:40 +0000 |
commit | 1d174d4e851b1dc74c4c4778cf7d0c52d1f38142 (patch) | |
tree | b02bc6399a9bb5dfabd6dff33da1a1c41a6b3e0a /meta-openstack/recipes-extended/libvirt | |
parent | a401a1c3d86eb00bab8bfccba83c12cc67ce06a1 (diff) | |
download | meta-cloud-services-1d174d4e851b1dc74c4c4778cf7d0c52d1f38142.tar.gz |
bbappends: make distro feature safe
Signed-off-by: Bruce Ashfield <bruce.ashfield@gmail.com>
Diffstat (limited to 'meta-openstack/recipes-extended/libvirt')
-rw-r--r-- | meta-openstack/recipes-extended/libvirt/libvirt_5.%.bbappend | 14 | ||||
-rw-r--r-- | meta-openstack/recipes-extended/libvirt/libvirt_openstack.inc | 13 |
2 files changed, 14 insertions, 13 deletions
diff --git a/meta-openstack/recipes-extended/libvirt/libvirt_5.%.bbappend b/meta-openstack/recipes-extended/libvirt/libvirt_5.%.bbappend index 0b0f011..025ee4e 100644 --- a/meta-openstack/recipes-extended/libvirt/libvirt_5.%.bbappend +++ b/meta-openstack/recipes-extended/libvirt/libvirt_5.%.bbappend | |||
@@ -1,13 +1 @@ | |||
1 | PACKAGECONFIG ?= "qemu lxc test remote macvtap libvirtd udev yajl \ | require ${@bb.utils.contains('DISTRO_FEATURES', 'openstack', '${BPN}_openstack.inc', '', d)} | |
2 | python ebtables \ | ||
3 | ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ | ||
4 | " | ||
5 | |||
6 | inherit useradd | ||
7 | USERADD_PACKAGES = "${PN}" | ||
8 | GROUPADD_PARAM_${PN}_append = " ;--system libvirt" | ||
9 | |||
10 | do_install_append() { | ||
11 | sed -e "s:^#unix_sock_group =:unix_sock_group =:g" -i ${D}/etc/libvirt/libvirtd.conf | ||
12 | sed -e "s:^#unix_sock_rw_perms =:unix_sock_rw_perms =:g" -i ${D}/etc/libvirt/libvirtd.conf | ||
13 | } | ||
diff --git a/meta-openstack/recipes-extended/libvirt/libvirt_openstack.inc b/meta-openstack/recipes-extended/libvirt/libvirt_openstack.inc new file mode 100644 index 0000000..0b0f011 --- /dev/null +++ b/meta-openstack/recipes-extended/libvirt/libvirt_openstack.inc | |||
@@ -0,0 +1,13 @@ | |||
1 | PACKAGECONFIG ?= "qemu lxc test remote macvtap libvirtd udev yajl \ | ||
2 | python ebtables \ | ||
3 | ${@bb.utils.contains('DISTRO_FEATURES', 'selinux', 'selinux', '', d)} \ | ||
4 | " | ||
5 | |||
6 | inherit useradd | ||
7 | USERADD_PACKAGES = "${PN}" | ||
8 | GROUPADD_PARAM_${PN}_append = " ;--system libvirt" | ||
9 | |||
10 | do_install_append() { | ||
11 | sed -e "s:^#unix_sock_group =:unix_sock_group =:g" -i ${D}/etc/libvirt/libvirtd.conf | ||
12 | sed -e "s:^#unix_sock_rw_perms =:unix_sock_rw_perms =:g" -i ${D}/etc/libvirt/libvirtd.conf | ||
13 | } | ||