mirror of
https://github.com/systemd/systemd-stable.git
synced 2024-12-22 13:33:56 +03:00
readahead: use Conflicts= instead of masking to get rid of readahead units
This commit is contained in:
parent
7b63bde1ed
commit
8d59c9b490
@ -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;
|
||||
}
|
||||
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user