From 96a365654612b25cc40a1175ec2ab35bb2c7dbc0 Mon Sep 17 00:00:00 2001 From: jonas Date: Sat, 10 Jun 2006 20:11:54 +0000 Subject: resolvconf need similar workaround as ifupdown. git-svn-id: svn+ssh://xayide/home/jonas/private_svn/fleshybrid/trunk@8 8f53b18a-e215-0410-8885-9f593d34873e --- 1_makerootfs.sh | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/1_makerootfs.sh b/1_makerootfs.sh index 839643a..e00c0b8 100755 --- a/1_makerootfs.sh +++ b/1_makerootfs.sh @@ -179,10 +179,12 @@ if [ -n "$aptitude_install_custom" ]; then 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 +for context in network resolvconf; do + if [ -d "$targettemp/etc/$context/run" ] && [ ! -L "$targettemp/etc/$context/run" ]; then + rm -f "$targettemp/etc/$context/run" + ln -s "/dev/shm/$context" "$targettemp/etc/$context/run" + fi +done # Remove hack to suppress warnings about insecure install rm -f "$targettemp/etc/apt/apt.conf.d/99localforcedautoinstall" -- cgit v1.2.3