On 3/31/20 11:38 AM, Renaud Allard wrote:


On 3/31/20 11:25 AM, Stuart Henderson wrote:
On 2020/03/31 11:05, Renaud Allard wrote:
Hello,

I was trying to autoinstall OpenBSD over an existing installation of linux. So I used a modified (with upobsd) bsd.rd containing an auto_install.conf.
But it seems the (MBR) partitioning line is never taken into account.
Using:
"MBR = G"
"Use (W)hole disk MBR, whole disk (G)PT or (E)dit = G"
never matches, so autoinstall is always using the default ("whole").

Pretty sure it is a "start of line" match rather than a substring match -
try "Use (W)hole = G".


Well, actually, no, if I use "your keyboard layout = be" (without the first word "Choose", it matches. Just like the man page says.

It seems all the fdisk part is arch dependent, which might explain why it doesn't match.


Actually using whatever is before the first parenthesis will match. So in this case using "Use = G" matches.

It seems the issue is parentheses in this script fu:
_autorespond() {
        typeset -l _q=$1 _key
        local _def=$2 _l _val

        [[ -f $AI_RESPFILE && -n $_q ]] || return

        mv /tmp/ai/ai.conf /tmp/ai/ai.conf.tmp
        while IFS='     ' read -r _l; do
                [[ $_l == [!#=]*=?* ]] || continue
                _key=${_l%%*([[:blank:]])=*}
                _val=${_l##*([!=])=*([[:blank:]])}
                [[ $_q == @(|*[[:blank:]])"$_key"@([[:blank:]?]*|) ]] &&
                        resp=$_val && cat && return
                print -r " $_l"
        done </tmp/ai/ai.conf.tmp >/tmp/ai/ai.conf
        [[ -n $_def ]] && resp=$_def && return
        err_exit "\nQuestion has no answer in response file: \"$_q\""
}





Attachment: smime.p7s
Description: S/MIME Cryptographic Signature

Reply via email to