SirTux
Beiträge: 607 Registriert: 05 Feb 2011, 18:37
Beitrag
von SirTux » 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))
m.radtke
Ex-uib-Team
Beiträge: 1767 Registriert: 10 Jun 2015, 12:19
Beitrag
von m.radtke » 26 Okt 2020, 15:21
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