From: Lennart Poettering Date: Wed, 23 May 2012 01:51:48 +0000 (+0200) Subject: readahead: disable collect/replay during system updates X-Git-Tag: v183~25 X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=db5eea5a79b98a2b889f15dc21a5e0b57859b86b;p=systemd readahead: disable collect/replay during system updates --- 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; }