heads/initrd/init

27 lines
817 B
Plaintext
Raw Normal View History

2016-07-25 14:08:53 +00:00
#!/bin/ash
echo '====================================================='
echo ' _ _ _ ____ ___ __ __ '
echo '| | | | ___ __ _ __| |___ _ | _ \ / _ \| \/ |'
echo '| |_| |/ _ \/ _` |/ _` / __| (_) | |_) | | | | |\/| |'
echo '| _ | __/ (_| | (_| \__ \ _ | _ <| |_| | | | |'
echo '|_| |_|\___|\__,_|\__,_|___/ (_) |_| \_\\___/|_| |_|'
echo ''
echo '====================================================='
2016-07-25 14:08:53 +00:00
# Mount the system directories
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
## 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
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