mirror of
https://github.com/systemd/systemd.git
synced 2025-03-31 14:50:15 +03:00
swap: properly enter maintenance mode on failure
This commit is contained in:
parent
69dd2852bb
commit
76143638fd
@ -400,7 +400,7 @@ static void swap_dump(Unit *u, FILE *f, const char *prefix) {
|
||||
static void swap_enter_dead(Swap *s, bool success) {
|
||||
assert(s);
|
||||
|
||||
swap_set_state(s, success ? SWAP_MAINTENANCE : SWAP_DEAD);
|
||||
swap_set_state(s, success ? SWAP_DEAD : SWAP_MAINTENANCE);
|
||||
}
|
||||
|
||||
static int swap_start(Unit *u) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user