]> git.ipfire.org Git - thirdparty/systemd.git/commitdiff
fstab-generator: add more parameter name comments
authorLennart Poettering <lennart@poettering.net>
Fri, 23 Jun 2023 20:49:55 +0000 (22:49 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 4 Jul 2023 21:08:01 +0000 (23:08 +0200)
src/fstab-generator/fstab-generator.c

index 14a46c4c4e8254325b9f7408f322b76c5dce6ea6..cdcbb0deec8e266e954cc503fbc8127be032af06 100644 (file)
@@ -1501,7 +1501,7 @@ static int run_generator(void) {
         (void) determine_usr();
 
         if (arg_sysroot_check) {
-                r = parse_fstab(true);
+                r = parse_fstab(/* initrd= */ true);
                 if (r == 0)
                         log_debug("Nothing interesting found, not doing daemon-reload.");
                 if (r > 0)
@@ -1531,13 +1531,13 @@ static int run_generator(void) {
         /* Honour /etc/fstab only when that's enabled */
         if (arg_fstab_enabled) {
                 /* Parse the local /etc/fstab, possibly from the initrd */
-                r = parse_fstab(false);
+                r = parse_fstab(/* initrd= */ false);
                 if (r < 0 && ret >= 0)
                         ret = r;
 
                 /* If running in the initrd also parse the /etc/fstab from the host */
                 if (in_initrd())
-                        r = parse_fstab(true);
+                        r = parse_fstab(/* initrd= */ true);
                 else
                         r = generator_enable_remount_fs_service(arg_dest);
                 if (r < 0 && ret >= 0)