readahead: disable collect/replay during system updates
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user