mirror of
https://github.com/troglobit/finit.git
synced 2026-11-24 20:21:44 +00:00
test: Move test support files to separate dir and keep tests in /test
Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
4aa17a84ab
commit
7fe1189f7b
15 files changed
+62
-65
No files matched your search
Executable
+23
@@ -0,0 +1,23 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -eu
|
||||
|
||||
# It would have been nice to mount /dev as devtmpfs, but unfortunately
|
||||
# that's not possible if you're not privileged. For now tmpfs will
|
||||
# have to do.
|
||||
mount -n -t tmpfs none /dev
|
||||
|
||||
mount -t proc none /proc
|
||||
mount -t sysfs none /sys
|
||||
|
||||
mkdir -p /tmp.shadow
|
||||
mount --bind /tmp /tmp.shadow
|
||||
mount -t tmpfs none /tmp
|
||||
cp -a /tmp.shadow/* /tmp/
|
||||
|
||||
mkdir -p "$FINIT_RCSD"
|
||||
|
||||
tty=/dev/$(cat /sys/class/tty/console/active)
|
||||
mkfifo "$tty"
|
||||
|
||||
exec "$@"
|
||||
Reference in new issue
Block a user