0
0
Fork 0
mirror of https://github.com/NixOS/nixpkgs.git synced 2025-07-14 06:00:33 +03:00

nixos/repart-image: fix btrfs images (#378579)

This commit is contained in:
nikstur 2025-02-01 18:33:38 +01:00 committed by GitHub
commit c1583334ec
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -10,6 +10,7 @@
, mypy
, systemd
, fakeroot
, util-linux
# filesystem tools
, dosfstools
@ -108,6 +109,7 @@ in
nativeBuildInputs = [
systemd
util-linux
fakeroot
] ++ lib.optionals (compression.enable) [
compressionPkg
@ -153,7 +155,7 @@ in
runHook preBuild
echo "Building image with systemd-repart..."
fakeroot systemd-repart \
unshare --map-root-user fakeroot systemd-repart \
''${systemdRepartFlags[@]} \
${imageFileBasename}.raw \
| tee repart-output.json