http://bugzilla.opensuse.org/show_bug.cgi?id=1089299 Bug ID: 1089299 Summary: backup-sysconfig fails with "disk space error" if tar was missing Classification: openSUSE Product: openSUSE Distribution Version: Leap 15.0 Hardware: Other OS: Other Status: NEW Severity: Normal Priority: P5 - None Component: Basesystem Assignee: bnc-team-screening@forge.provo.novell.com Reporter: wagner-thomas@gmx.at QA Contact: qa-bugs@suse.de Found By: --- Blocker: --- I updated from Leap 42.3 to 15.0 beta a few days ago. Since then, backup-sysconfig.service fails, claiming that the disk is full. Here is the log exert: Apr 09 00:40:37 xmpp systemd[1]: Starting Backup /etc/sysconfig directory... Apr 09 00:40:37 xmpp backup-sysconfig[29210]: ERROR!! can not backup sysconfig files Apr 09 00:40:37 xmpp backup-sysconfig[29210]: to /var/adm/backup/sysconfig. Apr 09 00:40:37 xmpp backup-sysconfig[29210]: Maybe there is not enough disk space. Apr 09 00:40:37 xmpp systemd[1]: Started Backup /etc/sysconfig directory. However, there is more than enough disk space available. # df -h /var/adm/backup/sysconfig Dateisystem Größe Benutzt Verf. Verw% Eingehängt auf /dev/vda2 18G 4,8G 14G 27% / # du -hs /etc/sysconfig/ 368K /etc/sysconfig/ Debugging reveals that tar is missing: # bash -x /usr/lib/base-scripts/backup-sysconfig + umask 022 + PATH=/sbin:/bin:/usr/sbin:/usr/bin + export PATH + '[' -f /etc/sysconfig/backup ']' + . /etc/sysconfig/backup ++ RPMDB_BACKUP_DIR=/var/adm/backup/rpmdb ++ MAX_RPMDB_BACKUPS=5 ++ RCCONFIG_BACKUP_DIR=/var/adm/backup/sysconfig ++ MAX_RCCONFIG_BACKUPS=5 + test -n /var/adm/backup/sysconfig -a -e /etc/sysconfig + mkdir -p /var/adm/backup/sysconfig + OLD_MD5= + test -e /var/adm/backup/sysconfig/sysconfig_recent_md5 ++ find /etc/sysconfig -type f -exec cat '{}' + ++ md5sum + NEW_MD5='40f6e7f166725241a55d47fcd8c1593e -' + test '' '!=' '40f6e7f166725241a55d47fcd8c1593e -' ++ date +%Y%m%d + DATESTRING=20180412 + NEWNAME=/var/adm/backup/sysconfig/sysconfig-20180412.tar.gz + NUMBER=2 + '[' -e /var/adm/backup/sysconfig/sysconfig-20180412.tar.gz ']' + tar czfp /var/adm/backup/sysconfig/sysconfig-20180412.tar.gz /etc/sysconfig + echo 'ERROR!! can not backup sysconfig files' ERROR!! can not backup sysconfig files + echo 'to /var/adm/backup/sysconfig.' to /var/adm/backup/sysconfig. + echo 'Maybe there is not enough disk space.' Maybe there is not enough disk space. + rm -f /var/adm/backup/sysconfig/sysconfig-20180412.tar.gz + exit 0 Checking the dependencies: #rpm -qf /usr/lib/base-scripts/backup-sysconfig aaa_base-extras-84.87+git20180208.8eeab90-lp150.2.1.x86_64 # rpm -q --requires aaa_base-extras /bin/sh /bin/sh /bin/sh /bin/sh /bin/sh aaa_base = 84.87+git20180208.8eeab90 config(aaa_base-extras) = 84.87+git20180208.8eeab90-lp150.2.1 fillup rpmlib(CompressedFileNames) <= 3.0.4-1 rpmlib(FileDigests) <= 4.6.0-1 rpmlib(PayloadFilesHavePrefix) <= 4.0-1 rpmlib(PayloadIsXz) <= 5.2-1 Thus, it cannot work since the dependency on tar is missing for aaa_base-extras. In most cases this bug never occurs since tar is installed on most systems. However, minimal installation for virtual machines often don't have/need tar. I propose three possible solution: a) provide a better error message of backup-sysconfig (tar is missing instead of disk-full), b) add tar to the dependency list c) use cpio if tar was missing, since cpio is already required by aaa_base -- You are receiving this mail because: You are on the CC list for the bug.