mirror of
https://github.com/troglobit/finit.git
synced 2026-10-02 05:52:48 +07:00
Renamed .conf file for udev/mdev etc. caused 'mdev -df' to start in tests. This fix closes that again since none of that is needed in our small namespaced world. Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
24 lines
642 B
Bash
Executable File
24 lines
642 B
Bash
Executable File
#!/bin/sh
|
|
|
|
set -eu
|
|
|
|
# shellcheck disable=SC2154
|
|
make -C "$top_builddir" DESTDIR="$SYSROOT" install
|
|
|
|
mkdir -p "$SYSROOT/sbin/"
|
|
cp "$top_builddir/test/src/serv" "$SYSROOT/sbin/"
|
|
|
|
# shellcheck disable=SC2154
|
|
FINITBIN="$(pwd)/$top_builddir/src/finit" DEST="$SYSROOT" make -f "$srcdir/lib/sysroot.mk"
|
|
|
|
# Drop plugins we don't need in test, only causes confusing FAIL in logs.
|
|
for plugin in tty.so urandom.so rtc.so modprobe.so; do
|
|
find "$SYSROOT" -name $plugin -delete
|
|
done
|
|
|
|
# Drop system .conf files we don't need in test, same as above
|
|
# shellcheck disable=SC2043
|
|
for conf in 10-hotplug.conf; do
|
|
find "$SYSROOT" -name $conf -delete
|
|
done
|