summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLennart Poettering <lennart@poettering.net>2012-05-23 03:51:48 +0200
committerLennart Poettering <lennart@poettering.net>2012-05-23 03:51:48 +0200
commitdb5eea5a79b98a2b889f15dc21a5e0b57859b86b (patch)
treebbca7f71eecca6f2a3ae6740809e9a31aa1c977a
parent08231e5142bff7ace79957835656672ac100031b (diff)
readahead: disable collect/replay during system updates
-rw-r--r--src/system-update-generator/system-update-generator.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/src/system-update-generator/system-update-generator.c b/src/system-update-generator/system-update-generator.c
index abda5a0190..d148550e7c 100644
--- a/src/system-update-generator/system-update-generator.c
+++ b/src/system-update-generator/system-update-generator.c
@@ -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;
}