🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: muc.lists.freebsd.bugs
2 messages
2 total messages Started by bugzilla-noreply Sun, 22 Nov 2026 22:02
[Bug 301022] bsdinstall(8): add option to wipe disks for scripted installations
#634
Author: bugzilla-noreply
Date: Sun, 22 Nov 2026 22:02
67 lines
3694 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301022

            Bug ID: 301022
           Summary: bsdinstall(8): add option to wipe disks for scripted
                    installations
           Product: Base System
           Version: 15.1-RELEASE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Many People
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: vermaden@interia.pl

Hi,

as suggested here:
- https://github.com/freebsd/freebsd-src/pull/2541#issuecomment-7068868169

I am creating new ticket for potential automatic wiping of disks for
automated/scripted installation.

See Also:
- https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=300044

Example 'wiping' implementations:
- https://github.com/vermaden/scripts/blob/master/storage-wipe-clean-end.sh
-
https://codeberg.org/ngie/freebsd-powertools/src/branch/main/shell/wipe-gpt-partitions.sh

Potential variable name for that purpose:
- ZFSBOOT_WIPE_DISKS=YES

It should at least clear these:

- partition table/schema:
  # gpart destroy -F ${DEV}

- ZFS labels:
  # zpool labelclear -f ${DEV}"

- leftovers:
  # dd bs=1m count=20 if=/dev/zero of=${DEV}
  # DISKINFO=$( diskinfo -v ${DEV} )
  # MED_SIZE=$( echo "${DISKINFO}" | awk '/# mediasize in sectors/ {print $1}'
)
  # SEC_SIZE=$( echo "${DISKINFO}" | awk '/# sectorsize/           {print $1}'
)
  # DD_OSEEK=$(( ${MED_SIZE} - ( ${SEC_SIZE} * 40 ) ))
  # dd bs=${SEC_SIZE} if=/dev/zero of=${DEV} oseek=${DD_OSEEK}

Regards,
vermaden

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

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
[Bug 301022] bsdinstall(8): add option to wipe disks for scripted installations
#638
Author: bugzilla-noreply
Date: Mon, 23 Nov 2026 00:46
16 lines
2518 bytes
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=301022

Mark Linimon <linimon@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
           Assignee|bugs@FreeBSD.org            |sysinstall@FreeBSD.org

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

--
Posted automagically by a mail2news gateway at muc.de e.V.
Please direct questions, flames, donations, etc. to news-admin@muc.de
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads