summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSimon Rettberg2014-02-09 19:09:12 +0100
committerSimon Rettberg2014-02-09 19:09:12 +0100
commitbbff6d544ffd8d631bf119c297dda75bb757ead3 (patch)
treebbf966cffa4881245874cf9376c65fc11d5375f3
parent[rfs-stage31] Some benchmarking/profiling features (diff)
downloadtm-scripts-bbff6d544ffd8d631bf119c297dda75bb757ead3.tar.gz
tm-scripts-bbff6d544ffd8d631bf119c297dda75bb757ead3.tar.xz
tm-scripts-bbff6d544ffd8d631bf119c297dda75bb757ead3.zip
[rfs-stage31] Last benchmark event moved before umount
-rwxr-xr-xremote/rootfs/rootfs-stage31/data/init4
1 files changed, 3 insertions, 1 deletions
diff --git a/remote/rootfs/rootfs-stage31/data/init b/remote/rootfs/rootfs-stage31/data/init
index b542a715..95495684 100755
--- a/remote/rootfs/rootfs-stage31/data/init
+++ b/remote/rootfs/rootfs-stage31/data/init
@@ -115,13 +115,15 @@ fi
# one last debug shell if activated
[ $DEBUG -ge 1 ] && drop_shell "Requested Debug Shell: before switch_root."
+# need /proc for this ;)
+bench_event "PRESWITCH" "Switching to stage 3.2"
+
# unmount filesystems
for mnt in proc sys run ; do
busybox umount -f -l "/$mnt" 2>/dev/null
done
echo "Switching root...."
-bench_event "PRESWITCH" "Switching to stage 3.2"
echo "$bench_result" > "${FUTURE_ROOT}/opt/openslx/.benchmark"
# Prepare environment (HOME is needed as a hack for nss_ldap with ssl and no caching)
unset BOOT_IMAGE initrd KCL ip slxbase slxsrv IPINFO vga ip MAC BOOTIF DEBUG OLDPWD