Project

General

Profile

Bug #13174

can't upgrade debian package if /bin/systemd exist but sysv is used

Added by tim c 9 months ago. Updated 6 months ago.

Status:
Released
Priority:
N/A
Category:
Packaging
Target version:
Severity:
Major - prevents use of part of Rudder | no simple workaround
User visibility:
Operational - other Techniques | Technique editor | Rudder settings
Effort required:
Very Small
Priority:
78

Description

Hi,

During upgrade rudder-agent.postinst check if systemd is used. Code below is the part in question :

if type systemctl > /dev/null ; then CFRUDDER_USE_SYSTEMD="true"; fi

But it's possible to have the binary /bin/systemctl and used sysv instead of systemd, specially when you have upgraded your system from debian 7 to debian 8.

Proposed solution:

pidof systemd >/dev/null 2>&1 ; then CFRUDDER_USE_SYSTEMD="true"; fi

Workaround :

mv /bin/systemctl{,.bak}
upgrade...
mv /bin/systemctl.bak /bin/systemctl

Associated revisions

Revision 8b6acc6d (diff)
Added by Alexis MOUSSET 7 months ago

Fixes #13174: can't upgrade debian package if /bin/systemd exist but sysv is used

History

#1

Updated by François ARMAND 8 months ago

  • User visibility set to Operational - other Techniques | Technique editor | Rudder settings
  • Priority changed from 0 to 51

Thanks for the proposition, it seems to be a good solution (and sorry for the delay!).

#3

Updated by Benoît PECCATTE 7 months ago

  • Effort required set to Very Small
  • Priority changed from 51 to 79
#4

Updated by Alexis MOUSSET 7 months ago

  • Status changed from New to In progress
  • Assignee set to Alexis MOUSSET
#5

Updated by Alexis MOUSSET 7 months ago

  • Status changed from In progress to Pending technical review
  • Assignee changed from Alexis MOUSSET to Benoît PECCATTE
  • Pull Request set to https://github.com/Normation/rudder-packages/pull/1693
#6

Updated by Vincent MEMBRÉ 7 months ago

  • Target version changed from 4.3.5 to 4.3.6
#7

Updated by Alexis MOUSSET 7 months ago

  • Status changed from Pending technical review to Pending release
  • Priority changed from 79 to 78
#8

Updated by Vincent MEMBRÉ 6 months ago

  • Status changed from Pending release to Released
This bug has been fixed in Rudder 4.3.6 and 5.0.2 which were released today.
Changelog
Changelog

Also available in: Atom PDF