Project

General

Profile

Tâche #32001

Scénario #31891: La mise à jour d'eole-common-pkg supprime le fichier /dev/log

Ne pas supprimer /dev/log si c’est déjà un lien vers la socket systemd

Added by Daniel Dehennin about 2 months ago. Updated about 1 month ago.

Status:
Fermé
Priority:
Normal
Assigned To:
Start date:
03/25/2021
Due date:
% Done:

100%

Remaining (hours):
0.0

Associated revisions

Revision 3187d035 (diff)
Added by Daniel Dehennin about 2 months ago

d/postinst: don't remove /dev/log if it a link to systemd socket

Ref: #32001

Revision 489efa63 (diff)
Added by Daniel Dehennin about 2 months ago

d/postinst: don't remove /dev/log if it a link to systemd socket

Ref: #32001

Cherry picked for EOLE 2.8.1 from commit 3187d035224d86b815ca8ddd32d7eb623a90ba38

History

#1 Updated by Daniel Dehennin about 2 months ago

  • Status changed from Nouveau to En cours
  • Assigned To set to Daniel Dehennin

#2 Updated by Daniel Dehennin about 2 months ago

  • Status changed from En cours to Résolu
  • % Done changed from 0 to 100

#3 Updated by Joël Cuissinat about 1 month ago

jojo:~/git/eole-common$ git branch -r --contains 3187d035 
  origin/dist/eole/2.8.0/master
jojo:~/git/eole-common$ git branch -r --contains 489efa63 
  origin/dist/eole/2.8.1/master

#4 Updated by Joël Cuissinat about 1 month ago

  • Status changed from Résolu to Fermé
  • Remaining (hours) set to 0.0

Test Eolebase 2.8.1

root@eolebase:~# ll /dev/log 
lrwxrwxrwx 1 root root 28 avril 16 15:15 /dev/log -> /run/systemd/journal/dev-log=
root@eolebase:~# bash -x /var/lib/dpkg/info/eole-common-pkg.postinst configure
+ set -e
+ IGCA_CERT=/usr/share/ca-certificates/menesr/igca.crt
+ MEDDE_CERT=/usr/share/ca-certificates/medde/antsv3racine.crt
+ CERTS=/usr/share/ca-certificates/menesr/igca.crt
+ CERTS_MEDDE=/usr/share/ca-certificates/medde/antsv3racine.crt
+ CA_CERT_DIR=/usr/local/share/ca-certificates
+ CERT_LINK_DIR=/usr/local/share/ca-certificates/menesr
+ CERT_LINK_DIR_MEDDE=/usr/local/share/ca-certificates/medde
+ PREF_FILE=/etc/apt/preferences.d/eole-2.4-experimental.pref
+ EOLE_LIST=/etc/apt/sources.list.d/eole.list
+ SOURCES_LIST=/etc/apt/sources.list
+ SERVICES_TO_MASK='apt-daily.timer apt-daily.service apt-daily-upgrade.timer apt-daily-upgrade.service'
+ SERVICES_V_TO_DISABLE=
+ case "$1" in
+ for cert in $CERTS
+ link_ca_cert /usr/share/ca-certificates/menesr/igca.crt /usr/local/share/ca-certificates/menesr
++ basename /usr/share/ca-certificates/menesr/igca.crt
+ CERT_LINK=/usr/local/share/ca-certificates/menesr/igca.crt
+ '[' '!' -L /usr/local/share/ca-certificates/menesr/igca.crt ']'
+ for cert in ${CERTS_MEDDE}
+ link_ca_cert /usr/share/ca-certificates/medde/antsv3racine.crt /usr/local/share/ca-certificates/medde
++ basename /usr/share/ca-certificates/medde/antsv3racine.crt
+ CERT_LINK=/usr/local/share/ca-certificates/medde/antsv3racine.crt
+ '[' '!' -L /usr/local/share/ca-certificates/medde/antsv3racine.crt ']'
++ find /usr/local/share/ca-certificates -xtype l
+ '[' -n '' ']'
+ update-ca-certificates
Updating certificates in /etc/ssl/certs...
0 added, 0 removed; done.
Running hooks in /etc/ca-certificates/update.d...
done.
+ delete_pref_file
+ '[' -f /etc/apt/preferences.d/eole-2.4-experimental.pref ']'
+ delete_old_sources_list
+ '[' -f /etc/apt/sources.list.d/eole.list ']'
+ update_inputrc
+ grep -q '^set bell-style none' /etc/inputrc
+ grep -q '^set show-all-if-ambiguous on' /etc/inputrc
+ grep -q '^set mark-symlinked-directories on' /etc/inputrc
+ purge_old_bash_completion
+ for script in apt-eole creoleget
+ '[' -f /etc/bash_completion.d/apt-eole ']'
+ for script in apt-eole creoleget
+ '[' -f /etc/bash_completion.d/creoleget ']'
+ mask_services apt-daily.timer apt-daily.service apt-daily-upgrade.timer apt-daily-upgrade.service
+ for service in ${@}
+ systemctl status apt-daily.timer
+ systemctl is-enabled apt-daily.timer
+ systemctl mask apt-daily.timer
+ for service in ${@}
+ systemctl status apt-daily.service
+ systemctl is-enabled apt-daily.service
+ systemctl mask apt-daily.service
+ for service in ${@}
+ systemctl status apt-daily-upgrade.timer
+ systemctl is-enabled apt-daily-upgrade.timer
+ systemctl mask apt-daily-upgrade.timer
+ for service in ${@}
+ systemctl status apt-daily-upgrade.service
+ systemctl is-enabled apt-daily-upgrade.service
+ systemctl mask apt-daily-upgrade.service
+ disable_systemv_services
+ disable_systemv_rsyslog
++ readlink /dev/log
+ '[' -L /dev/log -a /run/systemd/journal/dev-log '!=' /run/systemd/journal/dev-log ']'
+ systemctl disable rsyslog
+ systemctl enable rsyslog
+ '[' -d /run/systemd/system ']'
+ service systemd-journald stop
+ service systemd-journald start
+ '[' -f /etc/apt/apt.conf.d/02eoleapt ']'
+ exit 0

Also available in: Atom PDF