4 # Quick script to build a suitable /boot dir somewhere in the tree for testing.
5 # dir may be passed in, will default to /tmp/loadertest if not specified
15 [ -n "$dir" ] || dir=/tmp/loadertest
21 mtree -deUW -f etc/mtree/BSD.root.dist -p ${dir}
22 mtree -deUW -f etc/mtree/BSD.usr.dist -p ${dir}/usr
24 make all install DESTDIR=${dir} NO_ROOT=t MK_LOADER_LUA=yes MK_FORTH=no MK_INSTALL_AS_USER=yes
25 mkdir -p ${dir}/boot/kernel
26 cp /boot/kernel/kernel ${dir}/boot/kernel