chiark / gitweb /
readahead: use Conflicts= instead of masking to get rid of readahead units
authorLennart Poettering <lennart@poettering.net>
Wed, 23 May 2012 02:02:56 +0000 (04:02 +0200)
committerLennart Poettering <lennart@poettering.net>
Wed, 23 May 2012 02:02:56 +0000 (04:02 +0200)
src/system-update-generator/system-update-generator.c
units/system-update.target

index d148550..abda5a0 100644 (file)
@@ -60,19 +60,6 @@ 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;
 }
 
index 5f63879..381f3f9 100644 (file)
@@ -10,7 +10,7 @@ Description=System Update
 Documentation=http://freedesktop.org/wiki/Software/systemd/SystemUpdates
 Documentation=man:systemd.special(7)
 Requires=sysinit.target
-Conflicts=shutdown.target
+Conflicts=shutdown.target systemd-readahead-collect.service systemd-readahead-replay.service
 After=sysinit.target
 Before=shutdown.target
 AllowIsolate=yes