Skip site navigation (1)Skip section navigation (2)
Date:      Wed, 04 Sep 2019 08:56:19 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 240327] bsdinstall(8): Partitioning the disk via scriptedpart always adds an EFI partition
Message-ID:  <bug-240327-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 240327
           Summary: bsdinstall(8): Partitioning the disk via scriptedpart
                    always adds an EFI partition
           Product: Base System
           Version: CURRENT
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: misc
          Assignee: bugs@FreeBSD.org
          Reporter: 0mp@FreeBSD.org

Here's a script to reproduce the issue:

```
pool=3D"${1:-"zroot"}"
dataset=3D"${2:-"bsdinstall-bug"}"

zfs create -V 1G "${pool}/${dataset}"
bsdinstall scriptedpart zvol/${pool}/${dataset} \
        {512K freebsd-boot, 100M freebsd-swap, 512MB freebsd-ufs /}
gpart show zvol/${pool}/${dataset}
```

The result of the script is the following output:

```
=3D>     40  2097072  zvol/zroot/bsdinstall-bug  GPT  (1.0G)
       40        8                             - free -  (4.0K)
       48     1024                          1  freebsd-boot  (512K)
     1072   204800                          2  freebsd-swap  (100M)
   205872   532480                          3  efi  (260M)
   738352   516080                          4  freebsd-ufs  (252M)
  1254432   842680                             - free -  (411M)
```

As you can see, the EFI partition was included automatically. Also, the UFS
partition is much smaller than requested.

Tested on FreeBSD 13.0-CURRENT r351325 GENERIC amd64.

--=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-240327-227>