diff options
| author | Simon Rettberg | 2025-04-15 11:31:56 +0200 |
|---|---|---|
| committer | Simon Rettberg | 2025-04-15 11:31:56 +0200 |
| commit | 63ab18b0f1cb0c58c001b54fb37e5ca2af06c79e (patch) | |
| tree | 6862cd72a1a5426dae538549beb2a3374ff17ea0 | |
| parent | [beamergui/printergui] Support SLX_MINIMAL_GUI (diff) | |
| download | mltk-63ab18b0f1cb0c58c001b54fb37e5ca2af06c79e.tar.gz mltk-63ab18b0f1cb0c58c001b54fb37e5ca2af06c79e.tar.xz mltk-63ab18b0f1cb0c58c001b54fb37e5ca2af06c79e.zip | |
[libvirt-src] Kill /run and /var/run
| -rw-r--r-- | core/modules/libvirt-src/module.build | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/core/modules/libvirt-src/module.build b/core/modules/libvirt-src/module.build index fd22d2a4..adf7eae4 100644 --- a/core/modules/libvirt-src/module.build +++ b/core/modules/libvirt-src/module.build @@ -69,9 +69,10 @@ build() { sed -i 's/^libdir=.*$/libdir=\/usr\/lib\/x86_64-linux-gnu/g' "${DSTDIR}/usr/lib64/pkgconfig/libvirt-qemu.pc" # delete non-empty run folder to prevent mltk from stopping - if [ -d "${DSTDIR}/var/run" ] && ! [ -L "${DSTDIR}/var/run" ]; then - rm -rf -- "${DSTDIR}/var/run" || perror "${DSTDIR}/var/run exists could not be killed" - fi + local dir + for dir in "run" "var/run"; do + rm -rf -- "${DSTDIR}/$dir" || perror "${DSTDIR}/$dir exists could not be killed" + done } post_copy() { |
