From 5d7ee3f0c5b65cc7c417d762a648ce6c5bfdb532 Mon Sep 17 00:00:00 2001 From: "Richard W.M. Jones" Date: Tue, 23 Nov 2010 20:05:56 +0000 Subject: [PATCH] daemon: blkid cache is at a different location on Debian. Remove both possible cache locations. --- daemon/blkid.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/daemon/blkid.c b/daemon/blkid.c index 108eee6..2885a8f 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); -- 1.8.3.1