net.ifnames=0 in vm's grub
This commit is contained in:
parent
192a58f259
commit
378887ba79
2
zlibs/vm
2
zlibs/vm
@ -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}
|
||||
|
Loading…
x
Reference in New Issue
Block a user