Skip to content

Commit 8c2b721

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) (cherry picked from commit dfb007f) (cherry picked from commit 85cc6a4)
1 parent 6070f1e commit 8c2b721

File tree

1 file changed

+3
-7
lines changed

1 file changed

+3
-7
lines changed

test/test-functions

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1826,13 +1826,9 @@ strip_binaries() {
18261826
}
18271827

18281828
create_rc_local() {
1829-
dinfo "Create rc.local"
1830-
mkdir -p "${initdir:?}/etc/rc.d"
1831-
cat >"$initdir/etc/rc.d/rc.local" <<EOF
1832-
#!/usr/bin/env bash
1833-
exit 0
1834-
EOF
1835-
chmod 0755 "$initdir/etc/rc.d/rc.local"
1829+
dinfo "Mask rc.local generator"
1830+
mkdir -p "${initdir:?}/etc/systemd/system-generators/"
1831+
ln -s /dev/null "$initdir/etc/systemd/system-generators/systemd-rc-local-generator"
18361832
}
18371833

18381834
install_execs() {

0 commit comments

Comments
 (0)