Skip to content

Commit

Permalink
test: mask rc.local generator, broken on Jammy
Browse files Browse the repository at this point in the history
On jammy it started to fail, it's not really needed and we install
an empty stub anyway, so just mask the generator

(cherry picked from commit 565916c)
(cherry picked from commit dfb007f)
(cherry picked from commit 85cc6a4)
  • Loading branch information
bluca committed Oct 10, 2024
1 parent 6070f1e commit 8c2b721
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions test/test-functions
Original file line number Diff line number Diff line change
Expand Up @@ -1826,13 +1826,9 @@ strip_binaries() {
}

create_rc_local() {
dinfo "Create rc.local"
mkdir -p "${initdir:?}/etc/rc.d"
cat >"$initdir/etc/rc.d/rc.local" <<EOF
#!/usr/bin/env bash
exit 0
EOF
chmod 0755 "$initdir/etc/rc.d/rc.local"
dinfo "Mask rc.local generator"
mkdir -p "${initdir:?}/etc/systemd/system-generators/"
ln -s /dev/null "$initdir/etc/systemd/system-generators/systemd-rc-local-generator"
}

install_execs() {
Expand Down

0 comments on commit 8c2b721

Please sign in to comment.