nixpkgs/test/boot-stage-1-init.sh
Eelco Dolstra 2d31e1b6d6 * A minimal boot script for stage 1 of the boot (loading kernel
modules).  The closure of the boot script is all we need in the
  initrd.

svn path=/nixu/trunk/; revision=6929
2006-11-02 22:48:01 +00:00

18 lines
197 B
Bash

#! @shell@
# Print a greeting.
cat <<EOF
<<< NixOS Stage 1 >>>
EOF
# Set the PATH.
export PATH=/empty
for i in @path@; do
PATH=$PATH:$i/bin
done
# Start an interactive shell.
exec @shell@