summaryrefslogtreecommitdiffstats
path: root/remote/modules/pam
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/pam
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/pam')
-rw-r--r--remote/modules/pam/data/etc/tmpfiles.d/pipefs.conf2
-rw-r--r--remote/modules/pam/pam.build15
2 files changed, 3 insertions, 14 deletions
diff --git a/remote/modules/pam/data/etc/tmpfiles.d/pipefs.conf b/remote/modules/pam/data/etc/tmpfiles.d/pipefs.conf
new file mode 100644
index 00000000..7c422623
--- /dev/null
+++ b/remote/modules/pam/data/etc/tmpfiles.d/pipefs.conf
@@ -0,0 +1,2 @@
+D /var/run/rpc_pipefs 0755 root root
+
diff --git a/remote/modules/pam/pam.build b/remote/modules/pam/pam.build
index 063c0065..34319ce8 100644
--- a/remote/modules/pam/pam.build
+++ b/remote/modules/pam/pam.build
@@ -23,18 +23,5 @@ build() {
}
post_copy() {
- if [ ! -d "${TARGET_BUILD_DIR}/run/rpc_pipefs" ]; then
- mkdir -p "${TARGET_BUILD_DIR}/run/rpc_pipefs" || pwarning "Could not mkdir ${TARGET_BUILD_DIR}/run/rpc_pipefs"
- fi
-
- # find libnfsidmap run-time library directory
- #local COPYLIST="$MODULE_BUILD_DIR/list_packet_files"
- #local SEARCH=$(grep "/libsnfsidmap/" "$COPYLIST" | head -1)
- #[ -z "$SEARCH" ] && perror "Hä"
- #SEARCH=$(dirname "$SEARCH")
- #if [ -d "${SEARCH}" ]; then
- # tarcopy "${SEARCH}" "${TARGET_BUILD_DIR}" || pinfo "Something went wrong copying $SEARCH"
- #fi
-
-
+ :
}