summaryrefslogtreecommitdiffstats
path: root/remote/modules/kdm
diff options
context:
space:
mode:
authorSimon Rettberg2013-08-20 20:03:34 +0200
committerSimon Rettberg2013-08-20 20:03:34 +0200
commit5ecba3429f3c5d75550137eb2c815ebb62dfdffb (patch)
tree2e461f6c4386b73063e9328fe72aaa086296bb47 /remote/modules/kdm
parent[dnbd3] add systemd service + script to load the module and launch the user s... (diff)
downloadtm-scripts-5ecba3429f3c5d75550137eb2c815ebb62dfdffb.tar.gz
tm-scripts-5ecba3429f3c5d75550137eb2c815ebb62dfdffb.tar.xz
tm-scripts-5ecba3429f3c5d75550137eb2c815ebb62dfdffb.zip
Switch to using /etc/tmpfiles.d for creating files/dirs in /run
Also added a sanity check after processing each module, which will abort if anything is placed in /run directly
Diffstat (limited to 'remote/modules/kdm')
-rw-r--r--remote/modules/kdm/data/etc/tmpfiles.d/kdm.conf2
-rw-r--r--remote/modules/kdm/kdm.build1
2 files changed, 2 insertions, 1 deletions
diff --git a/remote/modules/kdm/data/etc/tmpfiles.d/kdm.conf b/remote/modules/kdm/data/etc/tmpfiles.d/kdm.conf
new file mode 100644
index 00000000..64f02ed3
--- /dev/null
+++ b/remote/modules/kdm/data/etc/tmpfiles.d/kdm.conf
@@ -0,0 +1,2 @@
+D /var/run/kdm 0755 root root
+
diff --git a/remote/modules/kdm/kdm.build b/remote/modules/kdm/kdm.build
index b5d1be08..feac30cb 100644
--- a/remote/modules/kdm/kdm.build
+++ b/remote/modules/kdm/kdm.build
@@ -16,7 +16,6 @@ build () {
post_copy() {
#create static kdm folders in stage3.2
mkdir -p "${TARGET_BUILD_DIR}/var/lib/kdm"
- mkdir -p "${TARGET_BUILD_DIR}/var/run/kdm"
# link kdm config as opensuse wants in in another place
ln -s "/etc/kde4" "$TARGET_BUILD_DIR/usr/share/kde4/config"