summaryrefslogtreecommitdiff
path: root/src/system-update-generator/system-update-generator.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/system-update-generator/system-update-generator.c')
-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;
}