| 11 Aug 2024 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | Yeah, something about the assumptions of the diskoScript don't work on real hardware like this SD card | 18:21:12 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | I've tried two SD cards in two interfaces by now | 18:21:27 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | trying another medium | 18:22:46 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | figured it out | 18:23:25 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | root = {
name = "root";
size = "100%";
content = {
type = "filesystem";
extraArgs = [ "--compression=lz4" ];
format = "bcachefs";
mountpoint = "/";
postMountHook = toString (pkgs.writeScript "postMountHook.sh" ''
touch /mnt/disko-first-boot
'');
};
};
| 18:23:27 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | it's the touch /mnt/disko-first-boot | 18:23:34 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | works with ext4, doesn't work with bcachefs | 18:23:47 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | bcachefs kernel module wasn't loaded, so that happened :D | 18:24:21 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | Impurities. Impurities everywhere! | 18:25:12 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | This one of the disadvantages to the way disko does things, it needs loopbacks and can't reliably be used outside of a VM builder | 18:26:10 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | systemd-repart works on files and can do a lot of the same things without the downsides of requiring a VM builder, but has some constraints like being unable to start and end arbitrarily | 18:27:19 |
matthewcroughan @ 39c3 (DECT 94667 or 97340 or 67192) | copying path '/nix/store/1p8v7jgaglnk0k6vkjmx0lsjwd3a8vdp-nixos-system-homerouter-24.11.20240731.9f918d6' to 'local'...
installing the boot loader...
chroot: failed to run command ‘/nix/var/nix/profiles/system/activate’: No such file or directory
chroot: failed to run command ‘/nix/var/nix/profiles/system/sw/bin/bash’: No such file or directory
```a
| 19:45:36 |