]> err.no Git - systemd/commitdiff
fsck: be verbose when skipping fsck due to missing AC
authorLennart Poettering <lennart@poettering.net>
Tue, 19 Oct 2010 19:22:47 +0000 (21:22 +0200)
committerLennart Poettering <lennart@poettering.net>
Tue, 19 Oct 2010 19:22:47 +0000 (21:22 +0200)
src/fsck.c

index 0b0cf640360965d8d105c220cfa8795e5f10a094..702f22c95defa5d37b21833e2f779aad002033f5 100644 (file)
@@ -154,8 +154,10 @@ int main(int argc, char *argv[]) {
                         return 0;
 
                 /* FIXME: only execute necessary fsck's if no AC power present */
-                if (on_ac_power() == 0)
+                if (on_ac_power() == 0) {
+                        log_info("Running on battery power, skipping file system check.");
                         return 0;
+                }
         }
 
         cmdline[i++] = "/sbin/fsck";