]> err.no Git - systemd/commitdiff
readahead: disable collect/replay during system updates
authorLennart Poettering <lennart@poettering.net>
Wed, 23 May 2012 01:51:48 +0000 (03:51 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 23 May 2012 01:51:48 +0000 (03:51 +0200)
src/system-update-generator/system-update-generator.c

index abda5a0190e836892a2f995c5f2776019d67f4ec..d148550e7c93c14a3a61eb86eb54ceb627bc7610 100644 (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;
 }