From 325a45910bca2d565ea3e230e45c7c2104ed6d99 Mon Sep 17 00:00:00 2001 From: jonas Date: Sat, 10 Jun 2006 19:27:34 +0000 Subject: 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 --- 1_makerootfs.sh | 6 ++++++ 1 file changed, 6 insertions(+) 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" -- cgit v1.2.3