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
  • Loading branch information
bluca committed Oct 9, 2024
1 parent 192a6e9 commit 565916c
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 @@ -1961,13 +1961,9 @@ check_result_qemu() {
}

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 565916c

Please sign in to comment.