Ubuntu 20.04

SirTux
Beiträge: 607
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
Ex-uib-Team
Beiträge: 1767
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))


Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.

Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.

uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de


Antworten