]>
Commit | Line | Data |
---|---|---|
a8cf2d3d SW |
1 | # This dubious kludge results from |
2 | # https://github.com/NixOS/nixpkgs/pull/236656 requiring filesystems to have labels and | |
3 | # https://github.com/plougher/squashfs-tools/issues/59 squashfs not supporting labels. | |
4 | diff --git a/libblkid/src/superblocks/squashfs.c b/libblkid/src/superblocks/squashfs.c | |
5 | index 4db842493..ed7465882 100644 | |
6 | --- a/libblkid/src/superblocks/squashfs.c | |
7 | +++ b/libblkid/src/superblocks/squashfs.c | |
8 | @@ -45,6 +45,11 @@ static int probe_squashfs(blkid_probe pr, const struct blkid_idmag *mag) | |
9 | ||
10 | blkid_probe_sprintf_version(pr, "%u.%u", vermaj, vermin); | |
11 | ||
12 | + { | |
13 | + char label_kludge[] = "nix-store"; | |
14 | + blkid_probe_set_label(pr, label_kludge, sizeof(label_kludge)); | |
15 | + } | |
16 | + | |
17 | return 0; | |
18 | } | |
19 |