summaryrefslogtreecommitdiffstats
path: root/remote/rootfs
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/rootfs
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/rootfs')
-rw-r--r--remote/rootfs/rootfs-stage32/rootfs-stage32.build4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote/rootfs/rootfs-stage32/rootfs-stage32.build b/remote/rootfs/rootfs-stage32/rootfs-stage32.build
index f9749740..99cb86f7 100644
--- a/remote/rootfs/rootfs-stage32/rootfs-stage32.build
+++ b/remote/rootfs/rootfs-stage32/rootfs-stage32.build
@@ -65,7 +65,9 @@ post_copy() {
[ ! -e "$TARGET_BUILD_DIR/bin/mount" ] && ln -s /usr/bin/mount "$TARGET_BUILD_DIR/bin/mount"
# make basic directory structure
- mkdir -p "${TARGET_BUILD_DIR}"/{bin,dev,proc,lib,etc,mnt,sys,var/run,var/lock,var/log,run/lock,run/shm,opt/openslx/mnt}
+ mkdir -p "$TARGET_BUILD_DIR"/{bin,dev,proc,lib,etc,mnt,sys,var,opt/openslx/mnt}
+ ln -sf "/run/lock" "$TARGET_BUILD_DIR/var/lock"
+ ln -sf "/run" "$TARGET_BUILD_DIR/var/run"
# make openslx log directory
mkdir -p "${TARGET_BUILD_DIR}"/var/log/openslx