1
1
mirror of https://github.com/systemd/systemd-stable.git synced 2025-01-07 17:17:44 +03:00

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 565916c245)
(cherry picked from commit dfb007ffe0)
This commit is contained in:
Luca Boccassi 2024-10-08 23:01:15 +01:00
parent 1a20768c9b
commit 85cc6a46de

View File

@ -1853,13 +1853,9 @@ strip_binaries() {
}
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() {