From 5db23762505974eba7a3ab2f425e11d567f254d7 Mon Sep 17 00:00:00 2001 From: Vincent Batts Date: Thu, 15 Jun 2017 11:51:26 -0500 Subject: [PATCH] keyworrd: fix block device value for `type=` Fixes: #127 Reported-by: Lennart Poettering lennart@poettering.net Signed-off-by: Vincent Batts --- keywordfunc.go | 2 +- keywords.go | 1 - 2 files changed, 1 insertion(+), 2 deletions(-) diff --git a/keywordfunc.go b/keywordfunc.go index e88fa2e..d23a26f 100644 --- a/keywordfunc.go +++ b/keywordfunc.go @@ -162,7 +162,7 @@ var ( if info.Mode()&os.ModeCharDevice != 0 { return "type=char", nil } - return "type=device", nil + return "type=block", nil } return emptyKV, nil } diff --git a/keywords.go b/keywords.go index ed121b5..527f84f 100644 --- a/keywords.go +++ b/keywords.go @@ -242,7 +242,6 @@ var ( // BsdKeywords is the set of keywords that is only in the upstream FreeBSD mtree BsdKeywords = []Keyword{ "cksum", - "device", "flags", // this one is really mostly BSD specific ... "ignore", "gid",