Ubuntu 20.04

SirTux
Beiträge: 558
Registriert: 05 Feb 2011, 18:37

Re: Ubuntu 20.04

Beitrag 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))
Benutzeravatar
m.radtke
uib-Team
Beiträge: 1515
Registriert: 10 Jun 2015, 12:19

Re: Ubuntu 20.04

Beitrag 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))
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.
Antworten