mirror of
https://github.com/troglobit/finit.git
synced 2026-11-07 16:01:08 +00:00
test: Mount /tmp as tmpfs again, but copy any existing files in /tmp back into it
Signed-off-by: Jacques de Laval <jacques@de-laval.se>
This commit is contained in:
1 parent
8b680b1b14
commit
255d90cee9
2 files changed
+6
-14
No files matched your search
@@ -7,19 +7,6 @@ TEST_DIR=$(dirname "$0")/..
|
|||||||
# shellcheck source=/dev/null
|
# shellcheck source=/dev/null
|
||||||
. "$TEST_DIR/lib.sh"
|
. "$TEST_DIR/lib.sh"
|
||||||
|
|
||||||
say 'environment:'
|
|
||||||
texec env
|
|
||||||
say 'initctl:'
|
|
||||||
texec busybox-x86_64 which initctl
|
|
||||||
say 'ldd initctl:'
|
|
||||||
texec sh -c 'LD_TRACE_LOADED_OBJECTS=1 initctl'
|
|
||||||
say 'finit:'
|
|
||||||
texec busybox-x86_64 which finit
|
|
||||||
say 'ldd finit:'
|
|
||||||
texec sh -c 'LD_TRACE_LOADED_OBJECTS=1 finit'
|
|
||||||
say 'tree:'
|
|
||||||
texec find / | grep -v '^/sys' | grep -v '^/proc'
|
|
||||||
|
|
||||||
test_teardown() {
|
test_teardown() {
|
||||||
say "Test done $(date)"
|
say "Test done $(date)"
|
||||||
say "Running test teardown."
|
say "Running test teardown."
|
||||||
|
|||||||
+6
-1
@@ -16,7 +16,12 @@ mount -n -t tmpfs none /dev
|
|||||||
|
|
||||||
mount -t proc none /proc
|
mount -t proc none /proc
|
||||||
mount -t sysfs none /sys
|
mount -t sysfs none /sys
|
||||||
# mount -t tmpfs none /tmp
|
|
||||||
|
mkdir -p /tmp.shadow
|
||||||
|
mount --bind /tmp /tmp.shadow
|
||||||
|
mount -t tmpfs none /tmp
|
||||||
|
cp -a /tmp.shadow/* /tmp/
|
||||||
|
|
||||||
# mount -t tmpfs none /etc
|
# mount -t tmpfs none /etc
|
||||||
|
|
||||||
# mkdir -p /dev/pts
|
# mkdir -p /dev/pts
|
||||||
|
|||||||
Reference in new issue
Block a user