mirror of
https://github.com/libguestfs/libguestfs.git
synced 2026-03-21 22:53:37 +00:00
daemon: blkid cache is at a different location on Debian.
Remove both possible cache locations.
This commit is contained in:
@@ -38,7 +38,8 @@ get_blkid_tag (const char *device, const char *tag)
|
||||
* supposed to do this, but (a) it doesn't work and (b) that option
|
||||
* is not supported in RHEL 5.
|
||||
*/
|
||||
unlink ("/etc/blkid/blkid.tab");
|
||||
unlink ("/etc/blkid/blkid.tab"); /* Red Hat, Fedora */
|
||||
unlink ("/etc/blkid.tab"); /* Debian */
|
||||
|
||||
r = command (&out, &err,
|
||||
"blkid", "-o", "value", "-s", tag, device, NULL);
|
||||
|
||||
Reference in New Issue
Block a user