X-Git-Url: https://git.grml.org/?p=grml-live.git;a=blobdiff_plain;f=etc%2Fgrml%2Ffai%2Fgrml%2Fgrml_cleanup_chroot;h=074e60e8dde6ac1caecc92335cd7473f6629dadf;hp=2ad900b620dabe2717a57166e7598d449d1c26a7;hb=6c00c3c1fd1e3fee0d10c1f1b4f6257d21d663d9;hpb=1e9092e9b8d1f13b9c26dc2c0d1e6b49c9e4d15b;ds=sidebyside diff --git a/etc/grml/fai/grml/grml_cleanup_chroot b/etc/grml/fai/grml/grml_cleanup_chroot index 2ad900b..074e60e 100755 --- a/etc/grml/fai/grml/grml_cleanup_chroot +++ b/etc/grml/fai/grml/grml_cleanup_chroot @@ -306,10 +306,17 @@ fi # installation of resolvconf in chroot *with* /proc # is different from an installation without /proc, -# so make sure it is OK in any case; don't use /dev/shm +# so make sure it is OK in any case if [ -d /etc/resolvconf ] ; then - rm -rf /etc/resolvconf/run - mkdir /etc/resolvconf/run + if [ -L /etc/resolvconf/run ] ; then # resolvconf with /run + # /etc/resolvconf/run symlinks to /run/resolvconf + rm -rf /run/resolvconf + mkdir -p /run/resolvconf + else # no /run present + rm -rf /etc/resolvconf/run + mkdir /etc/resolvconf/run + fi + touch /etc/resolvconf/run/enable-updates mkdir /etc/resolvconf/run/interface cat > /etc/resolvconf/run/resolv.conf << EOF