Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 11 Oct 2017 04:37:54 +0000
From:      bugzilla-noreply@freebsd.org
To:        freebsd-bugs@FreeBSD.org
Subject:   [Bug 222922] bsdinstall(8) does not format efi partitions as msdosfs
Message-ID:  <bug-222922-8@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 222922
           Summary: bsdinstall(8) does not format efi partitions as
                    msdosfs
           Product: Base System
           Version: 11.1-RELEASE
          Hardware: amd64
                OS: Any
            Status: New
          Severity: Affects Some People
          Priority: ---
         Component: bin
          Assignee: freebsd-bugs@FreeBSD.org
          Reporter: trix@basement.net

Created attachment 187069
  --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D187069&action=
=3Dedit
Test script to demonstrate failure of bsdinstall(8) to format efi partition=
s as
msdosfs

bsdinstall(8) doesn't properly format partitions of type efi when using
scriptedpart.

To produce the issue:
  - Start an install (I used PXE and mfsroot, but should work booting from
install CD) on a physical or virtual host with a blank disk (no pre-existing
gpart partition tables.
  - drop to a command prompt to run bsdinstall(8)
  - define/export a PARTITIONS variable containing a disk layout that defin=
es a
GPT disk with, at least, a freebsd-boot partition, an efi partition, and a
freebsd-ufs partition
  - execute /usr/sbin/bsdinstall scriptedpart ${PARTITIONS}
    (the efi partition will show "failed")
  - execute /usr/sbin/bsdinstall mount
    (the mount_msdosfs command will fail with an invalid argument)

efi partitions should be formatted with /sbin/newfs_msdos the same way
freebsd-ufs is formatted with newfs(8).

I think the comparison at line 170 of
/usr/src/usr.sbin/bsdinstall/partedit/gpart_ops.c may be failing?

The script I tested with is attached.

--=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-222922-8>