#!/bin/sh

# Create a data area
mkdir -p /boot/stap/data

# Use tmpfs to collect data, since root is still readonly
mount -n -t tmpfs -o size=10M none /boot/stap/data

# Start systemtap daemon & probe
/usr/libexec/systemtap/stpd \
   -r \
   /boot/stap/initprocs.ko \
   > /boot/stap/data/initprocs.log &

# Give daemon time to start collecting...
sleep 3

# Hand off to real init
exec /sbin/init
