# vim: ft=zsh
if [[ $1 == info ]]; then
	if ! (($+STAGE_ALPINE_S6RC_SERVICES)); then
		die "STAGE_ALPINE_S6RC_SERVICES needs to be defined"
	fi
	FSB_INFO_DEPEND=alpine_s6_init
	FSB_INFO_BASE=%s
	FSB_INFO_DIR=%s-ssh-key
	return
elif [[ $1 != build ]]; then
	die "unimplemented action: $*"
fi

fsapply $build_dir $FSB_TEMPLATE_DIR/root-ssh.fslist || \
	die "fsapply failed"