!oNSIfazDqEcwhcOjSL:matrix.org

disko

363 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko93 Servers

You have reached the beginning of time (for this room).


SenderMessageTime
13 Dec 2023
@matthewcroughan:defenestrate.itmatthewcroughan * 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:defenestrate.itmatthewcroughanmake bootcode.bin (boot firmware) happy, make u-boot sad.21:41:05
14 Dec 2023
@matthewcroughan:defenestrate.itmatthewcroughanI 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#L25800:01:51
@matthewcroughan:defenestrate.itmatthewcroughanper filesystem first boot auto expansion scripts00:02:07
@matthewcroughan:defenestrate.itmatthewcroughanvia systemd-firstboot too https://www.freedesktop.org/software/systemd/man/latest/systemd-firstboot.html00:02:24
@matthewcroughan:defenestrate.itmatthewcroughanhmm, the bcachefs tests work in Disko, but not in my config 10:00:35
@matthewcroughan:defenestrate.itmatthewcroughan
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:defenestrate.itmatthewcroughanhttps://github.com/nix-community/disko/blob/master/tests/bcachefs.nix#L1410:01:16
@matthewcroughan:defenestrate.itmatthewcroughan Surely line 14 should be removed, in favour of putting it in ../example/bcachefs.nix ? 10:01:36
@matthewcroughan:defenestrate.itmatthewcroughan 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:defenestrate.itmatthewcroughan
  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:defenestrate.itmatthewcroughan 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:defenestrate.itmatthewcroughanah, but that fails to patch on my nixpkgs, darnit10:06:16
@matthewcroughan:defenestrate.itmatthewcroughan * ah, but that fails to patch on my nixpkgs, which is latest nixos-unstable darnit10:06:21
@matthewcroughan:defenestrate.itmatthewcroughanbcachefs creation works, just not mounting of it 10:13:01
@matthewcroughan:defenestrate.itmatthewcroughan
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:defenestrate.itmatthewcroughan
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:defenestrate.itmatthewcroughanWhy is the kernel version in the make-disk-image not the same as mine?10:14:59
@matthewcroughan:defenestrate.itmatthewcroughanis extendModules working correctly?10:15:08
@matthewcroughan:defenestrate.itmatthewcroughanvmTools!10:36:18
@matthewcroughan:defenestrate.itmatthewcroughan Figured it out, making a PR now, but it does increase the necessary memSize 10:59:58
@matthewcroughan:defenestrate.itmatthewcroughanmaybe the VM should have zram :D11:00:24
@matthewcroughan:defenestrate.itmatthewcroughanIt 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:defenestrate.itmatthewcroughan
nixosConfigurations.pi3.config.boot.supportedFilesystems
[ "bcachefs" "bcachefs" "vfat" ]
11:02:21
@matthewcroughan:defenestrate.itmatthewcroughanThis is not a module list, even though it looks like one 11:02:27
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/tree/master/nixos/modules/tasks/filesystems11:02:47

Show newer messages


Back to Room ListRoom Version: 10