/srv/irclogs.ubuntu.com/2020/07/22/#ubuntu-installer.txt

xnoxrealtime-neil:  _gateway is not currently usable inside initrd. only running system. so yeah, unfortunately one cannot yet use _gateway for url=00:27
xnoxrealtime-neil:  there is nfs access for netboot=nfs if you can mount iso over nfs somewhere, that might take less RAM, but nfs is slow.00:27
xnoxwhole iso, in ram = fast install00:27
realtime-neilxnox: yeah, I remember learning this a few times over the years of working with early user space; namely that the initrd has _far_ less than one might assume.12:00
realtime-neilxnox: I might be interested in serving the iso from NFS ... is there a `python -m nfs.server` I can use to quickly/easily export a network share?12:03
xnoxrealtime-neil:  i do not know of such a thing. I install "the full thing" using https://help.ubuntu.com/community/SettingUpNFSHowTo when i have to.12:20
xnoxrealtime-neil:  i hate nfs12:20
cjwatsonYou might find nfs-ganesha (a userspace server) easier to set up than the kernel server FWIW12:21
cjwatsonBig advantage is that if it gets horribly confused you can just restart a single service12:21
realtime-neilcjwatson: thanks for the suggestion, I'll have to look into that one12:22
cjwatsonIt's still a bit of a pain, just IME quite a bit less bad12:23
realtime-neilWhat's the best way to go about remastering a cdimage for the purposes of adding packages and setting debconf values? I found this, https://help.ubuntu.com/community/InstallCDCustomization , but I don't know how much of it has been superseded.13:31
realtime-neilAny approach that preserves the monolithic nature of the *.iso will work for my purposes. Serving a separate `seedfrom=` value will not, though.13:32
realtime-neilI'm also not opposed to patching/building https://code.launchpad.net/ubuntu-cdimage , if anyone knows a way to do that on a host that's _not_ an "Ubuntu production instance".13:47
CarlFKrealtime-neil:  .iso implies you want physical media ?  I thought you wanted to serve the files over a network?14:06
realtime-neilI do want *.iso files, but they'll be consumed in a variety of ways; humans burning CDROMs, humans `dd`ing USB sticks, and netbooters serving the *.iso.14:11
realtime-neilCarlFK: one file, many delivery vectors14:12
CarlFKgot it14:17
CarlFKrealtime-neil: mk_usb_installer.sh  - that relies on the image being a rw fs, makes the script easier and makes R&D easier (I can edit syslinux.cfg and retest, no image/burn step)14:42
CarlFKlet me know if you do something like that for ubuntu's new installer14:43
CarlFKI'll try to squeeze it into mk_usb_installer.sh ... but currently no one is asking for it for years now.14:44
realtime-neilCarlFK: I don't know that it has to be an *.iso, but it should be something supported by the `url=` scheme. Maybe there's a different kernel param that instructs the installer to mount a regular disk image, not specifically an *.iso?14:47
CarlFKrealtime-neil: no idea.  I try to keep the boot media as simple and unaltered as possible, then both pxe and usb pull files from various servers15:09
realtime-neilI have something similar, but it's netboot-centric --- everything lives in one repository, is served therefrom, but everything else is pulled in via preseed actions.15:10
realtime-neilCarlFK: and netboot is great, except because the rootfs squash and packages live on the internet, it's not reproducible15:11
xnoxrealtime-neil:  just to double check 1) you want/preffer http url= netboot 2) use stock iso as "base" 3) tweak it futher to have extra things in the seed / more packages / extra debconf settings (aka a "superset" of "stock" iso?)18:06
realtime-neilyes18:06
realtime-neilxnox: stock iso, gently massaged, repacked, and made available for both download and netbooted `ip=dhcp url=`18:07
xnoxrealtime-neil:  it's not unreasonable. it doesn't currently exist over here. I'll need to think about how to make it easier to do that.18:08
xnoxit's a very valid use-case / story.18:08
realtime-neilxnox: excellent; now regarding the possible obsolescence of this: https://help.ubuntu.com/community/InstallCDCustomization ?18:09
realtime-neilIf there's better/newer documentation available, I'm interested18:10
xnoxrealtime-neil:  i think it was out of date on arrival. I think it was written about an old series, where $devel has moved on, when it was written.18:10
realtime-neilxnox: understood18:10
xnoxrealtime-neil:  the "best" documentation on tweaking server Iso that I know of, is our test scripts inside subiquity => https://github.com/CanonicalLtd/subiquity/tree/main/scripts18:11
xnoxrealtime-neil:  specifically the inject-subiquity-snap.sh18:11
xnoxrealtime-neil:  it unpacks an iso, tries to inject things, and repack it back.18:11
realtime-neilxnox: i can work with that; much thanks18:11
xnoxrealtime-neil:  it's meant for testing/developer of suibquity snap wihtout/without customized filesystem.squashfs / installer.squashfs / etc.18:11
xnoxrealtime-neil:  but like you could tweak installer.squashfs to have different backed in seed (i think that's the one that has the regular "stock" seed)18:12
xnoxrealtime-neil:  and the filesystem.sqaushfs is the "base" layer that is copied to target. So like extra packages, i'd install into that one.18:12
xnoxrealtime-neil:  ideally, i'd want to make installer.squashfs / iso pool to be a partial mirror of ubuntu.18:13
xnoxrealtime-neil:  such that one can do "apt install --download-only $foo" and append that, and voila local offline authenticated packages are avialable.18:13
xnoxwhich one then can reference in the seed, in an airgapped enviornment.18:13
xnoxbut again this is vaporware dreams of mine =)18:14
realtime-neilxnox: they have to start somewhere!18:14
CarlFKit's a nice dream18:30

Generated by irclog2html.py 2.7 by Marius Gedminas - find it at mg.pov.lt!