2016-07-25 14:08:53 +00:00
|
|
|
#!/bin/ash
|
2016-07-28 04:08:33 +00:00
|
|
|
echo '====================================================='
|
|
|
|
echo ' _ _ _ ____ ___ __ __ '
|
|
|
|
echo '| | | | ___ __ _ __| |___ _ | _ \ / _ \| \/ |'
|
|
|
|
echo '| |_| |/ _ \/ _` |/ _` / __| (_) | |_) | | | | |\/| |'
|
|
|
|
echo '| _ | __/ (_| | (_| \__ \ _ | _ <| |_| | | | |'
|
|
|
|
echo '|_| |_|\___|\__,_|\__,_|___/ (_) |_| \_\\___/|_| |_|'
|
|
|
|
echo ''
|
|
|
|
echo '====================================================='
|
2016-07-25 14:08:53 +00:00
|
|
|
|
|
|
|
# Mount the system directories
|
2016-07-28 04:08:33 +00:00
|
|
|
mkdir /proc /sys /dev /tmp /boot 2>/dev/null
|
|
|
|
|
2016-07-25 14:08:53 +00:00
|
|
|
mount -t proc none /proc
|
|
|
|
mount -t sysfs none /sys
|
|
|
|
mount -t devtmpfs none /dev
|
|
|
|
|
2016-07-28 04:08:33 +00:00
|
|
|
## Ensure that we load libraries from our directory
|
|
|
|
#export LD_LIBRARY_PATH=/lib64
|
|
|
|
|
2016-07-25 14:08:53 +00:00
|
|
|
# Start an interactive shell
|
2016-07-28 04:08:33 +00:00
|
|
|
echo "Run './start-xen' to load the hypervisor"
|
|
|
|
echo "Run 'kexec -e' to boot it"
|
|
|
|
echo
|
|
|
|
|
2016-07-25 14:08:53 +00:00
|
|
|
exec /bin/ash
|