[Bug 266802] /usr/libexec/bsdinstall/script: 3: Bad file descriptor

From: <bugzilla-noreply_at_freebsd.org>
Date: Mon, 03 Oct 2022 19:52:46 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=266802

            Bug ID: 266802
           Summary: /usr/libexec/bsdinstall/script: 3: Bad file descriptor
           Product: Base System
           Version: 13.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: conf
          Assignee: bugs@FreeBSD.org
          Reporter: andrew.cagney@gmail.com

Automated 13.1 install gets the error:

 DEBUG: dialog.subr: DIALOG_SELF_INITIALIZE=[1]
 DEBUG: f_dialog_init: ARGV=[/etc/installerconfig] GETOPTS_STDARGS=[dD:SX]
 DEBUG: f_dialog_init: SECURE=[] USE_XDIALOG=[]
 DEBUG: f_dialog_init: dialog(1) API initialized.
 DEBUG: dialog.subr: Successfully loaded.
 DEBUG: f_include: file=[/usr/share/bsdconfig/variable.subr]
 DEBUG: Began Installation at Mon Oct  3 19:41:48 UTC 2022
 /usr/libexec/bsdinstall/script: 3: Bad file descriptor

identical configuration files but using 13.0 ISO works.

The ISO is constructed using something like

cp /home/pool/FreeBSD-13.1-RELEASE-amd64-disc1.iso
/home/pool/m.freebsd-base.iso.tmp
sed -e 's;@@GATEWAY@@;192.168.234.1;' -e 's;@@POOLDIR@@;/home/pool;' -e
's;@@SOURCEDIR@@;/home/libreswan/wip-misc;' -e 's;@@LOCALDIR@@;/tmp/pool;' -e
's;@@TESTINGDIR@@;/home/libreswan/wip-misc/testi
ng;' -e 's;@@USER@@;1000;' -e 's;@@GROUP@@;107;' -e 's;@@PREFIX@@;m.;' \
        testing/libvirt/freebsd/base.conf \
        > /home/pool/m.freebsd-base.base.conf
growisofs -M /home/pool/m.freebsd-base.iso.tmp -l -R \
        -input-charset utf-8 \
        -graft-points \
        /boot/loader.conf=testing/libvirt/freebsd/loader.conf \
        /etc/installerconfig=/home/pool/m.freebsd-base.base.conf

and then booted under kvm using:

        sudo virt-install \
                --connect=qemu:///system --check=path_in_use=off
--graphics=none --virt-type=kvm --noreboot --console=pty,target_type=serial
--vcpus=4 --memory=5120  --cpu=host-passthrough --network
=network:swandefault,model=virtio --rng=type=random,device=/dev/random
--security=type=static,model=dac,label='1000:107',relabel=yes
--filesystem=target=pool,type=mount,accessmode=squash,source=/hom
e/pool \
                --name=m.freebsd-base \
                 --os-variant=freebsd13.1 \
               
--disk=path=/home/pool/m.freebsd-base.qcow2,size=10,bus=virtio,format=qcow2 \
                --cdrom=/home/pool/m.freebsd-base.iso

-- 
You are receiving this mail because:
You are the assignee for the bug.