X-Git-Url: http://git.scottworley.com/nixos-qemu-vm-isolation/blobdiff_plain/e4f516e113f01a72dc745e344ebba2fd234a21d8..a8cf2d3d03781108766570266abbd631e7f0a0ab:/modules/libblkid-squashfs-nix-store-kludge.patch diff --git a/modules/libblkid-squashfs-nix-store-kludge.patch b/modules/libblkid-squashfs-nix-store-kludge.patch new file mode 100644 index 0000000..de971f7 --- /dev/null +++ b/modules/libblkid-squashfs-nix-store-kludge.patch @@ -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; + } +