# vim: ft=zsh if [[ $1 == info ]]; then FSB_INFO_DEPEND=alpine_init FSB_INFO_BASE=%s FSB_INFO_DIR=%s-base return elif [[ $1 != build ]]; then die "unimplemented action: $*" fi mkdir -p $build_dir/dev || die "could not create /dev" mknod -m 666 ${build_dir}/dev/full c 1 7 || die "error populating /dev" mknod -m 666 ${build_dir}/dev/ptmx c 5 2 || die "error populating /dev" mknod -m 644 ${build_dir}/dev/random c 1 8 || die "error populating /dev" mknod -m 644 ${build_dir}/dev/urandom c 1 9 || die "error populating /dev" mknod -m 666 ${build_dir}/dev/zero c 1 5 || die "error populating /dev" mknod -m 666 ${build_dir}/dev/tty c 5 0 || die "error populating /dev" cp /etc/resolv.conf $build_dir/etc/ || die "could not copy resolv.conf" mkdir -p $build_dir/root || die "could not create /root" cp $FSB_TEMPLATE_DIR/chroot.sh $build_dir/ || die "could not copy chroot.sh"