-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Restore squashfs support with a dubious kludge
- Loading branch information
Showing
3 changed files
with
77 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
# This dubious kludge results from | ||
# https://github.com/NixOS/nixpkgs/pull/236656 requiring filesystems to have labels and | ||
# https://github.com/plougher/squashfs-tools/issues/59 squashfs not supporting labels. | ||
diff --git a/libblkid/src/superblocks/squashfs.c b/libblkid/src/superblocks/squashfs.c | ||
index 4db842493..ed7465882 100644 | ||
--- a/libblkid/src/superblocks/squashfs.c | ||
+++ b/libblkid/src/superblocks/squashfs.c | ||
@@ -45,6 +45,11 @@ static int probe_squashfs(blkid_probe pr, const struct blkid_idmag *mag) | ||
|
||
blkid_probe_sprintf_version(pr, "%u.%u", vermaj, vermin); | ||
|
||
+ { | ||
+ char label_kludge[] = "nix-store"; | ||
+ blkid_probe_set_label(pr, label_kludge, sizeof(label_kludge)); | ||
+ } | ||
+ | ||
return 0; | ||
} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters