File tree Expand file tree Collapse file tree 7 files changed +58
-6
lines changed
Expand file tree Collapse file tree 7 files changed +58
-6
lines changed Original file line number Diff line number Diff line change 8383 the expected paths while gracefully skipping when no container runtime is
8484 available. The harness now shares the host cgroup namespace so systemd boots
8585 reliably on modern cgroup v2 hosts.
86+ - Maintainer scripts now confirm a live systemd control socket exists before
87+ attempting to reload units, suppressing noisy failures when packages are
88+ installed into containers or chroots without an active init system while
89+ preserving the reload behaviour on real hosts.
8690- A top-level ` Makefile ` now standardises local builds, cross-compilation for
8791 ` amd64 ` /` arm64 ` , and wraps ` nfpm ` so developers can reproducibly stage
8892 binaries in ` dist/ ` and generate ` .deb ` /` .rpm ` packages without ad-hoc
Original file line number Diff line number Diff line change 44TMPFILES_CONF=" /usr/lib/tmpfiles.d/clusterrebootd.conf"
55
66systemd_active () {
7- [ -d /run/systemd/system ] && command -v systemctl > /dev/null 2>&1
7+ if ! command -v systemctl > /dev/null 2>&1 ; then
8+ return 1
9+ fi
10+
11+ if [ ! -S /run/systemd/private ]; then
12+ return 1
13+ fi
14+
15+ return 0
816}
917
1018case " $1 " in
Original file line number Diff line number Diff line change 22set -eu
33
44systemd_active () {
5- [ -d /run/systemd/system ] && command -v systemctl > /dev/null 2>&1
5+ if ! command -v systemctl > /dev/null 2>&1 ; then
6+ return 1
7+ fi
8+
9+ if [ ! -S /run/systemd/private ]; then
10+ return 1
11+ fi
12+
13+ return 0
614}
715
816case " $1 " in
Original file line number Diff line number Diff line change 22set -eu
33
44systemd_active () {
5- [ -d /run/systemd/system ] && command -v systemctl > /dev/null 2>&1
5+ if ! command -v systemctl > /dev/null 2>&1 ; then
6+ return 1
7+ fi
8+
9+ if [ ! -S /run/systemd/private ]; then
10+ return 1
11+ fi
12+
13+ return 0
614}
715
816case " $1 " in
Original file line number Diff line number Diff line change 44TMPFILES_CONF=" /usr/lib/tmpfiles.d/clusterrebootd.conf"
55
66systemd_active () {
7- [ -d /run/systemd/system ] && command -v systemctl > /dev/null 2>&1
7+ if ! command -v systemctl > /dev/null 2>&1 ; then
8+ return 1
9+ fi
10+
11+ if [ ! -S /run/systemd/private ]; then
12+ return 1
13+ fi
14+
15+ return 0
816}
917
1018if [ " $1 " -ge 1 ]; then
Original file line number Diff line number Diff line change 22set -eu
33
44systemd_active () {
5- [ -d /run/systemd/system ] && command -v systemctl > /dev/null 2>&1
5+ if ! command -v systemctl > /dev/null 2>&1 ; then
6+ return 1
7+ fi
8+
9+ if [ ! -S /run/systemd/private ]; then
10+ return 1
11+ fi
12+
13+ return 0
614}
715
816if [ " $1 " -eq 0 ]; then
Original file line number Diff line number Diff line change 22set -eu
33
44systemd_active () {
5- [ -d /run/systemd/system ] && command -v systemctl > /dev/null 2>&1
5+ if ! command -v systemctl > /dev/null 2>&1 ; then
6+ return 1
7+ fi
8+
9+ if [ ! -S /run/systemd/private ]; then
10+ return 1
11+ fi
12+
13+ return 0
614}
715
816if [ " $1 " -eq 0 ]; then
You can’t perform that action at this time.
0 commit comments