X-Git-Url: https://iankelling.org/git/?p=automated-distro-installer;a=blobdiff_plain;f=fai%2Fconfig%2Fscripts%2FGRUB_PC%2F11-iank;h=1849d60299660a467be6e79cfd3257d6be068638;hp=ce78c153ac1e4802d25ba2d00d39776c39d34646;hb=955824332a28a4b7dc6683808274bd6302c7ead1;hpb=da843043ec6c2dfe28fbf9afba8db12a69be120d diff --git a/fai/config/scripts/GRUB_PC/11-iank b/fai/config/scripts/GRUB_PC/11-iank index ce78c15..1849d60 100755 --- a/fai/config/scripts/GRUB_PC/11-iank +++ b/fai/config/scripts/GRUB_PC/11-iank @@ -144,9 +144,18 @@ sed -i '$a kernel.sysrq=1 EOFOUTER +rm -f $target/etc/resolv.conf +ln -s ../run/systemd/resolve/stub-resolv.conf $target/etc/resolv.conf +# needed for bitfolk image +if [[ -e /a/bin/fai/fai-wrapper ]]; then + systemctl enable systemd-resolved + systemctl start systemd-resolved +fi + + # bitfolk installer handles the rest case $HOSTNAME in - bk) exit 0 ;; + bk|je) exit 0 ;; esac @@ -263,14 +272,6 @@ EOF fi -rm -f $target/etc/resolv.conf -ln -s ../run/systemd/resolve/stub-resolv.conf $target/etc/resolv.conf -# needed for bitfolk image -if [[ -e /a/bin/fai/fai-wrapper ]]; then - systemctl enable systemd-resolved - systemctl start systemd-resolved -fi - if ifclass LINODE; then mkdir -p $target/etc/initramfs-tools/conf.d cat >$target/etc/initramfs-tools/conf.d/mine <