On 2026-07-11 15:31, Michael Tokarev wrote:
On 7/12/26 00:11, Michael Tokarev wrote:
On 7/12/26 00:03, Chris Boot wrote:

>   So if you build a busybox without the hack, try > passing e.g. "netcfg/get_hostname=it-works-now" to d-i and see what you get. I seem to remember it was about as simple as that, and it certainly may
have been changed or been fixed in more recent versions of busybox or d-i.

Yeah.  The only problem is that I don't know how to build
d-i - I never looked this way, ever.  This might be quite
a problem for me :)

Have some guide for me? :)  Or maybe you can try building
it yourself with the "fixed" busybox?

So I did a simple test: I created an initrd with this new
busybox version (without the two patches in question), added
a few funny kernel variables, and dropped to the shell.  And
indeed, these variables with dashes and slashes and other
interesting chars are shown in the environment of ash, and
are passed to child processes as well.

I dunno still, maybe things wont work somewhere in the d-i,
but as I stated above, I don't know how to build it.

apt-get install debian-installer

apt-get source debian-installer

cd debian-installer-20250803+deb13u6/

apt build-dep debian-installer

dpkg-checkbuilddeps

aptitude install -R [missing packages]

< https://wiki.debian.org/DebianInstaller/Build >

cd build

make (will give you a list of build targets)

Place your busybox UDEB under localudebs/

Assuming you select build_netboot as AMD64 target:

Reference your named busybox UDEB in file pkg-lists/netboot/amd64.cfg

Then begin your d-i build:

fakeroot make build_netboot 2>&1 | tee -a ../make.log

(any failures will be at ../make.log for you to examine)

This is the 'lowdown' on how to build your d-i ;-)


Thanks,

/mjt

--
Best Professional Regards.

--
Jose R R
http://metztli.it
---------------------------------------------------------------------------------------------
Download Metztli Reiser4: Debian Trixie w/ Linux 5.17.15-3 AMD64
---------------------------------------------------------------------------------------------
feats ZSTD compression https://sf.net/projects/metztli-reiser4/
-------------------------------------------------------------------------------------------
Official current Reiser4 resources: https://reiser4.wiki.kernel.org/

Reply via email to