summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorjonas <jonas@8f53b18a-e215-0410-8885-9f593d34873e>2006-06-10 19:27:34 +0000
committerjonas <jonas@8f53b18a-e215-0410-8885-9f593d34873e>2006-06-10 19:27:34 +0000
commit325a45910bca2d565ea3e230e45c7c2104ed6d99 (patch)
treefa8d81ab3f47da5c1a2ea31ddd85ee5767977b76
parent27e6a8382470eaa267543ef4c4b2aab100049f2e (diff)
Work around ifupdown symlink-below-etc quirk.
git-svn-id: svn+ssh://xayide/home/jonas/private_svn/fleshybrid/trunk@5 8f53b18a-e215-0410-8885-9f593d34873e
-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"