Skip to content

Bz1298355 #66

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 2 commits into from
Dec 9, 2016
Merged

Bz1298355 #66

merged 2 commits into from
Dec 9, 2016

Conversation

lnykryn
Copy link
Owner

@lnykryn lnykryn commented Nov 10, 2016

No description provided.

frankheckenbach and others added 2 commits November 10, 2016 11:49
fix issue #2930
Cherry-picked from: a11fe93
Resolves: #1298355
When shutting down the system, the swap devices can be disabled long
time before the swap target is stopped. They're actually the first
units systemd turns off on my system.

This is incorrect and due to swap devices having multiple associated
swap unit files. The main one is usually created by the fstab
generator and is used to start the swap device.

Once done, systemd creates some 'alias' units for the same swap
device, one for each swap dev link. But those units are missing an
ordering dependencies which was created by the fstab generator for the
main swap unit.

Therefore during shutdown those 'alias' units can be stopped at
anytime before unmount.target target.

This patch makes sure that all swap units are stopped after the
swap.target target.

Cherry-picked from: 8bf23dc
Resolves: #1298355
@jsynacek
Copy link
Collaborator

LGTM.

@lnykryn lnykryn merged commit 4fec67c into staging Dec 9, 2016
@lnykryn lnykryn deleted the bz1298355 branch December 4, 2018 13:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants