From e221bf0bfece127eac050d0d0214ff1c775012ea Mon Sep 17 00:00:00 2001 From: Warner Losh Date: Mon, 7 Dec 2015 04:02:34 +0000 Subject: [PATCH] imported patch dedup --- tools/tools/nanobsd/mtree-dedup.awk | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/tools/tools/nanobsd/mtree-dedup.awk b/tools/tools/nanobsd/mtree-dedup.awk index 17aa5e2d0ef5..ca0f186956ec 100755 --- a/tools/tools/nanobsd/mtree-dedup.awk +++ b/tools/tools/nanobsd/mtree-dedup.awk @@ -178,6 +178,8 @@ BEGIN { nv = "___NO__VALUE___"; while ((getline < "/dev/stdin") > 0) { + if ($1 ~ "^#") + continue; if ($1 == "/set") { for (i = 2; i <= NF; i++) { kv($i); @@ -192,6 +194,9 @@ BEGIN { process_line($1, $0); } + # Print the last set of defaults. This will carry + # over, I think, to makefs' defaults + print mtree_from_kvs("/set", defaults) for (x in tree) print tree[x]; }