mirror of
https://github.com/systemd/systemd.git
synced 2025-02-04 21:47:31 +03:00
fsck: be verbose when skipping fsck due to missing AC
This commit is contained in:
parent
3d20ed6d51
commit
3e33a44a01
@ -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";
|
||||
|
Loading…
x
Reference in New Issue
Block a user