| 18 Aug 2025 |
Sylvie (They/She) 🏳️⚧️ | I'll see what happens | 12:17:51 |
Sylvie (They/She) 🏳️⚧️ | I would like to use systemd-boot, but it's not a must | 12:18:12 |
lassulus | maybe it was fixed in the years, or there is a way to ignore the check in the systemd-install command | 12:24:00 |
lassulus | * maybe it was fixed in the years, or there is a way to ignore the check in the bootctl install command | 12:24:35 |
lassulus | but as disko doesn't run bootctl it's not configurable in it for now | 12:24:53 |
Sylvie (They/She) 🏳️⚧️ | nope, I definitely hit that | 12:25:01 |
Sylvie (They/She) 🏳️⚧️ | well I'm running nixos-install | 12:25:25 |
Sylvie (They/She) 🏳️⚧️ | as in, as opposed to disko-install | 12:25:52 |
Sylvie (They/She) 🏳️⚧️ | File system "/dev/md127" is not located on a partitioned block device.
Traceback (most recent call last):
File "/nix/store/ks9dxd7yp3pj64ib7y19pgbgsnir9xgm-systemd-boot/bin/systemd-boot", line 431, in <module>
main()
File "/nix/store/ks9dxd7yp3pj64ib7y19pgbgsnir9xgm-systemd-boot/bin/systemd-boot", line 414, in main
install_bootloader(args)
File "/nix/store/ks9dxd7yp3pj64ib7y19pgbgsnir9xgm-systemd-boot/bin/systemd-boot", line 307, in install_bootloader
run(
File "/nix/store/ks9dxd7yp3pj64ib7y19pgbgsnir9xgm-systemd-boot/bin/systemd-boot", line 58, in run
return subprocess.run(cmd, check=True, text=True, stdout=stdout)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/nix/store/bbyp6vkdszn6a14gqnfx8l5j3mhfcnfs-python3-3.12.11/lib/python3.12/subprocess.py", line 571, in run
raise CalledProcessError(retcode, process.args,
subprocess.CalledProcessError: Command '['/nix/store/ksz6ygnl9f1l6jff3mwmjsmw7qyyxa59-systemd-257.7/bin/bootctl', '--esp-path=/boot', 'install']' returned non-zero exit status 1.
Failed to install bootloader
| 12:26:15 |
Sylvie (They/She) 🏳️⚧️ | hmmm, well, the good thing is | 12:26:42 |
Sylvie (They/She) 🏳️⚧️ | that I can probably just umount that, disable the raid temporarily, and just mount the underlying partition | 12:27:15 |
Sylvie (They/She) 🏳️⚧️ | cause my secret is that I don't actually have a second disk yet 😬 | 12:27:40 |
Sylvie (They/She) 🏳️⚧️ | I'm setting this up in anticipation of getting a second disk sometime soon lol | 12:28:00 |
Sylvie (They/She) 🏳️⚧️ | I'll just hope that this also won't cause trouble when I deploy updates | 12:28:37 |
lassulus | you could check this:
If $SYSTEMD_RELAX_ESP_CHECKS=1 is set the validation checks for
the ESP are relaxed, and the path specified with --esp-path= may
refer to any kind of file system on any kind of partition.
Similarly, $SYSTEMD_RELAX_XBOOTLDR_CHECKS=1 turns off some
validation checks for the Extended Boot Loader partition.
| 12:29:07 |
lassulus | not sure they apply here, seems like the wrong way around | 12:29:37 |
lassulus | but it should work I think | 12:30:12 |
Sylvie (They/She) 🏳️⚧️ | hmmm yeah | 12:37:05 |
Sylvie (They/She) 🏳️⚧️ | I tried just passing that in via --impure and it did the trick | 12:37:14 |
Sylvie (They/She) 🏳️⚧️ | now how/where do I add that to my config 😅 | 12:37:37 |
lassulus | maybe add a nixos-install wrapper | 12:37:56 |
lassulus | environment.systemPackages = [
(pkgs.writeScriptBin "nixos-install" ''
export SYSTEMD_RELAX_ESP_CHECKS=1
exec {pkgs.nixos-install}/bin/nixos-install "$@"
'')
]
| 12:39:10 |
lassulus | or something like that | 12:39:13 |
Sylvie (They/She) 🏳️⚧️ | hmmmm | 12:47:39 |
Sylvie (They/She) 🏳️⚧️ | https://github.com/systemd/systemd/issues/12468#issuecomment-698782077
And yes, sd-boot writes to the ESP if boot counting/boot assessment is enabled.
| 12:49:43 |
Sylvie (They/She) 🏳️⚧️ | I'd like to turn that off lol | 12:49:48 |
Sylvie (They/She) 🏳️⚧️ | I don't see it in the loader.conf options | 12:50:09 |
Sylvie (They/She) 🏳️⚧️ | it sounds like setting that up is a rather involved process fwiw | 12:53:28 |
Sylvie (They/She) 🏳️⚧️ | I'd say I can worry about that once I actually have two disks 😅 | 12:53:44 |
Sylvie (They/She) 🏳️⚧️ | hmmmm | 12:59:29 |