1 编辑grub文件如下:
vim /etc/default/grub
GRUB_CMDLINE_LINUX="biosdevname=0"
或者
GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=0 biosdevname=0"
2.从新生成grub文件
grub-mkconfig -o /boot/grub/grub.cfg
Generating grub configuration file ...
Found linux p_w_picpath: /boot/vmlinuz-3.19.0-25-generic
Found initrd p_w_picpath: /boot/initrd.img-3.19.0-25-generic
Found memtest86+ p_w_picpath: /boot/memtest86+.elf
Found memtest86+ p_w_picpath: /boot/memtest86+.bin
done