Bug ID | 1120263 |
---|---|
Summary | zypper ps should mention "reboot needed |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | Other |
OS | Other |
Status | NEW |
Severity | Enhancement |
Priority | P5 - None |
Component | libzypp |
Assignee | zypp-maintainers@forge.provo.novell.com |
Reporter | suse-beta@cboltz.de |
QA Contact | qa-bugs@suse.de |
Found By | --- |
Blocker | --- |
Please enhance zypper ps so that it mentions if a reboot is needed. I know that this is not as easy to detect as open files ;-) - but there might be a good-enough simple way to implement this: a) when installing a patch with the "reboot needed" flag, zypper should create a file /run, basically touch /run/reboot_needed (needless to say that /run is a ramdisk, so that file will be gone after a reboot) b) zypper ps should then check if that file exists, and print "reboot needed" Bonus points if the kernel %post also creates the /run/reboot_needed file ;-)