Commit 4030d7a9 authored by Lennart Poettering's avatar Lennart Poettering

readahead: take file system root on command line

parent c1480dae
...@@ -437,11 +437,12 @@ finish: ...@@ -437,11 +437,12 @@ finish:
} }
int main(int argc, char *argv[]) { int main(int argc, char *argv[]) {
log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
log_parse_environment(); log_parse_environment();
log_open(); log_open();
if (collect("/") < 0) if (collect(argc >= 2 ? argv[1] : "/") < 0)
return 1; return 1;
return 0; return 0;
......
...@@ -201,11 +201,12 @@ finish: ...@@ -201,11 +201,12 @@ finish:
} }
int main(int argc, char*argv[]) { int main(int argc, char*argv[]) {
log_set_target(LOG_TARGET_SYSLOG_OR_KMSG); log_set_target(LOG_TARGET_SYSLOG_OR_KMSG);
log_parse_environment(); log_parse_environment();
log_open(); log_open();
if (replay("/") < 0) if (replay(argc >= 2 ? argv[1] : "/") < 0)
return 1; return 1;
return 0; return 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment