Browse Source

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
Mikael Magnusson 5 years ago
parent
commit
751df0283a
1 changed files with 2 additions and 0 deletions
  1. 2 0
      scripts/build_rootfs.sh

+ 2 - 0
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