readahead: use Conflicts= instead of masking to get rid of readahead units

This commit is contained in:
Lennart Poettering 2012-05-23 04:02:56 +02:00
parent 7b63bde1ed
commit 8d59c9b490
2 changed files with 1 additions and 14 deletions

View 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;
}

View 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