1
0
mirror of https://github.com/systemd/systemd.git synced 2025-01-21 22:04:01 +03:00

readahead: take file system root on command line

This commit is contained in:
Lennart Poettering 2010-09-24 11:12:10 +02:00
parent c1480dae17
commit 4030d7a923
2 changed files with 4 additions and 2 deletions

View File

@ -437,11 +437,12 @@ finish:
}
int main(int argc, char *argv[]) {
log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
log_parse_environment();
log_open();
if (collect("/") < 0)
if (collect(argc >= 2 ? argv[1] : "/") < 0)
return 1;
return 0;

View File

@ -201,11 +201,12 @@ finish:
}
int main(int argc, char*argv[]) {
log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
log_parse_environment();
log_open();
if (replay("/") < 0)
if (replay(argc >= 2 ? argv[1] : "/") < 0)
return 1;
return 0;