summaryrefslogtreecommitdiff
path: root/1_makerootfs.sh
diff options
context:
space:
mode:
Diffstat (limited to '1_makerootfs.sh')
-rwxr-xr-x1_makerootfs.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/1_makerootfs.sh b/1_makerootfs.sh
index 0f56607..839643a 100755
--- a/1_makerootfs.sh
+++ b/1_makerootfs.sh
@@ -178,6 +178,12 @@ if [ -n "$aptitude_install_custom" ]; then
./chroot.sh temp aptitude install -y --without-recommends $aptitude_install_custom
fi
+# ifupdown temporarily installs a dir, but cannot replace with symlink later due to rad-only rootfs
+if [ -d "$targettemp/etc/network/run" ] && [ ! -L "$targettemp/etc/network/run" ]; then
+ rm -f "$targettemp/etc/network/run"
+ ln -s /dev/shm/network "$targettemp/etc/network/run"
+fi
+
# Remove hack to suppress warnings about insecure install
rm -f "$targettemp/etc/apt/apt.conf.d/99localforcedautoinstall"