From db5eea5a79b98a2b889f15dc21a5e0b57859b86b Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Wed, 23 May 2012 03:51:48 +0200 Subject: [PATCH] readahead: disable collect/replay during system updates --- .../system-update-generator.c | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/src/system-update-generator/system-update-generator.c b/src/system-update-generator/system-update-generator.c index abda5a01..d148550e 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; } -- 2.39.5