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)
  • Loading branch information
bluca committed Oct 9, 2024
1 parent 9ecee52 commit ec8b60c
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 @@ -1853,13 +1853,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 ec8b60c

Please sign in to comment.