| 13 Dec 2023 |
matthewcroughan | * efi_status is set to true somehow in u-boot, due to the existence of gpt structures, or something else on the disk as a result of being hybrid, and then that just totally screws with everything | 21:40:43 |
matthewcroughan | make bootcode.bin (boot firmware) happy, make u-boot sad. | 21:41:05 |
| 14 Dec 2023 |
matthewcroughan | I was thinking, it could be inside of the domain of Disko to add configuration like this for auto expansion
https://github.com/NixOS/nixpkgs/blob/master/nixos/modules/installer/sd-card/sd-image.nix#L258 | 00:01:51 |
matthewcroughan | per filesystem first boot auto expansion scripts | 00:02:07 |
matthewcroughan | via systemd-firstboot too https://www.freedesktop.org/software/systemd/man/latest/systemd-firstboot.html | 00:02:24 |
matthewcroughan | hmm, the bcachefs tests work in Disko, but not in my config | 10:00:35 |
matthewcroughan | piygg-disko-images> mount: /mnt/: unknown filesystem type 'bcachefs'.
piygg-disko-images> dmesg(1) may have more information after failed mount system call.
piygg-disko-images> + rm -rf /tmp/tmp.y0GLr0C4ub
| 10:00:45 |
matthewcroughan | https://github.com/nix-community/disko/blob/master/tests/bcachefs.nix#L14 | 10:01:16 |
matthewcroughan | Surely line 14 should be removed, in favour of putting it in ../example/bcachefs.nix ? | 10:01:36 |
matthewcroughan | In order to test the usage of extendModules here https://github.com/nix-community/disko/blob/master/lib/tests.nix#L47 | 10:02:08 |
matthewcroughan | boot = {
supportedFilesystems = [ "bcachefs" ];
kernelPackages = lib.mkForce pkgs.linuxPackages_testing;
...
Is present in my nixosConfiguration, maybe it's the pkgs.linuxKernel.packages.linux_testing_bcachefs that makes it work in the test?
| 10:04:17 |
matthewcroughan | Ah yeah in that case it looks like it builds the kernel 6.5, presumably with bcachefs set to y instead of modular | 10:05:58 |
matthewcroughan | ah, but that fails to patch on my nixpkgs, darnit | 10:06:16 |
matthewcroughan | * ah, but that fails to patch on my nixpkgs, which is latest nixos-unstable darnit | 10:06:21 |
matthewcroughan | bcachefs creation works, just not mounting of it | 10:13:01 |
matthewcroughan | piygg-disko-images> mounting version 1.3: rebalance_work
piygg-disko-images> initializing new filesystem
piygg-disko-images> going read-write
piygg-disko-images> initializing freespace
piygg-disko-images> + set -efux
piygg-disko-images> + device=/dev/vda
piygg-disko-images> + imageSize=3G
piygg-disko-images> + name=disk1
piygg-disko-images> + type=disk
piygg-disko-images> + device=/dev/vda
piygg-disko-images> + type=gpt
piygg-disko-images> + device=/dev/vda
piygg-disko-images> + imageSize=3G
piygg-disko-images> + name=disk1
piygg-disko-images> + type=disk
piygg-disko-images> + device=/dev/vda
piygg-disko-images> + type=gpt
piygg-disko-images> + device=/dev/disk/by-partlabel/disk-disk1-root
piygg-disko-images> + extraArgs=()
piygg-disko-images> + declare -a extraArgs
piygg-disko-images> + format=bcachefs
piygg-disko-images> + mountOptions=('defaults')
piygg-disko-images> + declare -a mountOptions
piygg-disko-images> + mountpoint=/
piygg-disko-images> + type=filesystem
piygg-disko-images> + findmnt /dev/disk/by-partlabel/disk-disk1-root /mnt/
piygg-disko-images> + mount /dev/disk/by-partlabel/disk-disk1-root /mnt/ -t bcachefs -o defaults -o X-mount.mkdir
piygg-disko-images> mount: /mnt/: unknown filesystem type 'bcachefs'.
piygg-disko-images> dmesg(1) may have more information after failed mount system call.
piygg-disko-images> + rm -rf /tmp/tmp.vfRvJa95kq
piygg-disko-images> [ 5.642972] reboot: Power down
| 10:13:15 |
matthewcroughan | piygg-disko-images> + uname -a
piygg-disko-images> Linux (none) 6.1.67 #1-NixOS SMP Mon Dec 11 09:41:01 UTC 2023 aarch64 GNU/Linux
| 10:14:47 |
matthewcroughan | Why is the kernel version in the make-disk-image not the same as mine? | 10:14:59 |
matthewcroughan | is extendModules working correctly? | 10:15:08 |
matthewcroughan | vmTools! | 10:36:18 |
matthewcroughan | Figured it out, making a PR now, but it does increase the necessary memSize | 10:59:58 |
matthewcroughan | maybe the VM should have zram :D | 11:00:24 |
matthewcroughan | It is quite unfortunate, but there is no way to get a list of kernel module names for the filesystems involved in a nixos configuration | 11:02:00 |
matthewcroughan | nixosConfigurations.pi3.config.boot.supportedFilesystems
[ "bcachefs" "bcachefs" "vfat" ]
| 11:02:21 |
matthewcroughan | This is not a module list, even though it looks like one | 11:02:27 |
matthewcroughan | https://github.com/NixOS/nixpkgs/tree/master/nixos/modules/tasks/filesystems | 11:02:47 |