1
0

Compare commits

..

1 Commits

Author SHA1 Message Date
Flake Update Bot
987200902c Update nixpkgs 2025-09-14-01-03 2025-09-14 03:04:51 +02:00
3 changed files with 3 additions and 7 deletions

6
flake.lock generated
View File

@@ -666,11 +666,11 @@
}, },
"nixpkgs_5": { "nixpkgs_5": {
"locked": { "locked": {
"lastModified": 1753549186, "lastModified": 1757745802,
"narHash": "sha256-Znl7rzuxKg/Mdm6AhimcKynM7V3YeNDIcLjBuoBcmNs=", "narHash": "sha256-hLEO2TPj55KcUFUU1vgtHE9UEIOjRcH/4QbmfHNF820=",
"owner": "NixOS", "owner": "NixOS",
"repo": "nixpkgs", "repo": "nixpkgs",
"rev": "17f6bd177404d6d43017595c5264756764444ab8", "rev": "c23193b943c6c689d70ee98ce3128239ed9e32d1",
"type": "github" "type": "github"
}, },
"original": { "original": {

View File

@@ -10,7 +10,6 @@ writeShellApplication {
text = builtins.readFile ./grow-last-partition-and-filesystem.sh; text = builtins.readFile ./grow-last-partition-and-filesystem.sh;
runtimeInputs = [ runtimeInputs = [
e2fsprogs e2fsprogs
gptfdisk
jq jq
parted parted
]; ];

View File

@@ -11,9 +11,6 @@ fi
DEVICE="$1" DEVICE="$1"
echo "Move GTP backup header to end of disk"
sgdisk "${DEVICE}" --move-second-header
PARTITIONDATA="$(parted --script --json --fix "${DEVICE}" print)" PARTITIONDATA="$(parted --script --json --fix "${DEVICE}" print)"
PARTNUMBER="$(echo "${PARTITIONDATA}" | jq -r '.disk.partitions | last | .number')" PARTNUMBER="$(echo "${PARTITIONDATA}" | jq -r '.disk.partitions | last | .number')"
PARTNAME="$(echo "${PARTITIONDATA}" | jq -r '.disk.partitions | last | .name')" PARTNAME="$(echo "${PARTITIONDATA}" | jq -r '.disk.partitions | last | .name')"