[Rpm-maint] [rpm-software-management/rpm] ISO mount at /mnt causes filesystem package update to fail (Issue #3355)

Michal Domonkos notifications at github.com
Wed Oct 2 16:01:17 UTC 2024


Originally filed as [RHEL-33726](https://issues.redhat.com/browse/RHEL-33726):

When RHEL repos are available from an ISO mount reinstalling the filesystem package shows errors:

```
[root at ima ~]# dnf reinstall filesystem
...
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: filesystem-3.16-2.el9.x86_64                          1/1 
  Preparing        :                                                       1/1 
  Reinstalling     : filesystem-3.16-2.el9.x86_64                          1/2 
error: lsetfilecon: (29 /mnt, system_u:object_r:mnt_t:s0) Read-only file system
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package filesystem-3.16-2.el9.x86_64
  Verifying        : filesystem-3.16-2.el9.x86_64                          1/2 
  Verifying        : filesystem-3.16-2.el9.x86_64                          2/2 
Installed products updated.

Failed:
  filesystem-3.16-2.el9.x86_64           filesystem-3.16-2.el9.x86_64          

Error: Transaction failed
```

This came up when preparing a system for IMA which currently requires all packages to be reinstalled, in that case with the rpm-plugin-ima package installed we see:

```
[root at ima ~]# dnf reinstall filesystem
...
Running transaction test
Transaction test succeeded.
Running transaction
  Running scriptlet: filesystem-3.16-2.el9.x86_64                          1/1 
  Preparing        :                                                       1/1 
  Reinstalling     : filesystem-3.16-2.el9.x86_64                          1/2 
error: ima: could not apply signature on '/mnt': Read-only file system
error: Plugin ima: hook fsm_file_prepare failed
error: lsetfilecon: (29 /mnt, system_u:object_r:mnt_t:s0) Read-only file system
error: Plugin selinux: hook fsm_file_prepare failed

Error unpacking rpm package filesystem-3.16-2.el9.x86_64
  Verifying        : filesystem-3.16-2.el9.x86_64                          1/2 
  Verifying        : filesystem-3.16-2.el9.x86_64                          2/2 
Installed products updated.

Failed:
  filesystem-3.16-2.el9.x86_64           filesystem-3.16-2.el9.x86_64          

Error: Transaction failed
```

Thanks.

-- 
Reply to this email directly or view it on GitHub:
https://github.com/rpm-software-management/rpm/issues/3355
You are receiving this because you are subscribed to this thread.

Message ID: <rpm-software-management/rpm/issues/3355 at github.com>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rpm.org/pipermail/rpm-maint/attachments/20241002/a2c29804/attachment.html>


More information about the Rpm-maint mailing list