Subject: | |
From: | |
Reply To: | |
Date: | Mon, 16 Oct 2017 14:37:01 +0200 |
Content-Type: | multipart/signed |
Parts/Attachments: |
|
|
Hi,
many of my systems did not upgrade from 7.3 to 7.4 with "yum update"
although yum-conf-sl7x is installed and I did run "yum clean
expire-headers". Somehow "7.3" entered /etc/yum/var/slrelease instead of
"7x". The time of this change is the time of the previous upgrade from
7.2 to 7.3.
> [root@vm483 ~]# ls -l /etc/yum/vars/slreleasever
> -rw-r--r--. 1 root root 4 26. Jan 2017 /etc/yum/vars/slreleasever
> [root@vm483 ~]# cat /etc/yum/vars/slreleasever
> 7.3
> [root@vm483 ~]# rpm -Vvl yum-conf-sl7x
> ......... /etc/yum/vars/releasever
> S.5...... /etc/yum/vars/slreleasever
> [root@vm483 ~]# grep yum-conf /var/log/yum.log*
> /var/log/yum.log:Jan 10 06:18:32 Aktualisiert: yum-conf-sl7x.noarch 7.2-4.sl7
> /var/log/yum.log:Jan 26 08:47:12 Aktualisiert: yum-conf-sl7x.noarch 7.3-4.sl7
After running "yum reinstall yum-conf-sl7x" /etc/yum/vars/slreleasever
is OK again and "yum update" did the shift to 7.4. However, after this
upgrade /etc/yum/vars/slreleasever again contains the point release –
now 7.4.
> [root@vm001 ~]# cat /etc/yum/vars/slreleasever
> 7.4
> [root@vm001 ~]# rpm -Vvl yum-conf-sl7x
> ......... /etc/yum/vars/releasever
> S.5...... /etc/yum/vars/slreleasever
How is it meant to work?
Is the preuninstall script intended?
> [root@vm483 ~]# rpm -q --scripts yum-conf-sl7x
> preuninstall scriptlet (using /bin/bash):
> ##################################################################
> # for yum-conf-7x
> # preun runs before everything else
> ##################################################################
> /usr/bin/rm -f /etc/yum/vars/slreleasever
>
>
>
> ##################################################################
> # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
> # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
> # End of yum-conf-7x scripts/triggers #
> # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
> # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # # #
> ##################################################################
> postuninstall scriptlet (using /usr/libexec/sl-release/set-slrelease.sh):
> ##################################################################
> # for yum-conf-7x
> # postun runs after all triggerin/un but not triggerpostun
> #################################################################
> [root@vm483 ~]# cat /usr/libexec/sl-release/set-slrelease.sh
> #!/bin/bash
> ########################################################################
> # If not defined, we've yum issues.
> # If no file, set to 'point release'
> # for beta this file is packaged within sl-release so this never executes
> # If yum-conf-7x is installed and we are not in beta, the file already exists
> # so there is nothing to do
> ########################################################################
> SELFCOPIES=${1:-0}
> TRIGGERCOPIES=${2:-0}
> ########################################################################
> if [[ ! -f /etc/yum/vars/slreleasever ]]; then
> if [[ ! -d /etc/yum/vars/ ]]; then
> /usr/bin/mkdir -p /etc/yum/vars/
> /usr/bin/chmod 755 /etc/yum/vars/
> fi
> echo 7.3 > /etc/yum/vars/slreleasever
> /usr/bin/chmod 644 /etc/yum/vars/slreleasever
> fi
>
> # Make sure metadata looks like we expect, so we should expire
> # any existing repomd.xml files but not necessarily the primary.sqlite
> THISFILE=$(mktemp)
> echo '#!/bin/bash' > ${THISFILE}
> echo "yum clean expire-cache" >> ${THISFILE}
> echo "rm -rf /tmp/nohup.out" >> ${THISFILE}
> echo "rm -rf ${THISFILE}" >> ${THISFILE}
> /usr/bin/chmod 755 ${THISFILE}
> (cd /tmp
> nohup ${THISFILE} &
> ) >/dev/null 2>&1
>
Ciao
Ansgar
--
Ansgar Hockmann-Stolle · Universität Osnabrück · Rechenzentrum
Albrechtstraße 28, 49076 Osnabrück, Deutschland · Raum 31/E77B
+49 541 969-2749 (fax -2470) · http://www.home.uos.de/anshockm
|
|
|