!oNSIfazDqEcwhcOjSL:matrix.org

disko

358 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko89 Servers

Load older messages


SenderMessageTime
11 Aug 2024
@matthewcroughan:defenestrate.itmatthewcroughan With IO error: Operation not permitted 17:54:38
@matthewcroughan:defenestrate.itmatthewcroughanrunning the mkfs.bcachefs command directly doesn't exhibit the permission error17:59:40
@matthewcroughan:defenestrate.itmatthewcroughanmaybe something isn't settling?18:00:34
@matthewcroughan:defenestrate.itmatthewcroughanchanging the FS to ext4 makes it work correctly, this is odd stuff18:02:05
@lassulus:lassul.uslassulusMaybe it has to do with the alignment changes you did?18:04:58
@matthewcroughan:defenestrate.itmatthewcroughan 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:defenestrate.itmatthewcroughan * 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:defenestrate.itmatthewcroughanAnd if I use ext4, everything is fine too.18:06:33
@matthewcroughan:defenestrate.itmatthewcroughanYeah, something about the assumptions of the diskoScript don't work on real hardware like this SD card18:21:12
@matthewcroughan:defenestrate.itmatthewcroughanI've tried two SD cards in two interfaces by now18:21:27
@matthewcroughan:defenestrate.itmatthewcroughantrying another medium18:22:46
@matthewcroughan:defenestrate.itmatthewcroughanfigured it out18:23:25
@matthewcroughan:defenestrate.itmatthewcroughan
              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:defenestrate.itmatthewcroughan it's the touch /mnt/disko-first-boot 18:23:34
@matthewcroughan:defenestrate.itmatthewcroughanworks with ext4, doesn't work with bcachefs 18:23:47
@matthewcroughan:defenestrate.itmatthewcroughanbcachefs kernel module wasn't loaded, so that happened :D18:24:21
@matthewcroughan:defenestrate.itmatthewcroughanImpurities. Impurities everywhere!18:25:12
@matthewcroughan:defenestrate.itmatthewcroughanThis 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:defenestrate.itmatthewcroughansystemd-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 arbitrarily18:27:19
@matthewcroughan:defenestrate.itmatthewcroughan
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:defenestrate.itmatthewcroughan *
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:defenestrate.itmatthewcroughan *
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:defenestrate.itmatthewcroughanI'm unable to perform a nixos-install for an arm64 target, odd19:45:59
@matthewcroughan:defenestrate.itmatthewcroughan *
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:defenestrate.itmatthewcroughan /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:defenestrate.itmatthewcroughan

[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:defenestrate.itmatthewcroughan *
[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:defenestrate.itmatthewcroughanAh, nixos-enter doesn't work unless there's a profile there first19:47:51
@blimbus:matrix.orgblimbus joined the room.23:19:36
12 Aug 2024
@brian:bmcgee.ie@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

Show newer messages


Back to Room ListRoom Version: 10