| 11 Aug 2024 |
matthewcroughan | With IO error: Operation not permitted | 17:54:38 |
matthewcroughan | running the mkfs.bcachefs command directly doesn't exhibit the permission error | 17:59:40 |
matthewcroughan | maybe something isn't settling? | 18:00:34 |
matthewcroughan | changing the FS to ext4 makes it work correctly, this is odd stuff | 18:02:05 |
lassulus | Maybe it has to do with the alignment changes you did? | 18:04:58 |
matthewcroughan | But if I run the mkfs.bcachefs cmd from the set -x debug manually by hand after it exists, I don't get the "Operation not permitted" error | 18:06:04 |
matthewcroughan | * But if I run the mkfs.bcachefs cmd from the set -x debug manually by hand after it exits, I don't get the "Operation not permitted" error | 18:06:24 |
matthewcroughan | And if I use ext4, everything is fine too. | 18:06:33 |
matthewcroughan | Yeah, something about the assumptions of the diskoScript don't work on real hardware like this SD card | 18:21:12 |
matthewcroughan | I've tried two SD cards in two interfaces by now | 18:21:27 |
matthewcroughan | trying another medium | 18:22:46 |
matthewcroughan | figured it out | 18:23:25 |
matthewcroughan | 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 | it's the touch /mnt/disko-first-boot | 18:23:34 |
matthewcroughan | works with ext4, doesn't work with bcachefs | 18:23:47 |
matthewcroughan | bcachefs kernel module wasn't loaded, so that happened :D | 18:24:21 |
matthewcroughan | Impurities. Impurities everywhere! | 18:25:12 |
matthewcroughan | 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 | 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 | 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 |
matthewcroughan | * 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:37 |
matthewcroughan | * 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
```
| 19:45:40 |
matthewcroughan | I'm unable to perform a nixos-install for an arm64 target, odd | 19:45:59 |
matthewcroughan | * 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
| 19:46:06 |
matthewcroughan | /nix/store/ydg6krk7waimsm36njvkv4g0xchq3iry-nixos-install-tools-24.11pre-git/bin/nixos-install --no-root-password --option substituters "" --no-channel-copy --system /nix/store/1p8v7jgaglnk0k6vkjmx0lsjwd3a8vdp-nixos-system-homerouter-24.11.20240731.9f918d6 | 19:46:18 |
matthewcroughan |
[root@t480:~]# nixos-enter
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
| 19:46:57 |
matthewcroughan | * [root@t480:~]# nixos-enter
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
| 19:47:01 |
matthewcroughan | Ah, nixos-enter doesn't work unless there's a profile there first | 19:47:51 |
| blimbus joined the room. | 23:19:36 |
| 12 Aug 2024 |
@brian:bmcgee.ie | Is there a way of running disko in a vm test? I'm trying it with just disko --mode disko ... but it's reaching out to the internet and failing | 14:36:14 |