net.ifnames=0 in vm's grub

This commit is contained in:
parazyd 2017-07-20 15:54:30 +02:00
parent 192a58f259
commit 378887ba79
No known key found for this signature in database
GPG Key ID: F0CB28FCF78637DE

@ -55,6 +55,8 @@ vm_setup_grub() {
export DEBIAN_FRONTEND=noninteractive
apt-get --yes --force-yes install linux-image-amd64 grub-pc
sed -e 's:GRUB_TIMEOUT=5:GRUB_TIMEOUT=1:' -i /etc/default/grub
sed -e 's:GRUB_CMDLINE_LINUX_DEFAULT=".*":GRUB_CMDLINE_LINUX_DEFAULT="quiet net.ifnames=0"' \
-i /etc/default/grub
update-grub
grub-install --no-floppy --recheck --modules="biosdisk part_msdos" \
${loopdevice}