summaryrefslogtreecommitdiffstats
path: root/daemon
diff options
context:
space:
mode:
authorRichard W.M. Jones <rjones@redhat.com>2010-11-23 20:05:56 +0000
committerRichard W.M. Jones <rjones@redhat.com>2010-11-24 09:41:48 +0000
commit5d7ee3f0c5b65cc7c417d762a648ce6c5bfdb532 (patch)
treee14cb027dbf784196b7119648709dd8b4aff6804 /daemon
parentbd631df66f3eac3156e24ed8c1180d83f0f3a629 (diff)
downloadlibguestfs-5d7ee3f0c5b65cc7c417d762a648ce6c5bfdb532.tar.gz
libguestfs-5d7ee3f0c5b65cc7c417d762a648ce6c5bfdb532.tar.xz
libguestfs-5d7ee3f0c5b65cc7c417d762a648ce6c5bfdb532.zip
daemon: blkid cache is at a different location on Debian.
Remove both possible cache locations.
Diffstat (limited to 'daemon')
-rw-r--r--daemon/blkid.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/daemon/blkid.c b/daemon/blkid.c
index 108eee6f..2885a8f3 100644
--- a/daemon/blkid.c
+++ b/daemon/blkid.c
@@ -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);