I just created https://salsa.debian.org/installer-team/debian-installer-netboot-images/-/merge_requests/3,
which removes the "grep -v mini.iso" from the "get-images.sh" script.
The idea being that it can be useful to have a mini.iso available
locally in case you want to install a VM with libvirt. While it's
possible to PXE boot a VM and install that way, this involves some infrastructure that needs to be set up, and pointing to a .iso file that exists locally seems easier.
I usually have a netboot mini.iso file in my home directory for that
purpose, but it needs to be kept up to date with every point release,
and that's a bit of an annoyance. I think it would be easier to just
have it in the debian-installer-netboot-images package.
Hi Wouter,
Wouter Verhelst <wouter@debian.org> (2023-12-10):
I just created https://salsa.debian.org/installer-team/debian-installer-netboot-images/-/merge_requests/3,
which removes the "grep -v mini.iso" from the "get-images.sh" script.
The idea being that it can be useful to have a mini.iso available
locally in case you want to install a VM with libvirt. While it's
possible to PXE boot a VM and install that way, this involves some infrastructure that needs to be set up, and pointing to a .iso file that exists locally seems easier.
I usually have a netboot mini.iso file in my home directory for that purpose, but it needs to be kept up to date with every point release,
and that's a bit of an annoyance. I think it would be easier to just
have it in the debian-installer-netboot-images package.
Do you have stats before/after? Looks like it could easily double or
triple the size of each binary package?
Hi,
I just created https://salsa.debian.org/installer-team/debian-installer-netboot-images/-/merge_requests/3,
which removes the "grep -v mini.iso" from the "get-images.sh" script.
The idea being that it can be useful to have a mini.iso available
locally in case you want to install a VM with libvirt. While it's
possible to PXE boot a VM and install that way, this involves some infrastructure that needs to be set up, and pointing to a .iso file that exists locally seems easier.
I usually have a netboot mini.iso file in my home directory for that
purpose, but it needs to be kept up to date with every point release,
and that's a bit of an annoyance. I think it would be easier to just
have it in the debian-installer-netboot-images package.
Wouter Verhelst <wouter@debian.org> writes:
Hi,
I just created https://salsa.debian.org/installer-team/debian-installer-netboot-images/-/merge_requests/3,
which removes the "grep -v mini.iso" from the "get-images.sh" script.
The idea being that it can be useful to have a mini.iso available
locally in case you want to install a VM with libvirt. While it's
possible to PXE boot a VM and install that way, this involves some infrastructure that needs to be set up, and pointing to a .iso file that exists locally seems easier.
I usually have a netboot mini.iso file in my home directory for that purpose, but it needs to be kept up to date with every point release,
and that's a bit of an annoyance. I think it would be easier to just
have it in the debian-installer-netboot-images package.
I presume you're currently downloading a published mini.iso, rather than building them locally, is that right?
Rather than packaging up the mini.iso's, how about having a package that
acts as an installer, and downloads the published image that matches the relevant kerrnel version.
The reason I think that might be worth the effort is that I suspect that quite a lot of the mini.iso's would have almost no users (depending on architecture etc), so copying them across the whole mirror network seems
like a significant waste of resources.
Personally, I tend to use the netinst for the purpose you describe, and
think that it might be quite useful to have a package that would
maintain a copy of the current image on my systems, so such a package
could be more widely useful than just for mini.iso downloads.
That sounds like a much more reasonable way forward, although I'm not
keen on extending di-netboot-assistant (it's massive already, and does
very different things). At any rate, I'll have a look at implementing
this. Thanks for the suggestion!
So.
On Wed, Dec 13, 2023 at 10:45:36AM +0200, Wouter Verhelst wrote:
That sounds like a much more reasonable way forward, although I'm not
keen on extending di-netboot-assistant (it's massive already, and does
very different things). At any rate, I'll have a look at implementing
this. Thanks for the suggestion!
This turned out to be fairly simple in the end. First, create a apt.conf
file like so:
Acquire::IndexTargets::deb::SHA256SUMS {
MetaKey "$(COMPONENT)/installer-$(ARCHITECTURE)/current/images/SHA256SUMS";
ShortDescription "SHA256SUMS";
Description "$(RELEASE)/$(COMPONENT) $(ARCHITECTURE) d-i SHA256SUMS (deb)";
};
Next, create a config file like this:
images:
mini.iso:
mirror_type: deb
limit:
Suite: stable
Architecture: amd64
basedir: main/installer-amd64/current/images
relative_name: ./netboot/gtk/mini.iso
target_filename: /var/lib/libvirt/images/bookworm-mini.iso
netboot.iso:
mirror_type: cd
basedir: current/amd64/iso-cd
filename_regex: debian-[0-9.]+-amd64-netinst.iso
target_filename: /var/lib/libvirt/images/bookworm-netinst.iso
And then once you have that, the following perl script should do the
job.
(config file stored either as /etc/debian-isosync/config.yaml or
passed as the first argument to the script)
Sysop: | Keyop |
---|---|
Location: | Huddersfield, West Yorkshire, UK |
Users: | 299 |
Nodes: | 16 (2 / 14) |
Uptime: | 77:27:58 |
Calls: | 6,695 |
Files: | 12,228 |
Messages: | 5,347,468 |