readahead: disable collect/replay during system updates
This commit is contained in:
parent
08231e5142
commit
db5eea5a79
|
@ -60,6 +60,19 @@ static int generate_symlink(void) {
|
|||
|
||||
free(p);
|
||||
|
||||
/* Also try to disable readahead, but don't try too hard */
|
||||
p = strappend(arg_dest, "/systemd-readahead-collect.service");
|
||||
if (p) {
|
||||
symlink("/dev/null", p);
|
||||
free(p);
|
||||
}
|
||||
|
||||
p = strappend(arg_dest, "/systemd-readahead-replay.service");
|
||||
if (p) {
|
||||
symlink("/dev/null", p);
|
||||
free(p);
|
||||
}
|
||||
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue