Skip to content

Commit 47d6294

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
1 parent fef5122 commit 47d6294

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
@@ -1961,13 +1961,9 @@ check_result_qemu() {
19611961
}
19621962

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

19731969
install_execs() {

0 commit comments

Comments
 (0)