Bug ID | 1218459 |
---|---|
Summary | rpm scriptlets left over after snasphot updates |
Classification | openSUSE |
Product | openSUSE Tumbleweed |
Version | Current |
Hardware | x86-64 |
OS | openSUSE Tumbleweed |
Status | NEW |
Severity | Normal |
Priority | P5 - None |
Component | Basesystem |
Assignee | screening-team-bugs@suse.de |
Reporter | d_werner@gmx.net |
QA Contact | qa-bugs@suse.de |
Target Milestone | --- |
Found By | --- |
Blocker | --- |
I noticed on 2 Tumbleweed systems that since middle of October 2023 rpm scriptlets remain in the /var/tmp directory. For one of the systems the oldest files are related to the update from snapshot 20231012 to snapshot 20231013 on Oct. 15: $ ll -rt /var/tmp/rpm-tmp.* |head -rw------- 1 root root 177 15. Okt 14:07 /var/tmp/rpm-tmp.xEtA52 -rw------- 1 root root 479 15. Okt 14:07 /var/tmp/rpm-tmp.EXLxob -rw------- 1 root root 311 15. Okt 14:07 /var/tmp/rpm-tmp.bjfewF -rw------- 1 root root 648 15. Okt 14:07 /var/tmp/rpm-tmp.ZDYSLb -rw------- 1 root root 179 15. Okt 14:07 /var/tmp/rpm-tmp.BYmaWt -rw------- 1 root root 176 15. Okt 14:07 /var/tmp/rpm-tmp.aXzaBF -rw------- 1 root root 311 17. Okt 16:38 /var/tmp/rpm-tmp.eX0BsI -rw------- 1 root root 638 18. Okt 19:02 /var/tmp/rpm-tmp.F05Leb -rw------- 1 root root 311 18. Okt 19:02 /var/tmp/rpm-tmp.rxs60L -rw------- 1 root root 546 18. Okt 19:02 /var/tmp/rpm-tmp.nnvrQo and new files were created also with the update from snapshot 20231225 to snapshot 20231226 on Dec. 28: $ ll -rt /var/tmp/rpm-tmp.* |tail -rw------- 1 root root 311 22. Dez 19:32 /var/tmp/rpm-tmp.WVqG89 -rw------- 1 root root 1694 22. Dez 19:32 /var/tmp/rpm-tmp.1hF4yH -rw------- 1 root root 166 22. Dez 19:33 /var/tmp/rpm-tmp.eJdGQd -rw------- 1 root root 162 23. Dez 17:30 /var/tmp/rpm-tmp.ZsqgtG -rw------- 1 root root 177 23. Dez 17:30 /var/tmp/rpm-tmp.pPVWkF -rw------- 1 root root 311 23. Dez 17:30 /var/tmp/rpm-tmp.M8ojbB -rw------- 1 root root 311 26. Dez 20:16 /var/tmp/rpm-tmp.SLRu25 -rw------- 1 root root 166 28. Dez 06:08 /var/tmp/rpm-tmp.fYFPnC -rw------- 1 root root 311 28. Dez 06:09 /var/tmp/rpm-tmp.V99rNu -rw------- 1 root root 253 28. Dez 06:09 /var/tmp/rpm-tmp.Kn51G9 I do not find a tmpfiles.d configuration which would cause removal of files in /var/tmp owned by root reaching a certain age, therefore I suspect this started with snapshot 20231013. Currently the directory contains 236 such files on this system: $ ll /var/tmp/rpm-tmp.* |wc -l 236 Seems the files are created during the posttrans step of the snapshot update with zypper dup: stat rpm-tmp.bjfewF File: rpm-tmp.bjfewF Size: 311 Blocks: 8 IO Block: 4096 regular file Device: 254,1 Inode: 662121 Links: 1 Access: (0600/-rw-------) Uid: ( 0/ root) Gid: ( 0/ root) Access: 2023-12-30 18:38:13.806666658 +0100 Modify: 2023-10-15 14:07:33.799999952 +0200 Change: 2023-10-15 14:07:33.799999952 +0200 Birth: 2023-10-15 14:07:33.796666619 +0200 fits to /var/log/zypp/history entry: # 2023-10-15 14:07:33 %posttrans(grub2-x86_64-efi-2.12~rc1-5.1.noarch) script output: # ++ cat /run/fde-tpm-helper/update # ++ uniq The number of files created during snapshot updates varies, probably depending on the updated packages and the related posttrans scriptlets. Content of the files generated on Oct 15: # cat $(ll -rt rpm-tmp.* |grep 'Oct 15' |awk '{print $9}') set -x # Migration to /usr/etc, restore just created .rpmsave for i in logrotate.d/zypp-history.lr; do test -f /etc/${i}.rpmsave && mv -v /etc/${i}.rpmsave /etc/${i} ||: done set -x if test -x /sbin/update-bootloader; then if test -f /run/update-bootloader/reinit; then rm -f -- /run/update-bootloader/reinit /run/update-bootloader/refresh if test -x /usr/libexec/grub2-instdev-fixup.pl; then /usr/libexec/grub2-instdev-fixup.pl || : fi /sbin/update-bootloader --reinit || : elif test -f /run/update-bootloader/refresh; then rm -f /run/update-bootloader/refresh /sbin/update-bootloader --refresh || : fi fi set -x # Launch the issue-generator: we have a new config file in /usr/lib/issue.d that needs to be represented if [ -x /usr/sbin/issue-generator ]; then if [ -x /usr/bin/systemd-tmpfiles ]; then /usr/bin/systemd-tmpfiles --create issue-generator.conf || : fi /usr/sbin/issue-generator || : fi set -x if test -x /sbin/update-bootloader; then if test -f /run/update-bootloader/reinit; then rm -f -- /run/update-bootloader/reinit /run/update-bootloader/refresh if test -x /usr/libexec/grub2-instdev-fixup.pl; then /usr/libexec/grub2-instdev-fixup.pl || : fi /sbin/update-bootloader --reinit || : elif test -f /run/update-bootloader/refresh; then rm -f /run/update-bootloader/refresh /sbin/update-bootloader --refresh || : fi fi if test -f /run/fde-tpm-helper/update; then /usr/libexec/fde/fde-tpm-helper "`cat /run/fde-tpm-helper/update | uniq`" || : rm -f /run/fde-tpm-helper/update fi set -x # Migration to /usr/etc, restore just created .rpmsave for i in logrotate.d/samba pam.d/samba; do test -f /etc/${i}.rpmsave && mv -v /etc/${i}.rpmsave /etc/${i} ||: doneset -x # Migration to /usr/etc, restore just created .rpmsave for i in logrotate.d/samba-winbind ; do test -f /etc/${i}.rpmsave && mv -v /etc/${i}.rpmsave /etc/${i} ||: done