db_subst가 작동하지 않습니다

db_subst가 작동하지 않습니다

내 질문의 기본값이 현재 사용자의 홈 디렉터리에 있기를 원합니다.

문서templates

Template: filesystem/root_path
Default: /home/${logname}/00_Files
Type: string
Description: The default directory to use when creating a new file.

문서config

#!/bin/bash

CONFIGFILE=/etc/filesystem.conf
set -e
. /usr/share/debconf/confmodule

db_subst filesystem/root_path logname "$(logname)"

# Load config file, if it exists.
if [ -e "$CONFIGFILE" ]; then
    . "$CONFIGFILE" || true

    # Store values from config file into
    # debconf db.
    db_set filesystem/root_path "$ROOT_PATH" || true
fi

# Ask questions.
db_input high filesystem/root_path || true
db_go || true

그러나 대화 상자가 생성될 때 /home/${logname}/00_Files값은 바뀌지 않습니다 .

또한 debconf의 프런트엔드를 어떻게 변경합니까?

관련 정보