!oNSIfazDqEcwhcOjSL:matrix.org

disko

353 Members
disko - declarative disk partitioning - https://github.com/nix-community/disko87 Servers

Load older messages


SenderMessageTime
6 May 2024
@lassulus:lassul.uslassulus * manually mounting doesn't matter13:33:33
@perchun:matrix.orgPerchun Pakthen i am good, thanks for your help13:33:45
9 May 2024
@shlevy:matrix.orgshlevyIs there a way to define an lv that takes up everything left of the VG? Or do I have to specify an absolute size (setting size = 100% failed)15:44:02
@shlevy:matrix.orgshlevy Ah it looks like I want 100%FREE 16:03:03
@lassulus:lassul.uslassulusAh vg. Yes it is sadly a bit different between partitions and lvms16:31:00
@lassulus:lassul.uslassulusWould probably be nice to have it in a homogenized interface16:31:44
14 May 2024
@azahi:azahi.ccazahi joined the room.10:30:39
15 May 2024
@lassulus:lassul.uslassulus changed their profile picture.19:30:55
16 May 2024
@nhnn:nhnn.devnhnn joined the room.07:57:38
@nhnn:nhnn.devnhnnI'm a bit confused about mechanism of https://github.com/nix-community/disko/blob/master/docs/disko-images.md. Can I create partitions and drop some files on them using disko? I don't want to install NixOS on raw disk.07:58:52
@lassulus:lassul.uslassulusThat creates an image file with a disko defined partition layout and some extra files you pass to it08:17:06
@nhnn:nhnn.devnhnn
In reply to@lassulus:lassul.us
That creates an image file with a disko defined partition layout and some extra files you pass to it
It just spins up NixOS VM and creates partitions inside?
08:18:32
@lassulus:lassul.uslassulusYes08:19:34
@nhnn:nhnn.devnhnnGot it, thanks.08:20:26
17 May 2024
@matthewcroughan:defenestrate.itmatthewcroughanhehe19:50:50
@matthewcroughan:defenestrate.itmatthewcroughan
 nix build .#nixosConfigurations.pi.config.system.build.image
warning: Git tree '/home/matthew/git/nix.how/clients/machines' is dirty
trace: warning: system.stateVersion is not set, defaulting to 24.05. Read why this matters on https://nixos.org/manual/nixos/stable/options.html#opt-system.stateVersion.
error: builder for '/nix/store/7mlf74xlxwhy4jq4rvbnjazpx5kd8bpl-image.drv' failed with exit code 1;
       last 7 log lines:
       > structuredAttrs is enabled
       > Running phase: patchPhase
       > 'repart.d' -> '/build/amended-repart.d'
       > Running phase: updateAutotoolsGnuConfigScriptsPhase
       > Running phase: buildPhase
       > Building image with systemd-repart...
       > unshare: unshare failed: Invalid argument
       For full logs, run 'nix log /nix/store/7mlf74xlxwhy4jq4rvbnjazpx5kd8bpl-image.drv'.
19:50:52
@matthewcroughan:defenestrate.itmatthewcroughanbullish for disko, repart doesn't work in the binfmt emulated context19:51:01
@matthewcroughan:defenestrate.itmatthewcroughan * bullish for disko, systemd-repart doesn't work in the binfmt emulated context19:51:13
@matthewcroughan:defenestrate.itmatthewcroughanhttps://github.com/NixOS/nixpkgs/issues/31197819:51:53
18 May 2024
@matthewcroughan:defenestrate.itmatthewcroughan

The way I see it there are only two problems remaining with disko:

  1. no compression for diskImages output
  2. no hostPlatform recognition (build on hostPlatform vm and run binfmt inside of that accelerated kvm machine)
00:09:50
@matthewcroughan:defenestrate.itmatthewcroughan2 is a bit of an architectural issue that I looked into earlier, the way disko and even vmTools are constructed, doesn't easily allow you to fix that 00:10:31
@matthewcroughan:defenestrate.itmatthewcroughanatm vmTools will fall back to tcg, and basically hang, never completing the build00:11:20
@matthewcroughan:defenestrate.itmatthewcroughaninstead, vmTools should execute a VM for the hostplatform, with binfmt enabled. But vmTools is so minimal that putting binfmt in there wouldn't re-use the nixpkgs machinery (boot.binfmt.emulatedSystems)00:12:05
@matthewcroughan:defenestrate.itmatthewcroughan * instead, vmTools should execute a VM for the hostPlatform, with binfmt enabled, and run all the scripts for arm64, But vmTools is so minimal that putting binfmt in there wouldn't re-use the nixpkgs machinery (boot.binfmt.emulatedSystems)00:12:22
@matthewcroughan:defenestrate.itmatthewcroughanThe use case is building a raspberry pi image, of course :D 00:12:34
@matthewcroughan:defenestrate.itmatthewcroughanx86 kvm -> nested arm64 binfmt, is much much much faster than arm64 -> arm64 , which is what currently happens00:15:07
@matthewcroughan:defenestrate.itmatthewcroughan *

The way I see it there are only two problems remaining with disko:

  1. no compression for diskImages output
  2. no hostPlatform recognition (build on hostPlatform vm and run binfmt for arm64 inside of that accelerated kvm machine)
00:15:32
@matthewcroughan:defenestrate.itmatthewcroughanPRs welcome, I know.. but it's really quite difficult to re-imagine the make-disk-image function and vmTools with hostPlatform conditions00:16:28
@matthewcroughan:defenestrate.itmatthewcroughan * x86 kvm -> nested arm64 binfmt, is much much much faster than arm64 binfmt -> arm64 tcg vm , which is what currently happens if you try to build an arm64 disk image on x86 00:17:12
@matthewcroughan:defenestrate.itmatthewcroughan * x86 kvm -> nested arm64 binfmt, is much much much faster than arm64 binfmt -> arm64 tcg vm , which is what currently happens if you try to build an arm64 disk image on an x86 host00:17:23

There are no newer messages yet.


Back to Room ListRoom Version: 10