#!/bin/sh # # xev_net_pre_install.sh # # Do not edit below this line unless you fully understand what you are doing # # Update the hosts, hostname and resolv.conf files and prepare the system for installation wget -O hosts "https://docs.xev.net.eu.org/doku.php?do=export_code&id=greencloud-ams01-install-system-auto&codeblock=7" wget -O hostname "https://docs.xev.net.eu.org/doku.php?do=export_code&id=greencloud-ams01-install-system-auto&codeblock=8" wget -O resolv.conf "https://docs.xev.net.eu.org/doku.php?do=export_code&id=greencloud-ams01-install-system-auto&codeblock=9" cp -v hosts /etc/hosts cp -v hostname /etc/hostname cp -v resolv.conf /etc/resolv.conf rm -rfv hosts rm -rfv hostname rm -rfv resolv.conf XN_UUID="$(blkid -s UUID -o value /dev/vda2)" echo "RESUME=UUID=${XN_UUID}" > /etc/initramfs-tools/conf.d/resume update-initramfs -u -k all # # There is nothing more to do here