#1129078 puppet-agent: autopkgtest fails with systemd v260

#1129078#5
Date:
2026-02-26 16:19:35 UTC
From:
To:
Dear Maintainer(s),

The test spec-service-systemd autopkgtest fails with systemd 260 which
dropped support for sysv scripts:

246s   19) Command "puppet apply --debug --detailed-exitcodes -e
"service { 'dep8-sysv-only' : ensure => stopped, enable => false,
provider => 'systemd' }"" exit_status is expected to eq 2
246s       Failure/Error: its(:exit_status) { should eq 2 }
246s
246s         expected: 2
246s              got: 0
246s
246s         (compared using ==)
246s
246s       # ./spec/service-systemd/systemd_spec.rb:42:in `block (4
levels) in <top (required)>'
246s
246s   20) Command "systemctl is-enabled dep8-sysv-only" stdout is
expected to match /^disabled/
246s       Failure/Error: its(:stdout) { should match /^disabled/ }
246s         expected "not-found\n" to match /^disabled/
246s         Diff:
246s         @@ -1 +1 @@
246s         -/^disabled/
246s         +not-found
246s         /bin/sh -c systemctl\ is-enabled\ dep8-sysv-only
246s         not-found

https://ci.debian.net/packages/p/puppet-agent/testing/amd64/68983304/#S14

Please adjust the test so that it doesn't check expect sysv scripts to
work under systemd without a unit file. Thanks!

#1129078#10
Date:
2026-02-27 00:21:25 UTC
From:
To:
Control: tags -1 patch

MR with fix for autopkgtest:

https://salsa.debian.org/puppet-team/puppet-agent/-/merge_requests/3