Re: Ubuntu 20.04
Verfasst: 23 Okt 2020, 17:59
Hier noch mal als Patch:
Code: Alles auswählen
395a396,399
> if usedNetworkDevice.get('device').find('eth') != -1:
> netifnames = '0'
> else:
> netifnames = '1'
404c408,410
< cmds.append('echo GRUB_CMDLINE_LINUX_DEFAULT="noplymouth kopt=root=%s" >> /etc/default/grub' % (systemPartitionDevicePath))
---
> cmds.append('echo GRUB_CMDLINE_LINUX_DEFAULT="noplymouth kopt=root=%s net.ifnames=%s" >> /etc/default/grub' % (systemPartitionDevicePath, netifnames))
> else:
> cmds.append('echo GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=%s" >> /etc/default/grub' % (netifnames))
414c420,422
< cmds.append('echo GRUB_CMDLINE_LINUX_DEFAULT="kopt=root=%s" >> /etc/default/grub' % (systemPartitionDevicePath))
---
> cmds.append('echo GRUB_CMDLINE_LINUX_DEFAULT="kopt=root=%s net.ifnames=%s" >> /etc/default/grub' % (systemPartitionDevicePath, netifnames))
> else:
> cmds.append('echo GRUB_CMDLINE_LINUX_DEFAULT="net.ifnames=%s" >> /etc/default/grub' % (netifnames))