diff options
author | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-05-03 21:40:47 +0000 |
---|---|---|
committer | Mikael Magnusson <mikma@users.sourceforge.net> | 2020-05-03 21:44:46 +0000 |
commit | 751df0283a04cf03c0e1e37cbbf7f44dbdfe5531 (patch) | |
tree | 8fd191281ff7f658dc5f4f789a2aae7b29460605 /scripts | |
parent | 0f1f27dc0f37ee7ec4b11908ca569d0e0194e0be (diff) |
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
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build_rootfs.sh | 2 |
1 files changed, 2 insertions, 0 deletions
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 |