Bug 1180582 - Deny to hibernate, when multiple os are installed
Summary: Deny to hibernate, when multiple os are installed
Status: RESOLVED WORKSFORME
Alias: None
Product: openSUSE Tumbleweed
Classification: openSUSE
Component: Other (show other bugs)
Version: Current
Hardware: Other Other
: P5 - None : Major (vote)
Target Milestone: ---
Assignee: Thomas Renninger
QA Contact: E-mail List
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2021-01-05 14:15 UTC by Sławomir Lach
Modified: 2023-01-20 20:15 UTC (History)
2 users (show)

See Also:
Found By: ---
Services Priority:
Business Priority:
Blocker: ---
Marketing QA Status: ---
IT Deployment: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Sławomir Lach 2021-01-05 14:15:41 UTC
When multiple OS is installed, especially multiple Linux-based OS, there could exist wake after hibernation problem. Since more than one Linux system could use the same partition, there could been errors, when we hibernate one system, then start another, etc.
It's also visible on Windows and GNU/Linux, where GNU/Linux OSES refuses to mount NTFS FS, when Windows hibernates (or: uses fast boot). I think the same should be with other Linux oses.
But problem with Linux is more complicated, because Linux could mess up even on not-mounted systems.
Solution used by Windows (tag fs is dirty) is not quite useful, because one user could use system A, then hibernate it and (next) another user (administrator, for example) would use system B with partition from system A.

So: made UPower (?) refuse to hibernate, when another OS is installed. User could bypass this restriction by Polkit and admin should be able to configure Polkit to allow some users to hibernate system without type password, being asked for privileges, etc.
Comment 1 Chenzi Cao 2021-02-10 07:00:42 UTC
Assign to systemd team to take a look at this. Please feel free to reassign whenever necessary, thanks.
Comment 4 Ruediger Oertel 2021-02-23 12:40:34 UTC
let's try the upower maintainers ...
Comment 5 Thomas Renninger 2023-01-20 20:15:38 UTC
This has to be discussed mainline.

from upower manpage:

upower - UPower command line tool
Please send bug reports to either the distribution or the DeviceKit mailing list, see http://lists.freedesktop.org/mailman/listinfo/devkit-devel on how to subscribe.

Still these are rather fundamental changes. It sounds that there should, probably is a sane default way to go and people who know what they do still want to hibernate with lots of OSes installed on the system.