| Summary: | kernel's modules' directory "/lib/modules/5.8.1-desktop-2.mga" gets deleted during the package's re-installation (causing dracut to fail) | ||
|---|---|---|---|
| Product: | Mageia | Reporter: | Shlomi Fish <shlomif> |
| Component: | RPM Packages | Assignee: | Kernel and Drivers maintainers <kernel> |
| Status: | RESOLVED FIXED | QA Contact: | |
| Severity: | major | ||
| Priority: | High | CC: | mageia, ouaurelien, pterjan |
| Version: | Cauldron | ||
| Target Milestone: | Mageia 8 | ||
| Hardware: | x86_64 | ||
| OS: | Linux | ||
| Whiteboard: | |||
| Source RPM: | kernel-5.8.1-2.mga8.src.rpm | CVE: | |
| Status comment: | |||
|
Description
Shlomi Fish
2020-08-13 10:23:06 CEST
Thanks for reporting this. Assigning to Kernel and Drivers maintainers. Seems to exist since kernel 5.8.0. Assignee:
bugsquad =>
kernel
Aurelien Oudelet
2020-08-13 11:10:55 CEST
Severity:
normal =>
major This is likely similar to https://bugzilla.redhat.com/show_bug.cgi?id=1200302 From redaing that bug it seems dnf reinstall asks rpm to do a reinstall operation rather than a remove + install, and this breaks some scriptlets with no generic way to fix them as rpm doesn't expose that properly to the scriptlets. I have failed to find documentation of what reinstall does at rpm level so I could not confirm if this is still true or if there is now a way to handle it properly. It seems all packages using conditionals on $1 in scriptlets will need to be reviewed before it is safe to use dnf reinstall on them. CC:
(none) =>
pterjan Actually even if they don't use such conditional, there is no way when preun gets called to know if the current version will stay (reinstall) or be deleted (update). While discussing on irc some idea came up, in postun files from the package would be already gone in the case of an upgrade and still there in case of reinstall, so we could check that. This doesn't work for preun but would help here. I have committed something in svn which should make it safer. (In reply to Martin Whitaker from comment #4) > Looks to be a duplicate of bug 26439 (also reported by Shlomi). I do think the same.(In reply to Pascal Terjan from comment #6) > I have committed something in svn which should make it safer. Status of the latter? Priority:
release_blocker =>
High
Thomas Backlund
2020-12-13 13:57:03 CET
Summary:
kernel's modules' directory "/lib/modules/5.8.1-desktop-2.mga" gets deleted during the package's installation (causing dracut to fail) =>
kernel's modules' directory "/lib/modules/5.8.1-desktop-2.mga" gets deleted during the package's re-installation (causing dracut to fail) fixed Status:
NEW =>
RESOLVED |