diff options
-rwxr-xr-x | 1_makerootfs.sh | 10 |
1 files 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" |