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:
parent
c1480dae17
commit
4030d7a923
@ -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;
|
||||
|
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user