]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
systemd-analyze: support cat-config kernel/install.d
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Mar 2019 15:33:41 +0000 (16:33 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 7 Mar 2019 15:34:35 +0000 (16:34 +0100)
Extension of f1d9d36ac5958006bbd464944ef490a198d38189.

src/shared/pretty-print.c

index ce71a7ef60063acd3e32e2e612b99cd37cbb4bc9..c602e036eb55cb3adec11647786147334391d4c9 100644 (file)
@@ -244,6 +244,9 @@ static int guess_type(const char **name, bool *is_usr, bool *is_collection, cons
         if (path_equal(n, "udev/rules.d"))
                 ext = ".rules";
 
+        if (path_equal(n, "kernel/install.d"))
+                ext = ".install";
+
         if (PATH_IN_SET(n, "systemd/system-preset", "systemd/user-preset")) {
                 coll = true;
                 ext = ".preset";