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)
  • Loading branch information
bluca committed Oct 9, 2024
1 parent 1d24510 commit dfb007f
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 @@ -1927,13 +1927,9 @@ check_result_qemu_unittests() {
}

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 dfb007f

Please sign in to comment.