Skip to content
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

ISO mount causes plugins to fail on filesystem package update #3355

Open
dmnks opened this issue Oct 2, 2024 · 0 comments
Open

ISO mount causes plugins to fail on filesystem package update #3355

dmnks opened this issue Oct 2, 2024 · 0 comments

Comments

@dmnks
Copy link
Contributor

dmnks commented Oct 2, 2024

Originally filed as RHEL-33726:

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

[root@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@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.

@dmnks dmnks changed the title ISO mount at /mnt causes filesystem package update to fail ISO mount causes plugins to fail on filesystem package update Oct 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
Status: Backlog
Development

No branches or pull requests

1 participant