From 5ecba3429f3c5d75550137eb2c815ebb62dfdffb Mon Sep 17 00:00:00 2001 From: Simon Rettberg Date: Tue, 20 Aug 2013 20:03:34 +0200 Subject: 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 --- remote/rootfs/rootfs-stage32/rootfs-stage32.build | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'remote/rootfs') 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 -- cgit v1.2.3-55-g7522