Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 03 Oct 2022 19:52:46 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 266802] /usr/libexec/bsdinstall/script: 3: Bad file descriptor
Message-ID:  <bug-266802-227@https.bugs.freebsd.org/bugzilla/>

next in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D266802

            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=3D[1]
 DEBUG: f_dialog_init: ARGV=3D[/etc/installerconfig] GETOPTS_STDARGS=3D[dD:=
SX]
 DEBUG: f_dialog_init: SECURE=3D[] USE_XDIALOG=3D[]
 DEBUG: f_dialog_init: dialog(1) API initialized.
 DEBUG: dialog.subr: Successfully loaded.
 DEBUG: f_include: file=3D[/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=3Dtesting/libvirt/freebsd/loader.conf \
        /etc/installerconfig=3D/home/pool/m.freebsd-base.base.conf

and then booted under kvm using:

        sudo virt-install \
                --connect=3Dqemu:///system --check=3Dpath_in_use=3Doff
--graphics=3Dnone --virt-type=3Dkvm --noreboot --console=3Dpty,target_type=
=3Dserial
--vcpus=3D4 --memory=3D5120  --cpu=3Dhost-passthrough --network
=3Dnetwork:swandefault,model=3Dvirtio --rng=3Dtype=3Drandom,device=3D/dev/r=
andom
--security=3Dtype=3Dstatic,model=3Ddac,label=3D'1000:107',relabel=3Dyes
--filesystem=3Dtarget=3Dpool,type=3Dmount,accessmode=3Dsquash,source=3D/hom
e/pool \
                --name=3Dm.freebsd-base \
                 --os-variant=3Dfreebsd13.1 \
=20=20=20=20=20=20=20=20=20=20=20=20=20=20=20
--disk=3Dpath=3D/home/pool/m.freebsd-base.qcow2,size=3D10,bus=3Dvirtio,form=
at=3Dqcow2 \
                --cdrom=3D/home/pool/m.freebsd-base.iso

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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-266802-227>