case "$MODE" in
    commandline)
        add_option "prompt-rootpass" "`eval_gettext "prompt to set the root password, defaults to disabled"`" "advanced" "false"
        ;;
    configure)
        if [ -n "$option_prompt_rootpass_value" ]; then
            ROOTPASS=prompt
        fi
        ;;
    after-install)
        # Root password is empty by default, lock it
        /usr/sbin/chroot $ROOT passwd -l root
        ;;
    finalization)
        if [ "$ROOTPASS" = "prompt" ]; then
            # prompt for root password
            /usr/sbin/chroot $ROOT passwd root 2>&1
        fi
        ;;
esac
