Skip to content

Commit dfb007f

Browse files
committed
test: mask rc.local generator, broken on Jammy
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)
1 parent 1d24510 commit dfb007f

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/test-functions

+3-7
Original file line numberDiff line numberDiff line change
@@ -1927,13 +1927,9 @@ check_result_qemu_unittests() {
19271927
}
19281928

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

19391935
install_execs() {

0 commit comments

Comments
 (0)