Bugzilla – Bug 1186775
Cannot install git package(s) with "transactional-update pkg install" command
Last modified: 2023-07-04 07:20:14 UTC
Created attachment 849900 [details] log file I tried to install git package(s) with the command "transactional-update pkg install git" but zypper failed with an error code of 107 because a package tries to write in a file on /etc, which is of course not allowed in MicroOS. I was able to workaround this by installing the package in a "transactional-update shell" env (but of course I had the same issue in zypper). I attached the transactional-update log file that contains the error.
Same with open-iscsi package, one of its dependency has issue with /etc/ld.so.conf: (1/2) Installing: libopeniscsiusr0_2_0-2.1.4-77.2.x86_64 ..........................................................................................................................................[done] Additional rpm output: /sbin/ldconfig: Warning: ignoring configuration file that cannot be opened: /etc/ld.so.conf: Permission denied /sbin/ldconfig: Can't create temporary cache file /etc/ld.so.cache.fFe7QQ: Permission denied warning: %post(libopeniscsiusr0_2_0-2.1.4-77.2.x86_64) scriptlet failed, exit status 1 Basically, all packages that try to write to /etc/ld.so.conf will have the issue.
This sounds more like a SELinux issue
Yep, anything calling ldconfig in transactional-update is broken: https://openqa.opensuse.org/tests/1770999#step/cockpit_service/10
The issue is that /etc/ inside the chroot does not have the correct label (yet). In transactional-update < 3 it was set just after creating the overlay, before any operations inside: https://github.com/openSUSE/transactional-update/blob/0a6b2b179a41394891c4db88a792c9fb6a0249d7/sbin/transactional-update.in#L1076 With transactional-update 3 (tukit), it happens only afterwards: https://github.com/openSUSE/transactional-update/blob/cce4037e3bfe632ed6f2aa78d86d79a226f9b8aa/sbin/transactional-update.in#L1058 This is fixed by PR https://github.com/openSUSE/transactional-update/pull/63 (commit "Apply SElinux context on /etc in transaction").
This is an autogenerated message for OBS integration: This bug (1186775) was mentioned in https://build.opensuse.org/request/show/899839 Factory / transactional-update
This problem has been solved with transactional-update 3.4.0. Closing as a duplicate to keep the conversation in one ticket. *** This bug has been marked as a duplicate of bug 1185625 ***
SUSE-RU-2021:2192-1: An update that has 15 recommended fixes can now be installed. Category: recommended (important) Bug References: 1173842,1177149,1182525,1182544,1183442,1183521,1183539,1183856,1184529,1185224,1185226,1185625,1185766,1186775,1186842 CVE References: JIRA References: Sources used: SUSE MicroOS 5.0 (src): transactional-update-3.4.0-3.6.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
SUSE-RU-2022:0487-1: An update that has 27 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1133891,1149131,1177149,1183521,1183539,1183856,1184529,1185224,1185226,1185625,1185766,1186213,1186775,1186842,1188110,1188322,1188648,1189728,1189807,1190383,1190574,1190788,1191475,1191945,1192078,1192242,1192302 CVE References: JIRA References: Sources used: SUSE Linux Enterprise Module for Transactional Server 15-SP3 (src): transactional-update-3.6.2-150300.3.3.1 NOTE: This line indicates an update has been released for the listed product(s). At times this might be only a partial fix. If you have questions please reach out to maintenance coordination.
openSUSE-RU-2022:0487-1: An update that has 27 recommended fixes can now be installed. Category: recommended (moderate) Bug References: 1133891,1149131,1177149,1183521,1183539,1183856,1184529,1185224,1185226,1185625,1185766,1186213,1186775,1186842,1188110,1188322,1188648,1189728,1189807,1190383,1190574,1190788,1191475,1191945,1192078,1192242,1192302 CVE References: JIRA References: Sources used: openSUSE Leap 15.3 (src): transactional-update-3.6.2-150300.3.3.1