!DBFhtjpqmJNENpLDOv:nixos.org

NixOS systemd

600 Members
NixOS ❤️ systemd165 Servers

Load older messages


SenderMessageTime
3 Oct 2024
@elvishjerricco:matrix.orgElvishJerriccoIs anything like BIOS flashback mode that's on basically every PC motherboard now?22:58:58
@elvishjerricco:matrix.orgElvishJerriccooh22:59:03
@elvishjerricco:matrix.orgElvishJerriccoyea22:59:04
@elvishjerricco:matrix.orgElvishJerriccomatrix delay :P22:59:09
@raitobezarius:matrix.orgraitobezariusIs it basically on every PC mobo?22:59:28
@raitobezarius:matrix.orgraitobezariusI only buy high end models so I have a bias22:59:34
@elvishjerricco:matrix.orgElvishJerricconot the ones you'd find in like HP prebuilts or anything22:59:41
@elvishjerricco:matrix.orgElvishJerriccobut anything you'd buy for DIY has it22:59:48
@elvishjerricco:matrix.orgElvishJerriccoAMD even mandates it on AM522:59:52
@elvishjerricco:matrix.orgElvishJerriccowhich I guess means they probably put the functionality in the chipset and told everyone not to disable it23:01:07
@raitobezarius:matrix.orgraitobezariusVery cool @ mandate23:01:12
@emilazy:matrix.orgemily
In reply to @raitobezarius:matrix.org
Hmmm you have to have an impl of the FS to load the first stage tho?
well it looks like iBoot2 is on its own per-OS-container "Preboot" volume and I think that might be a bespoke format rather than an actual APFS file system tree, but don't quote me on that. iBoot1 is read off NOR by SecureROM
23:05:58
@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

Show newer messages


Back to Room ListRoom Version: 6