[2023-06-05T04:33:17Z] https://github.com/kisslinux/website/issues/52 [2023-06-05T04:33:22Z] can we redo this [2023-06-05T04:36:50Z] dilyn: hi. yes [2023-06-05T06:22:58Z] Hi [2023-06-05T06:23:07Z] sewn: redo what [2023-06-05T06:23:56Z] the context of the issue I linked, which is hosting screenshots of kiss linux user's desktops and such [2023-06-05T13:52:46Z] hi [2023-06-05T14:13:26Z] illiliti: I finally have the capacity to actually rigorously use ZFS but I'm hitting an issue. What's your /etc/tinyramfs/config and kernel command line? mine: [2023-06-05T14:13:27Z] compress=zstd [2023-06-05T14:13:27Z] root_type=zfs [2023-06-05T14:13:28Z] zfs_root=UUID=15497905189281842687 [2023-06-05T14:13:28Z] hooks=systemd-udev,zfs [2023-06-05T14:13:29Z] commandline: root=rpool/ubuntu rw initrd=\efi\uwu\initrd.zst [2023-06-05T14:13:29Z] pool structure is like: [2023-06-05T14:13:30Z] rpool/ubuntu{/some extra datasets} <- location of /, mountpoint=legacy [2023-06-05T14:13:44Z] I believe the error at boot is "cannot import pool ' ' " [2023-06-05T15:03:02Z] why do you use an initrd [2023-06-05T15:03:23Z] because I didn't want to swap bootloaders yet and as a result it's the only way to boot from zfs on root [2023-06-05T15:04:30Z] oh yeah zfs is out of tree and is needed because root partition [2023-06-05T15:04:31Z] oops [2023-06-05T15:07:28Z] yeah; I actually boot my ubuntu install without an initrd but in this case I can't (trivially) avoid it [2023-06-05T16:05:05Z] my config: https://illiliti.pastes.sh/1685981014272276512 [2023-06-05T16:06:19Z] cmdline: vmlinuz initrd=\initramfs quiet i915.fastboot=1 lsm=landlock [2023-06-05T16:06:40Z] gotcha gotcha! thank you [2023-06-05T16:06:41Z] i boot from uefi directly [2023-06-05T16:06:48Z] also I believe that fastboot option is default on 5.12+ [2023-06-05T16:07:07Z] maybe i don't know [2023-06-05T16:07:28Z] they break it from time to time [2023-06-05T16:07:43Z] I'll test later today with an updated config, seems like it should work then. thank you so much <3 [2023-06-05T16:07:57Z] yeah I saw a lot of bug reports regarding fastboot breaking for i915 when debugging something haha [2023-06-05T16:09:12Z] how did you build zfs module? [2023-06-05T16:09:18Z] as builtin? [2023-06-05T16:09:22Z] or external [2023-06-05T16:09:22Z] yessir [2023-06-05T16:09:30Z] builtin? [2023-06-05T16:09:33Z] yeah builtin [2023-06-05T16:09:40Z] me too [2023-06-05T16:09:43Z] I think I'm JUST screwing up the config tbh [2023-06-05T16:09:57Z] builtin is the way to go! keep it simple [2023-06-05T16:10:13Z] maybe because you use systemd-udev which i don't test regularly [2023-06-05T16:10:55Z] it's possible. that was my next point to investigate [2023-06-05T16:11:28Z] cannot import pool sounds sus [2023-06-05T16:11:58Z] well I think it can't import the pool because it doesn't know the name of the pool [2023-06-05T16:12:08Z] because I'm passing it to zfs.init incorrectly [2023-06-05T16:12:50Z] ah wait [2023-06-05T16:12:57Z] you use uuid right [2023-06-05T16:13:11Z] that may be a problem [2023-06-05T16:13:58Z] like, your blkid may not support zfs and discovery by uuid will not work in that case [2023-06-05T16:15:52Z] it should, it's ubuntu :clown-face: [2023-06-05T16:16:10Z] double check [2023-06-05T16:16:27Z] I have run it myself (albeit in userspace) and it works as intended, but I'll play around with it [2023-06-05T16:20:43Z] hmm are you sure rpool/ubuntu is correct root? [2023-06-05T16:20:52Z] yessir [2023-06-05T16:21:54Z] my zfs list: https://illiliti.pastes.sh/1685982091095676750 [2023-06-05T16:22:54Z] mount: https://illiliti.pastes.sh/1685982156177005752 [2023-06-05T16:23:05Z] if that helps [2023-06-05T16:24:20Z] useful, thank you; I assume based on the way the zfs hooks work you *have* to mark pools that need to be mounted as legacy mount, otherwise they'll all mount at /mnt/root instead of / [2023-06-05T16:25:40Z] yes [2023-06-05T16:26:00Z] iirc there is a workaround to this issue but i didn't implement it [2023-06-05T16:28:24Z] which kernel and zfs version you use? [2023-06-05T16:45:09Z] 6.2.12+ (ubuntu 23.04 kernel), whatever latest zfs is [2023-06-05T16:45:19Z] have to be bleeding edge on ubuntu because I got an arc GPU xD [2023-06-05T16:45:40Z] intel arc? [2023-06-05T16:46:08Z] yessir [2023-06-05T16:46:10Z] a750 [2023-06-05T16:46:13Z] cool [2023-06-05T16:46:44Z] got it for encoding/decoding once I build my NAS; i'll switch my main machine to like a 7900xtx or something when that happens. but that's a long-term strategy [2023-06-05T16:52:42Z] well your only way to understand what's wrong is to boot into initramfs and type commands by hand until you get an error [2023-06-05T16:53:30Z] there are some breakpoints you can use to drop into shell before specified stage is ran [2023-06-05T16:54:04Z] grep init.sh for rdbreak [2023-06-05T16:57:20Z] for sure, that was the last thing I was going to do (arguably maybe it should be the first thing I did but oh well) [2023-06-05T16:58:30Z] it's worth to check if /dev/disk/by-uuid/ gets created in initramfs at boot [2023-06-05T16:58:43Z] if not, then it's device manager issue [2023-06-05T16:59:00Z] in your case it's systemd obviously [2023-06-05T17:03:09Z] if uuid does not exist in /dev/disk/by-uuid, you can try to specify path to devnode in zfs_root instead as a quick workaround [2023-06-05T17:05:16Z] definitely [2023-06-05T17:10:22Z] can you send me output of zfs list if possible? [2023-06-05T17:15:17Z] you want the whole thing?? http://ix.io/4xxO [2023-06-05T17:16:02Z] things like rpool/ubuntu/{usr,var} are set to can't be mounted btw. the mountpoint is a red herring [2023-06-05T17:16:19Z] need to set rpool/ubuntu/usr/local etc to legacy tho [2023-06-05T17:17:12Z] (though I might end up using https://openzfs.github.io/openzfs-docs/man/8/zfs-mount-generator.8.html to get around this, haven't decided yet) [2023-06-05T17:22:28Z] fuck [2023-06-05T17:22:39Z] i know what's wrong [2023-06-05T17:23:02Z] you specified root= on cmdline [2023-06-05T17:23:08Z] that's unsupported [2023-06-05T17:23:22Z] specify it in config [2023-06-05T17:23:36Z] yeah that's the change I made and why I asked for yours lmfao [2023-06-05T17:23:43Z] but *technically* it SHOULD be supported:P [2023-06-05T17:23:50Z] yeah [2023-06-05T17:23:53Z] I'm about to test the changes i'll lyk [2023-06-05T17:24:20Z] the problem is that it requires major changes to tinyramfs [2023-06-05T17:24:33Z] like event-based system where hooks= order won't matter [2023-06-05T17:24:40Z] aha aha [2023-06-05T17:24:49Z] that's something i want to implement [2023-06-05T17:24:51Z] I never used tinyramfs enough to notice when I was messing around with it last time [2023-06-05T17:25:02Z] but have no time for this yet [2023-06-05T17:25:22Z] i don't use tinyramfs often too [2023-06-05T17:25:40Z] i just generated it once and forgot [2023-06-05T17:28:14Z] btw i don't know how zfs mounts pools with nested pools [2023-06-05T17:28:27Z] i never tested such configuration [2023-06-05T17:28:29Z] wdym? [2023-06-05T17:28:44Z] it's just a single pool [2023-06-05T17:29:17Z] how mounting datasets is handled is a tricky bitch tho [2023-06-05T17:29:41Z] i mean if you mount rpool/ubuntu, does it mean that rpool/ubuntu/usr will get mounted too? [2023-06-05T17:30:10Z] i don't know how mount works in this case [2023-06-05T17:30:24Z] mine configuration is simple as you see [2023-06-05T17:30:24Z] rpool/ubuntu/usr won't get mounted because it's canmount=off. it only exists to create rpool/ubuntu/usr/local [2023-06-05T17:30:53Z] you can't have rpool/ubuntu/usr mount to, say, /usr, because it won't exist for initrd to handoff to (because if you set it to automount it will get mounted to /mnt/root instead of /) [2023-06-05T17:31:15Z] you'd have to extend tinyramfs' zfs hook to mount datasets before switch_root [2023-06-05T17:33:46Z] I think the way would just be a zfs.init.late that checks if a var is set in config and mounts datasets - trivial with a zfs mount -a BUT if you're doing a dual boot off a single pool and have datasets setup like I do you'd need to set a different passphrase on the root datasets so that you don't get a collision -- because rpool/kiss was made after [2023-06-05T17:33:47Z] rpool/ubuntu, rpool/kiss would get mounted over rpool/ubuntu [2023-06-05T17:34:21Z] if you provide separate keys you just fail on the key for the dataset you don't care about and I think zfs mount -a only mounts unlocked rpools [2023-06-05T17:34:32Z] i think that's something host system should do, e.g via fstab [2023-06-05T17:34:39Z] I think I agree [2023-06-05T17:34:45Z] initramfs task is to mount root and switch root to it [2023-06-05T17:34:50Z] 100% [2023-06-05T17:35:36Z] you can use the zfs mount generator to create a bunch of systemd services to properly map out the mount order and do the mounting during init after you've switch rooted but... why would I let systemd do that when I can just use fstab do the one thing it was designed for lmfao [2023-06-05T17:36:55Z] yes [2023-06-05T18:01:04Z] if you manage to get it to work, lmk. i'm going to sleep [2023-06-05T18:27:48Z] what's it with zig devs trying to blame kiss linux for zig builds being segfault [2023-06-05T18:50:08Z] maybe theyre drunk? [2023-06-05T19:09:41Z] illiliti: figured out *one* thing: was using the wrong ID for the pool [2023-06-05T19:10:04Z] zpool wants the ID of the pool itself, not the disk. I guess -- hard to debug. My keyboard doesn't work in initrd [2023-06-05T19:13:14Z] the keyboard is seen by the kernel, the module is loaded. so why it doesn't function, I'm not certain of [2023-06-05T21:10:36Z] setting hostonly in config results in success. Will investigate why soon enough [2023-06-05T21:51:54Z] illiliti: http://ix.io/4xyE [2023-06-05T21:51:55Z] Because I'm missing HID