!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

600 Members
NixOS ❤️ systemd165 Servers

Load older messages


SenderMessageTime
3 Oct 2024
@raitobezarius:matrix.orgraitobezariusSo it's the FAT32 of Apple23:07:08
@raitobezarius:matrix.orgraitobezariusThe only interesting question is: is it journaled?23:07:30
@emilazy:matrix.orgemilyit might actually be a real APFS tree, not sure23:08:20
@elvishjerricco:matrix.orgElvishJerriccohonestly if I needed to implement the simplest possible file system for firmware to boot off of I'd probably just make it like ZFS's ZIL23:08:22
@emilazy:matrix.orgemilyall iBoot1 does is to read a boot policy and chainload into the appropriate iBoot2 basically23:09:16
@elvishjerricco:matrix.orgElvishJerriccowhich would slot nicely into a CoW container format like APFS / ZFS23:09:21
@emilazy:matrix.orgemilyI know they use C with added memory safety sprinkled in for iBoot implementation but I don't know if they just have a whole APFS in there or what23:09:31
4 Oct 2024
@mjm:midna.devmjm ElvishJerricco: bcachefs generator doesn't seem to agree with my impermanence setup. all i've done is apply the patch of the PR and disable clevis. my bcachefs volume mounts at /persist, and i get prompted to unlock /sysroot/persist, but then it's blocked on 3 of the bind mounts, which just seem to sit there doing nothing until they timeout (i think it's /nix, /var/log and /var/lib/nixos that it's waiting on) 00:48:50
@elvishjerricco:matrix.orgElvishJerriccohm, interesting00:49:38
@elvishjerricco:matrix.orgElvishJerriccoI'm struggling to think of anything that would cause that...00:50:18
@elvishjerricco:matrix.orgElvishJerricco mjm: Can you share your file system nix config? 00:51:57
@elvishjerricco:matrix.orgElvishJerricco or better yet, the initrd's fstab file 00:52:53
@elvishjerricco:matrix.orgElvishJerricco it'd be the config.boot.initrd.systemd.managerEnvironment.SYSTEMD_SYSROOT_FSTAB I think 00:53:17
@mjm:midna.devmjm

well first, here's my normal fstab:

# This is a generated file.  Do not edit!
#
# To make changes, edit the fileSystems and swapDevices NixOS options
# in your /etc/nixos/configuration.nix file.
#
# <file system> <mount point>   <type>  <options>       <dump>  <pass>

# Filesystems.
none / tmpfs x-initrd.mount,defaults,mode=755,size=32G 0 0
/dev/disk/by-partlabel/boot /boot vfat defaults 0 2
/dev/disk/by-partlabel/persist /persist bcachefs x-initrd.mount 0 0
/persist/etc/NetworkManager/system-connections /etc/NetworkManager/system-connections auto x-systemd.requires-mounts-for=/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/etc/secureboot /etc/secureboot auto x-systemd.requires-mounts-for=/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/home /home auto x-systemd.requires-mounts-for=/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/nix /nix auto x-initrd.mount,x-systemd.requires-mounts-for=/sysroot/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/var/lib/NetworkManager /var/lib/NetworkManager auto x-systemd.requires-mounts-for=/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/var/lib/fprint /var/lib/fprint auto x-systemd.requires-mounts-for=/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/var/lib/iwd /var/lib/iwd auto x-systemd.requires-mounts-for=/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/var/lib/libvirt /var/lib/libvirt auto x-systemd.requires-mounts-for=/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/var/lib/nixos /var/lib/nixos auto x-initrd.mount,x-systemd.requires-mounts-for=/sysroot/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/var/log /var/log auto x-initrd.mount,x-systemd.requires-mounts-for=/sysroot/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0


# Swap devices.
/dev/mapper/dev-disk-byx2dpartlabel-swap none swap defaults
00:53:46
@elvishjerricco:matrix.orgElvishJerriccooh, yea, that ought to include the same stuff too I guess00:54:24
@mjm:midna.devmjm
none / tmpfs x-initrd.mount,defaults,mode=755,size=32G 0 0
/dev/disk/by-partlabel/persist /persist bcachefs x-initrd.mount 0 0
/persist/nix /nix auto x-initrd.mount,x-systemd.requires-mounts-for=/sysroot/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/var/lib/nixos /var/lib/nixos auto x-initrd.mount,x-systemd.requires-mounts-for=/sysroot/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
/persist/var/log /var/log auto x-initrd.mount,x-systemd.requires-mounts-for=/sysroot/persist,bind,X-fstrim.notrim,x-gvfs-hide 0 0
00:54:34
@mjm:midna.devmjmthat's the initrd one00:54:39
@elvishjerricco:matrix.orgElvishJerricco mjm: ok, yea, there's some serious bugs here that don't make sense to me 01:00:53
@elvishjerricco:matrix.orgElvishJerriccothanks for the fstab01:00:59
@elvishjerricco:matrix.orgElvishJerriccobut suffice to say, you cannot use it right now :P01:01:12
@mjm:midna.devmjmnp, let me know anything else i can provide that's useful01:01:13
@elvishjerricco:matrix.orgElvishJerriccono this is plenty01:01:25
@mjm:midna.devmjmcool, i can test again whenever you have something01:02:16
@elvishjerricco:matrix.orgElvishJerricco mjm: one issue I do understand: I had it work on auto mounts because I figured the condition I added to skip the unit if the device isn't a bcachefs device would be enough. But it's flipping out on your bind mounts because of that :P 01:02:50
@elvishjerricco:matrix.orgElvishJerriccoso I'll make it only work on explicit bcachefs type01:03:03
@elvishjerricco:matrix.orgElvishJerriccoactually that might be the only issue01:03:12
@elvishjerricco:matrix.orgElvishJerriccothat might explain why it's creating non-sysroot mount units for those things too01:03:24
@elvishjerricco:matrix.orgElvishJerriccoI'll have to test to see and then think on why01:03:39
@mjm:midna.devmjminteresting01:03:55
@elvishjerricco:matrix.orgElvishJerricconope, that doesn't explain it. It's also trying to create the deps for your persist mount without the sysroot prefix, in addition to the sysroot one01:05:40

Show newer messages


Back to Room ListRoom Version: 6