Aison0: this means that your router does NOT send a gateway, and ipxe/dhclient are smart enough to figure it out, but initramfs/ipconfig aren't
Update your router to send a gateway
This *emulates* a dhcp request: /usr/lib/klibc/bin/ipconfig -n enp5s0
You can check the result from there
|06:37||RaphGro has joined IRC (RaphGro!~raphgro@fedora/raphgro)|
alkisg, this data sent to the client: https://pastebin.com/kE43fBSj
from the dhcp server
Aison0: and the output of the command that I said above? ^
It's more important to check the actual result that initramfs-tools parses, than the dhcp packet itself
I think I've seen initramfs-tools choking before, when encountering static routes in the dhcp packet, and the user had to manually put the gateway using a POST_INIT command
|09:27||adrianor1 has left IRC (email@example.com, Ping timeout: 240 seconds)|
|09:27||adrianorg has joined IRC (firstname.lastname@example.org)|
alkisg, yes, that's true. Therefore I set the gateway twice, once in static routes and once as router option
ipconfig -n shows
routes: 10.0.0.0/8 via 10.0.0.1, 0.0.0.0/0 via 10.0.0.1
else there are not informations about gateway
rootserver: 10.0.0.2 is correct
whats: filename: ltsp/unmatched-client
Aison0: this is good information, but unfortunately what we need to solve the problem is the output of the command that I asked for..
(07:35:24 AM) alkisg: This *emulates* a dhcp request: /usr/lib/klibc/bin/ipconfig -n enp5s0
This is not ifconfig. It's ipconfig, a different command in a different path. It's what initramfs is using.
So if initramfs can't handle your dhcp configuration, you either need to update your dhcp, or work around this initramfs bug with a POST_INIT ltsp.conf parameter
|13:50||adrianor1 has joined IRC (email@example.com)|
|13:51||adrianorg has left IRC (firstname.lastname@example.org, Ping timeout: 256 seconds)|
alkisg, i'm talking about /usr/lib/klibc/bin/ipconfig -n
Aison0: can you paste all its output?
usr/lib/klibc/bin/ipconfig -n enp2s0 | nc termbin.com 9999
Something like that
If there's no gateway there, can you fix it from your dhcp server?
If you can't fix it from dhcp, then initramfs won't get a gateway, and you need a POST_INIT directive to work around it
alkisg, I wounder why it a problem of my initramfs, I guess it is just a configuration problem of the initramfs generator of ubuntu 20.04
Aison0: it's an bug in initramfs-tools since all debian and ubuntu versions
It's not smart, it supports "gateway" but not "routes"
the funny thing is, I also tried dracut
same problem there
The reason you weren't seeing it was because you were never using netbooting; dhclient doesn't have that issue
but maybe I forgot to enable some dracut modules for network boot
LTSP doesn't support dracut
maybe it is possible to omit sending "routes" for the ltsp clients?
I can configure that on the dhcp server
Sure, or you can just put POST_INIT_ADD_ROUTE="ip add route..." in ltsp.conf
Whatever you prefer
hmm, dns lookup is also not working in debug shell
even after adding the default route
ok, dns was bad because systemd-resolved, I created now a static resolv.conf
now dns works in debug shell
why is CTRL+C not working ^^
Aison0: debug_shell isn't a shell. It's a loop of "eval"s
It help in viewing internal variables
You may run `bash` in there if you want ctrl+c to work
unmatched-client means that there was no match for the boot attempt; at that point it's not a boot attempt so it's ok
Now if you run ipconfig without the -n parameter, it will create a /run/net-*.conf file, with the parsed values inside it
With the output that I see in termbin, I guess IPV4_GATEWAY will be 0 in the generated conf file, so you'll need to provide a gateway or use POST_INIT=ip add route...
|19:59||RaphGro has left IRC (RaphGro!~raphgro@fedora/raphgro, Quit: Please remember your own message. It'll be read as soon as possible.)|
|20:20||markit has joined IRC (email@example.com)|
|21:37||RaphGro has joined IRC (RaphGro!~raphgro@fedora/raphgro)|
|21:51||markit has left IRC (firstname.lastname@example.org, )|
|22:36||RaphGro has left IRC (RaphGro!~raphgro@fedora/raphgro, Quit: Please remember your own message. It'll be read as soon as possible.)|