]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fstab-generator: move debug lines to a better place
authorZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 20 Dec 2018 11:01:16 +0000 (12:01 +0100)
committerZbigniew Jędrzejewski-Szmek <zbyszek@in.waw.pl>
Thu, 3 Jan 2019 14:30:25 +0000 (15:30 +0100)
src/fstab-generator/fstab-generator.c

index 55a8242fcfc40d90321b2eb5343fe6b727455854..7c847e3d617821e9f37562f03a363337717fb0d6 100644 (file)
@@ -518,6 +518,8 @@ static int parse_fstab(bool initrd) {
         int r = 0;
 
         fstab_path = initrd ? "/sysroot/etc/fstab" : "/etc/fstab";
+        log_debug("Parsing %s...", fstab_path);
+
         f = setmntent(fstab_path, "re");
         if (!f) {
                 if (errno == ENOENT)
@@ -899,8 +901,6 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
         if (arg_fstab_enabled) {
                 int k;
 
-                log_debug("Parsing /etc/fstab");
-
                 /* Parse the local /etc/fstab, possibly from the initrd */
                 k = parse_fstab(false);
                 if (k < 0)
@@ -908,8 +908,6 @@ static int run(const char *dest, const char *dest_early, const char *dest_late)
 
                 /* If running in the initrd also parse the /etc/fstab from the host */
                 if (in_initrd()) {
-                        log_debug("Parsing /sysroot/etc/fstab");
-
                         k = parse_fstab(true);
                         if (k < 0)
                                 r = k;