Discussion:
Bug#1088638: bookworm-pu: package live-boot/1:20230131
(too old to reply)
Thomas Goirand
2024-11-28 21:40:01 UTC
Permalink
Package: release.debian.org
Severity: normal
Tags: bookworm
User: ***@packages.debian.org
Usertags: pu
X-Debbugs-Cc: live-***@packages.debian.org
Control: affects -1 + src:live-boot


Dear stable release team,

[ Reason ]
I'd like to update live-boot to fix its PXE-booting process where,
currently in Bookworm, live-boot, when it reaches the phase where
it should do DHCP and fetch its squashfs over network, only attemps
DHCP on the first NIC that it detect has a link up.

[ Impact ]
tl;dr: my patch makes live-boot tries DHCP on each and every NIC
that has a link. Before the patch, live-boot instead miserably fails
to do DHCP. So if 2 NICs are connected, but only one has DHCP, it
may just fail if the one without DHCP is discovered first.

More in details with my production system example:

Let me describe our current use case where live-boot currently fails
in Bookworm.

We use a live Debian distribution (custom live image) that is booted
over PXE to install Debian. DHCP / PXE is only available only in the
first NIC (for us, a 1Gbits/s NIC, most of the time). The other 2
NICs (they are 25Gbits/s) are to be used in production. We do things
this way for security, to segretate networking for boot and production.

Unfortunately, if live-boot "sees" the 2x 25Gbits/s NIC first, before
the 1Gbits/s, it will attempt to do DHCP on them (well, in fact, one
of them), as they are connected (ie: they have a "link up"), and then
since they have no DHCP offer, live-boot will fail. It will never
attempt to do DHCP request on the 1Gbits/s NIC.

The patch that I'm proposing, we already use it in production. What
it does, is that with it, live-boot attempts to do DHCP on each and
every NIC that has a link, one by one. So in the above scenario, it
tries on the 2x25Gbits/s NICs (since they are discovered first), but
as it fails on them, live-boot will continue and try on the 1Gbits/s
NIC as well.

[ Tests ]
We've been patching our live systems ramdisk with the modified
components/9990-select-eth-device.sh script (uncompress the ramdisk,
replace the script with the new version, and recompress). This made
our servers magically boot-up, trying all NICs.

Doing this is painful, and has to be done manually after live-boot
builds its initrd. One cannot simply use a modified live-boot package
as live-boot is downloaded by live-build (from the provided URL in
the config file) when the live image is created. So it would be very
useful to have this fixed in stable, rather than pointing our users
how to fix...

[ Risks ]
The code is trivial and easy to understand (a simple bash script).

[ Checklist ]
[x] *all* changes are documented in the d/changelog
[x] I reviewed all changes and I approve them
[x] attach debdiff against the package in (old)stable
[x] the issue is verified as fixed in unstable

[ Changes ]
See attached diff file.
Debian Bug Tracking System
2024-11-28 21:40:01 UTC
Permalink
Post by Thomas Goirand
affects -1 + src:live-boot
Bug #1088638 [release.debian.org] bookworm-pu: package live-boot/1:20230131
Added indication that 1088638 affects src:live-boot
--
1088638: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088638
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Jonathan Wiltshire
2024-12-06 14:00:02 UTC
Permalink
Control: tag -1 confirmed

Please go ahead.

Thanks,
--
Jonathan Wiltshire ***@debian.org
Debian Developer http://people.debian.org/~jmw

4096R: 0xD3524C51 / 0A55 B7C5 1223 3942 86EC 74C3 5394 479D D352 4C51
ed25519/0x196418AAEB74C8A1: CA619D65A72A7BADFC96D280196418AAEB74C8A1
Debian Bug Tracking System
2024-12-06 14:00:02 UTC
Permalink
Post by Jonathan Wiltshire
tag -1 confirmed
Bug #1088638 [release.debian.org] bookworm-pu: package live-boot/1:20230131
Added tag(s) confirmed.
--
1088638: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088638
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Adam D Barratt
2024-12-21 17:10:02 UTC
Permalink
package release.debian.org
tags 1088638 = bookworm pending
thanks

Hi,

The upload referenced by this bug report has been flagged for acceptance into the proposed-updates queue for Debian bookworm.

Thanks for your contribution!

Upload details
==============

Package: live-boot
Version: 20230131+deb12u1

Explanation: attempt DHCP on all connected interfaces
Debian Bug Tracking System
2024-12-21 17:10:02 UTC
Permalink
Post by Adam D Barratt
package release.debian.org
Limiting to bugs with field 'package' containing at least one of 'release.debian.org'
Limit currently set to 'package':'release.debian.org'
Post by Adam D Barratt
tags 1088638 = bookworm pending
Bug #1088638 [release.debian.org] bookworm-pu: package live-boot/1:20230131
Added tag(s) pending; removed tag(s) confirmed.
Post by Adam D Barratt
thanks
Stopping processing here.

Please contact me if you need assistance.
--
1088638: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088638
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Debian Bug Tracking System
2025-01-11 11:20:07 UTC
Permalink
Your message dated Sat, 11 Jan 2025 11:03:09 +0000
with message-id <E1tWZGn-009jZN-***@coccia.debian.org>
and subject line Close 1088638
has caused the Debian Bug report #1088638,
regarding bookworm-pu: package live-boot/1:20230131
to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact ***@bugs.debian.org
immediately.)
--
1088638: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1088638
Debian Bug Tracking System
Contact ***@bugs.debian.org with problems
Loading...