mirror of
https://github.com/NixOS/nixpkgs.git
synced 2025-06-12 04:35:41 +03:00
nixos/repart-image: fix btrfs images
This commit is contained in:
parent
9f1fb56dac
commit
c613b0e446
1 changed files with 3 additions and 1 deletions
|
@ -10,6 +10,7 @@
|
||||||
, mypy
|
, mypy
|
||||||
, systemd
|
, systemd
|
||||||
, fakeroot
|
, fakeroot
|
||||||
|
, util-linux
|
||||||
|
|
||||||
# filesystem tools
|
# filesystem tools
|
||||||
, dosfstools
|
, dosfstools
|
||||||
|
@ -108,6 +109,7 @@ in
|
||||||
|
|
||||||
nativeBuildInputs = [
|
nativeBuildInputs = [
|
||||||
systemd
|
systemd
|
||||||
|
util-linux
|
||||||
fakeroot
|
fakeroot
|
||||||
] ++ lib.optionals (compression.enable) [
|
] ++ lib.optionals (compression.enable) [
|
||||||
compressionPkg
|
compressionPkg
|
||||||
|
@ -153,7 +155,7 @@ in
|
||||||
runHook preBuild
|
runHook preBuild
|
||||||
|
|
||||||
echo "Building image with systemd-repart..."
|
echo "Building image with systemd-repart..."
|
||||||
fakeroot systemd-repart \
|
unshare --map-root-user fakeroot systemd-repart \
|
||||||
''${systemdRepartFlags[@]} \
|
''${systemdRepartFlags[@]} \
|
||||||
${imageFileBasename}.raw \
|
${imageFileBasename}.raw \
|
||||||
| tee repart-output.json
|
| tee repart-output.json
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue