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

realtime-neilUsing the directions here (https://ubuntu.com/server/docs/install/autoinstall-quickstart) I can duplicate that workflow. But, if I change the iso from https://releases.ubuntu.com/focal/ubuntu-20.04-live-server-amd64.iso to https://releases.ubuntu.com/bionic/ubuntu-18.04.4-live-server-amd64.iso, it doesn't work.20:58
realtime-neilWhat's allowing the focal live server iso to work in this case? What does the bionic live server iso lack?20:59
realtime-neilI suspect something in the casper/initrd, but I can't say for certain21:00
xnoxrealtime-neil:  hi, multiple things in livecd-rootfs, how the squashfs are constructed, and how the initrd is built (casper), make many new features work in focal and not on bionic.21:17
xnoxrealtime-neil:  at the moment autoinstall is only supported on focal and up.21:17
realtime-neilah, okay, gotcha21:18
xnoxrealtime-neil:  specifically cloud-init is configured differently, and ssh is missing.21:18
realtime-neilxnox:  is there a workaround I can use with bionic?21:18
xnoxrealtime-neil:  so far we were not tempted to backport all the things to bionic to enable autoinstall in bionic =/ as focal is so awesome, everybody should migrate to focal and totally will next month =) right :-) ?! =)21:18
realtime-neilxnox: RIGHT!21:19
* xnox goes back to the fantasy land, where people adopt the new Ubuntu LTS the week before it ships point release.21:19
realtime-neilxnox: would it be absolutely insane to use the focal kernel-initrd pair to grab a bionic iso with the `url=` trickery?21:19
xnoxrealtime-neil:  that will get you about 70% there, but you will still need to patch bionic iso21:24
xnoxrealtime-neil:  i.e. the installer.squashfs needs cloud-init installed and the /etc/cloud/* stuff to be like it is in the focal iso21:24
xnoxrealtime-neil:  or you could open a feature request against launchpad.net/subiquity "please make autoinstall work in bionic, kthxbye"21:25
realtime-neilxnox: I can ask for things! I'm going to do it!21:25
realtime-neilxnox: is a feature request the same as a Bug, but with a nicer tone? I'm not seeing anything that identifies itself as "feature request".21:29
xnoxrealtime-neil:  it's just a bug yes =)21:32
xnoxrealtime-neil:  nicer tone, always welcome.21:32
realtime-neilIs this enough, or should I make a "real" bug? https://answers.launchpad.net/ubuntu/+source/subiquity/+question/69211921:33
xnoxand then you can like casually mention mwhudson that community are requesting autoinstall support in bionic. and like do ^^^^21:33
mwhudsonwhy am i in this channel!!21:34
mwhudsonanyway, autoinstall for bionic would be possible but also a fiddle21:35
realtime-neilmwhudson: now you've got my curiosity piqued21:35
realtime-neilAlso, I made this for you, mwhudson: https://bugs.launchpad.net/ubuntu/+source/subiquity/+bug/188931421:36
realtime-neilxnox: yep, I'm 70% of the way there: booting qemu with the focal kernel-initrd pair and a url=http://myhost:3003/ubuntu-18.04.4-live-server-amd64.iso gives me "Unable to find a live filesystem on the network"21:45
xnoxrealtime-neil:  you can like speficy casper ignore uuid, or specify casper uuid = <bionic uuid> => there is a quick check to ensure one is trying to boot a matching kernel+initrd & iso pari.21:47
xnox*pair21:47
realtime-neilxnox: is that a kernel param? which uuid is it referencing?21:48
realtime-neilgot it; added appends `live-media-path=/casper/ ignore_uuid`21:50
realtime-neilSweet! That looks a lot better.21:50
xnoxsomething something man casper something something or like http://manpages.ubuntu.com/manpages/focal/en/man7/casper.7.html21:52
xnoxignore_uuid sounds a bout right21:53
realtime-neilI got as far as the disk partitioning; as soon as I confirm the suggested partitioning scheme, it throws "module bcache not found in directory /lib/modules/5.4.0-26-generic"21:59
realtime-neilI'm guessing that has something to do with the mismatch between the kernel I'm running and the live media I'm using21:59
xnoxrealtime-neil:  yeah indeed that will happen.22:17
xnoxrealtime-neil:  you could switch to terminal and install the modules for the matching kernel you booted.22:17
xnoxrealtime-neil:  i.e. add focal, apt update, install focal's kernel modules.22:17
realtime-neilxnox: in which part? the casper/installer.squashfs ?22:43
xnoxhm.22:49
xnoxrealtime-neil:  you can replace the modules squashfs in casper/extra/* no?22:49
xnoxrealtime-neil:  with the right one? inside the bionic image.22:50
xnoxreplace it with the one from focal image?22:50
realtime-neilxnox: ah, okay got it; within the ubuntu-18.04.4-live-server-amd64.iso, replace the `casper/extras/modules.*` with the ones taken from the ubuntu-20.04-live-server-amd64.iso23:44
xnoxrealtime-neil:  i hope you understand that at this point you are trying to attach the Hand from the Adam's family, onto frankenstein from a different movie.23:59

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