#
…

2026-03-09

03:07tobhe_ has joined #ubuntu-asahi
03:14tobhe has quit [Ping timeout: 480 seconds]
09:26tobhe has joined #ubuntu-asahi
09:31tobhe_ has quit [Ping timeout: 480 seconds]
12:53aditya_ has joined #ubuntu-asahi
12:53aditya_Hi @tobhe[m]
12:53aditya_I managed to create a custom Ubuntu ISO
12:53aditya_I just have one problem left
12:54aditya_That is setting custom grub parameters
12:54aditya_We need to set some kernel parameters in grub for T2 Macs
12:54aditya_I edited grub.cfg in the ISO
12:54aditya_So they work in live ISO
12:54aditya_But not after installation
12:54aditya_You got any idea how the new installer handles grub?
12:55aditya_I also tried adding a preseed
13:56tobhe[m]so what I am usually doing is build a meta package that ships a /etc/default/grub.d config and installing that in the minimal set
13:56tobhe[m]one way to do it is hacking it into livecd-rootfs
13:57tobhe[m]btw for resolute there has been a big rewrite of the entire ISO build code that moves it into livecd-rootfs itself so that ubuntu-cdimage and debian-cd is no longer needed
14:06aditya_I built I
14:06aditya_I built the iso differ
14:06aditya_Differently
14:07aditya_(IRC cloud on iOS is weird lol)
14:07aditya_Basically, I modified the overlayfs
14:07aditya_And instead of a kernel, I added the dkms modules of essential t2 drivers
14:07aditya_Since starting from 6.15 most of our drivers are in the kernel
14:08aditya_No I don't
14:08aditya_It is like a better version of cubic?
14:09tobhe[m]idk what cubic is but livefs-editor allows you to "easily" modify an existing ubuntu iso
14:10aditya_I would try livefs-editor too
14:11aditya_So, what I did was that I created a Deb, with package name exactly the same as the Linux t2 kernels (linux-t2) with version 0.1. It ships the dkms drivers
14:11aditya_And I added the t2 apt repo
14:12aditya_Now upon a software upgrade, apt automatically upgrades the person to the better t2 kernel
14:12tobhe[m]but essentially I would recommend adding a second deb that ships configs and make the grub config part of that
14:12tobhe[m]you will still need both, the livecd grub change and the extra package because the livecd one isn't affected by the package
14:13aditya_Hmm so basically a seperate grub config needed now
14:13aditya_Instead of /etc/default/d
14:13aditya_I mean /etc/default/grub
14:15tobhe[m]let me find you an example
14:16tobhe[m]unfortunately launchpad seems to have problems but https://launchpad.net/ubuntu/+source/ubuntu-x1e-settings
14:17aditya_I cannot open the website rn (Launchpad seems to be problematic more often now lmao)
14:17aditya_Btw I meant like:
14:17aditya_Create a file /etc/default/grub.d/90-custom-kernel-params.cfg
14:18aditya_And put this: GRUB_CMDLINE_LINUX_DEFAULT="$GRUB_CMDLINE_LINUX_DEFAULT quiet splash foo=bar"
14:19tobhe[m]ubuntu-x1e-settings$ cat grub.d/ubuntu-x1e-settings.cfg
14:19tobhe[m]GRUB_DISABLE_OS_PROBER=false
14:19tobhe[m]GRUB_CMDLINE_LINUX="${GRUB_CMDLINE_LINUX} clk_ignore_unused pd_ignore_unused cma=128M efi=noruntime"
14:20tobhe[m]and if the package is installed in the minimal.squashfs it should automatically be copied to the installation
14:20tobhe[m]oh now that I think of it there is another alternative actually
14:20tobhe[m]I think subiquity will specifically copy the installer grub command line after ---
14:20aditya_I'm open to hear
14:21aditya_Yeah I actually was testing the theory of copying after ---
14:21tobhe[m]so if you do something like $default_args --- $your_args
14:21aditya_I had two ISOs. One had quiet splash before --- and one had after ---
14:21tobhe[m]actually I am not 100% certain which way around it is
14:21aditya_I noticed that the one having after --- was correctly copying quiet slash
14:21aditya_I'm belive it's after ---
14:22tobhe[m]so in that case just add your stuff there if you only need kernel cmdline
14:22tobhe[m]that would be easier than an extra package
14:22aditya_Yeah that's what I'm testing rn
14:22aditya_If it doesn't work, I'll create a package
14:23aditya_Also, any idea why any kernel other than the one shipped in the ISO fails to boot in the live iso?
14:23aditya_Normally we just used to replace the initrd and vmlinuz
14:23aditya_That trick doesn't work with the subiquity ISOs
14:24aditya_Leading to the complex dkms thingy
14:24tobhe[m]I think the livecd initrd is special
14:24tobhe[m]compare the included files with 3cpio -t
14:25aditya_Makes sense because I used to get errors from initrd
14:25aditya_Casper to be more precise
14:25tobhe[m]because the initrd needs to contain all the casper logic. I think the squashfs mounting all happens in there
14:25tobhe[m]and of course you can't just reuse the old initrd because the modules need to match
14:25aditya_Fair point
14:30aditya_Also, is it a known isssue
14:30aditya_That the installer fails without internet
14:30aditya_On 25.10 atleast
14:30tobhe[m]it should not
14:30tobhe[m]how does it fail?
14:30aditya_I tries to install the kernel I guess
14:31aditya_I'll just do an offline install and show you
14:31tobhe[m]interesting. normally all the packages it tries to install on an offline install should be seeded on disk and not fetched from the web
14:32aditya_Could be me messing up with the ISO in a wrong way
14:32aditya_Although except for the Casper folder, I had rsynced all files without any changes
14:33aditya_Casper contains the modified squashfs files
14:34tobhe[m]I think the problem might be that the kernel you added isn't also in the pool
14:35aditya_I didn't add any kernel
14:36tobhe[m]oh well no idea then
14:36aditya_Hmm looks like it's working now?
14:36aditya_No it failed
14:37tobhe[m]can you report a bug against subiquity? I think it should print instructions on how to do it with ubuntu-bug
14:40aditya_It could be a problem with my package, but no harm in reporting I guess
14:42aditya_It's taking a lot of time to collect report
14:42aditya_I by mistake had closed the system error dialogue
14:42aditya_Doing another install
15:05aditya_The bug reporter doesn't do anything
15:05aditya_So I manually reported
15:10aditya_Btw the last question I have is that how do I handle the WiFi firmware
15:11aditya_Just like Asahi, I cannot ship it legally
15:11aditya_Previously I had a script which used the Linux APFS rw driver to get it from macOS automatically via systemd
15:12aditya_Now the APFS driver doesn't work as dkms for some reason on subjquity
15:12aditya_I have done a very hacky thing to make it work on live iso only
15:12aditya_But the firmware doesn't copy itself on installation now
16:44tobhe[m]so in asahi the firmware copy stuff happens in the initrd
16:44tobhe[m]and thus also works on an iso
16:44tobhe[m]if you include that in your livecd initrd it should still work
16:58tobhe[m]kaazoo: sorry for not replying earlier, didn't see your messages
16:58tobhe[m]I don't think we have written documentation but in short it will always be something like:
16:59tobhe[m]1. Find Ubuntu kernel with the same base version in https://code.launchpad.net/~ubuntu-kernel
16:59tobhe[m]2. rebase all the asahi changes on top of that
16:59tobhe[m]3. copy debian.asahi-arm directory from old ubuntu asahi kernel to this newly merged one
17:01tobhe[m]5. update debian/debian.env to point to debian.asahi-arm
17:01tobhe[m]6. build, see https://discourse.ubuntu.com/t/how-to-build-your-own-ubuntu-concept-x-elite-kernel/49941 for some discussion ob building kernels and config management
18:53aditya_ has quit [Quit: Connection closed for inactivity]
19:04tobhe_ has joined #ubuntu-asahi
19:08tobhe has quit [Ping timeout: 480 seconds]
19:11tobhe has joined #ubuntu-asahi
19:16tobhe_ has quit [Ping timeout: 480 seconds]
19:22tobhe_ has joined #ubuntu-asahi
19:27tobhe has quit [Ping timeout: 480 seconds]
19:35tobhe has joined #ubuntu-asahi
19:40tobhe_ has quit [Ping timeout: 480 seconds]
…