From 751df0283a04cf03c0e1e37cbbf7f44dbdfe5531 Mon Sep 17 00:00:00 2001 From: Mikael Magnusson Date: Sun, 3 May 2020 21:40:47 +0000 Subject: Fix building with bash invoked as sh Create /var/lock/ required by procd.sh when running on arch linux and other dists where sh is a symbolic link to bash. Fixes: #26 --- scripts/build_rootfs.sh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scripts/build_rootfs.sh b/scripts/build_rootfs.sh index dd8ca1d..8c1f6ea 100755 --- a/scripts/build_rootfs.sh +++ b/scripts/build_rootfs.sh @@ -66,10 +66,12 @@ OPKG="env LD_PRELOAD= IPKG_NO_SCRIPT=1 IPKG_INSTROOT=$instroot $SDK/staging_dir/ unpack() { mkdir -p $instroot cat $src_tar | (cd $instroot && tar -xz) + mkdir -p $instroot/var/lock/ } pack() { echo Pack rootfs + (cd $instroot && rm -rf var/lock/) if test -n "$metadata"; then (cd $dir && tar -cz *) > $dst_file else -- cgit v1.2.3