summaryrefslogtreecommitdiffstats
path: root/core/modules/qemu-src
diff options
context:
space:
mode:
authorSimon Rettberg2021-11-12 09:27:36 +0100
committerSimon Rettberg2021-11-12 09:27:36 +0100
commitc09f64e556ae3a6b3b9c5ab172c4e5c54f539512 (patch)
tree74ab0f3fe94be8a05db0946282eb0d9f9d919030 /core/modules/qemu-src
parentUpdate kernel config (diff)
downloadmltk-c09f64e556ae3a6b3b9c5ab172c4e5c54f539512.tar.gz
mltk-c09f64e556ae3a6b3b9c5ab172c4e5c54f539512.tar.xz
mltk-c09f64e556ae3a6b3b9c5ab172c4e5c54f539512.zip
/var/run -> /run
Diffstat (limited to 'core/modules/qemu-src')
-rw-r--r--core/modules/qemu-src/module.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/core/modules/qemu-src/module.build b/core/modules/qemu-src/module.build
index a5d8ce4b..9708472c 100644
--- a/core/modules/qemu-src/module.build
+++ b/core/modules/qemu-src/module.build
@@ -54,7 +54,9 @@ build() {
chmod +x "${DSTDIR}/usr/share/qemu/init/qemu-kvm-init"
# delete empty run folder to prevent mltk from stopping
- rm -rf "${DSTDIR}/var/run"
+ if [ -d "${DSTDIR}/var/run" ] && ! [ -L "${DSTDIR}/var/run" ]; then
+ rmdir "${DSTDIR}/var/run" || perror "${DSTDIR}/var/run exists and is not empty"
+ fi
}
post_copy() {