diff options
author | Simon Rettberg | 2021-11-12 12:36:46 +0100 |
---|---|---|
committer | Simon Rettberg | 2021-11-12 12:36:46 +0100 |
commit | 895e53ba6791ad691a67efc205b1162adc735ef0 (patch) | |
tree | 10cb509cad1c2478648823f2a73d4bcdce9bf7cc /core/modules/libvirt-src | |
parent | [downloader.inc] Fix misuse of $@ -> $* (diff) | |
download | mltk-895e53ba6791ad691a67efc205b1162adc735ef0.tar.gz mltk-895e53ba6791ad691a67efc205b1162adc735ef0.tar.xz mltk-895e53ba6791ad691a67efc205b1162adc735ef0.zip |
[libvirt-src] /var/run is not empty - delete with -rf
Diffstat (limited to 'core/modules/libvirt-src')
-rw-r--r-- | core/modules/libvirt-src/module.build | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/core/modules/libvirt-src/module.build b/core/modules/libvirt-src/module.build index ef45f5c0..ff79280a 100644 --- a/core/modules/libvirt-src/module.build +++ b/core/modules/libvirt-src/module.build @@ -65,9 +65,9 @@ build() { sed -i 's/^libdir=.*$/libdir=\/usr\/lib\/x86_64-linux-gnu/g' "${DSTDIR}/usr/lib64/pkgconfig/libvirt-lxc.pc" sed -i 's/^libdir=.*$/libdir=\/usr\/lib\/x86_64-linux-gnu/g' "${DSTDIR}/usr/lib64/pkgconfig/libvirt-qemu.pc" - # delete empty run folder to prevent mltk from stopping + # delete non-empty run folder to prevent mltk from stopping if [ -d "${DSTDIR}/var/run" ] && ! [ -L "${DSTDIR}/var/run" ]; then - rmdir "${DSTDIR}/var/run" || perror "${DSTDIR}/var/run exists and is not empty" + rm -rf -- "${DSTDIR}/var/run" || perror "${DSTDIR}/var/run exists could not be killed" fi } |