[SOLVED] debian.py fail with netplan

nicolaslebrun
Beiträge: 95
Registriert: 18 Apr 2011, 11:43

[SOLVED] debian.py fail with netplan

Beitragvon nicolaslebrun » 09 Feb 2021, 15:17

Hello,

i had to add this line in debian.py (package debian_4.1.0.4-1)

line 298

Code: Alles auswählen

os.mkdir(os.path.join(target, 'etc', 'netplan'))


Hope this can help

Regards,
Nicolas
Zuletzt geändert von nicolaslebrun am 15 Feb 2021, 21:52, insgesamt 1-mal geändert.

Benutzeravatar
m.radtke
uib-Team
Beiträge: 989
Registriert: 10 Jun 2015, 12:19

Re: debian.py fail with netplan

Beitragvon m.radtke » 10 Feb 2021, 10:27

Hi Nicolas,

I uploaded a version with your fix in the Linux netboot experimental packages.
Thanks for your report.

Regards
Mathias
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.

nicolaslebrun
Beiträge: 95
Registriert: 18 Apr 2011, 11:43

Re: debian.py fail with netplan

Beitragvon nicolaslebrun » 10 Feb 2021, 13:33

Hello Mathias,

Not sure it is a good idea... it seems i can deploy with this line but i have no network... I'll try and be back

Regards,
Nico

Benutzeravatar
m.radtke
uib-Team
Beiträge: 989
Registriert: 10 Jun 2015, 12:19

Re: debian.py fail with netplan

Beitragvon m.radtke » 11 Feb 2021, 09:25

Good Morning,

i can verify this
after running

Code: Alles auswählen

 dhclient $IFNAME

I had a network.
Will work on a fix to make network run at boot

Regards
Mathias

Edit:
fix released as debian_4.1.0.4-3
now powering up netplan config on boot
Kein Support per DM!
_________________________
opsi support - http://www.uib.de/
For productive opsi installations we recommend support contracts.

nicolaslebrun
Beiträge: 95
Registriert: 18 Apr 2011, 11:43

Re: debian.py fail with netplan

Beitragvon nicolaslebrun » 14 Feb 2021, 22:02

I can't understand whether stretch and buster use netplan...
AFAIK, netplan is not the default networking manager in debian, isn't it ?

---
I have a version working, but whithout netplan. Here's what i have done

- added strech and buster in pre_netplan_relaease

Code: Alles auswählen

 pre_netplan_releases = ["squeeze", "wheezy", "jessie", "stretch", "buster"]


- changed script netdevice.sh to match any (?) ethernet (line 259).

Code: Alles auswählen

 myfile.write("          OUT=`udevadm test-builtin net_id /sys/class/net/e* 2> /dev/null | grep ID_NET_NAME_PATH`\n")

but I'm pretty sure it will fail if there are two ethernet cards.

---

When i tried with netplan, even netplan package was not installed.
I added

Code: Alles auswählen

350 if release not in pre_netplan_releases:
351     cmds.append("apt-get --yes --force-yes install netplan")

and the line

Code: Alles auswählen

os.mkdir(os.path.join(target, 'etc', 'netplan'))

but even with that i had no network. I haven(t tried dhclient, yet)


--

I'll try a buster version with netplan and dhclient, and will be back

Thanks
Nico

nicolaslebrun
Beiträge: 95
Registriert: 18 Apr 2011, 11:43

[SOLVED] Re: debian.py fail with netplan

Beitragvon nicolaslebrun » 15 Feb 2021, 09:28

Hi Mathias,

Just tried
debian_4.1.0.4-3


It work's like a charm, thank's !

(even if i still think we shouldn't build all locales ... ;) )

NIco