Seite 3 von 3

Re: Ubuntu 20.04

Verfasst: 23 Okt 2020, 17:59
von SirTux
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))

Re: Ubuntu 20.04

Verfasst: 26 Okt 2020, 15:21
von m.radtke
Danke und here you go

https://download.uib.de/opsi4.1/experim ... 0.4-3.opsi
SirTux hat geschrieben: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))