readahead: disable collect/replay during system updates

This commit is contained in:
Lennart Poettering 2012-05-23 03:51:48 +02:00
parent 08231e5142
commit db5eea5a79

View file

@ -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;
}