| 2 Aug 2022 |
@elvishjerricco:matrix.org | https://github.com/openzfs/zfs/tree/master/contrib/dracut
https://openzfs.github.io/openzfs-docs/man/7/dracut.zfs.7.html | 02:34:56 |
Winter (she/her) | Would this benefit us in any way? | 02:41:17 |
@elvishjerricco:matrix.org | Directly? I doubt it. But I can at least learn how the zfs devs intend on handling stage 1. Currently to me it's just "mount it like normal file systems", which doesn't really scratch the itch with zfs's automatic mountpoint stuff. | 02:42:10 |
Winter (she/her) | I've only ever set my mountpoints to legacy. Not sure if things would break down with how we mount things otherwise... (I think it would because of fstab) | 02:43:54 |
@elvishjerricco:matrix.org | Yea you're supposed to keep zfs datasets with automatic mountpoints out of fstab | 02:44:40 |
@elvishjerricco:matrix.org | I'm not sure it actually matters, particularly if you provide the zfsutil mount option (and have mount.zfs installed) | 02:45:36 |
@elvishjerricco:matrix.org | but it's spooky | 02:45:39 |
@elvishjerricco:matrix.org | Redacted or Malformed Event | 02:47:07 |
Winter (she/her) | In reply to @elvishjerricco:matrix.org I'm not sure it actually matters, particularly if you provide the zfsutil mount option (and have mount.zfs installed) don't you always have mount.zfs installed? | 02:51:46 |
Winter (she/her) | i don't think you can disable that | 02:51:50 |
@elvishjerricco:matrix.org | yea on nixos | 02:51:59 |
@elvishjerricco:matrix.org | speaking a bit more generically for the moment since I dunno how other distros work and dracut is for other distros | 02:52:21 |
Winter (she/her) | ahhh, thought you were talking about nixos | 02:52:31 |
@elvishjerricco:matrix.org | whoa TIL zfs mount with no args shows you mounted datasets and their mountpoints. Already learning things from this stuff :P | 02:53:12 |
Winter (she/her) | zfs list does the same thing with the right options, but that's also nice | 02:55:45 |
Winter (she/her) | (sorry yes i'm nitpicking) | 02:55:54 |
@elvishjerricco:matrix.org | The systemd initrd fs stuff is somewhat clever, in that after it mounts /sysroot, it checks /sysroot/etc/fstab for any file systems with the x-initrd.mount option for other file systems to mount in stage 1. This is something I've wondered if we could utilize... But anyway, this ZFS dracut code is significantly less clever. It just has a few blessed mountpoints that it decides it needs to mount in initrd. You'd think they would have used dataset properties like org.openzfs:initrd.mount or something | 02:57:05 |
@elvishjerricco:matrix.org | Wait wut. One of their code branches looks like it tries to use an imported pool... when systemd generators are run? Which is before any units. Does anyone use this crap? There's no way that works | 03:00:19 |
Winter (she/her) | huh | 03:07:16 |
@elvishjerricco:matrix.org | oh, I see. They somehow make systemd run the generator mid-initrd | 03:15:14 |
@elvishjerricco:matrix.org | not really sure how | 03:15:23 |
Winter (she/her) | In reply to @elvishjerricco:matrix.org oh, I see. They somehow make systemd run the generator mid-initrd what makes you say that? | 03:20:47 |
@elvishjerricco:matrix.org | The diagram here: https://openzfs.github.io/openzfs-docs/man/7/dracut.zfs.7.html | 03:21:00 |
@elvishjerricco:matrix.org | But with the lack of code supporting my theory, I'm now doubting it... | 03:21:16 |
@elvishjerricco:matrix.org | Ok, well after all that, I think all I've learned is that ZFS wants you to put your boot fs in the kernel cmdline like root=ZFS=pool/dataset, root=zfs:pool/dataset, or root=zfs:AUTO (in which case it looks for anything with a bootfs dataset property) | 03:24:13 |
@elvishjerricco:matrix.org | so, I'm not thrilled | 03:24:19 |
@elvishjerricco:matrix.org | * Ok, well after all that, I think all I've learned is that ZFS wants you to put your root fs in the kernel cmdline like root=ZFS=pool/dataset, root=zfs:pool/dataset, or root=zfs:AUTO (in which case it looks for anything with a bootfs dataset property) | 03:24:32 |
K900 | Fixed eval on the goblin PR | 07:21:26 |
Winter (she/her) | In reply to @k900:0upti.me Fixed eval on the goblin PR
error: undefined variable 'elvishjericco'
missing an r | 07:53:21 |
K900 | Oh my fucking god | 07:53:36 |