Article View: muc.lists.freebsd.bugs
Article #634[Bug 301022] bsdinstall(8): add option to wipe disks for scripted installations
From: bugzilla-noreply
Date: Sun, 22 Nov 2026 22:02
Date: Sun, 22 Nov 2026 22:02
67 lines
3694 bytes
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
Technical Details
Message-ID:
<bug-301022-227@https.bugs.freebsd.org/bugzilla/>Path:
mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mailShow Full Headers
Complete Article Headers
Path: mbox-mo1.pugleaf.net!srv.newsdeef.eu!newsfeed.bofh.team!weretis.net!feeder8.news.weretis.net!3.eu.feeder.erje.net!feeder.erje.net!news2.arglkargh.de!news.karotte.org!news.muc.de!.POSTED.news.muc.de!not-for-mail From: bugzilla-noreply@freebsd.org Newsgroups: muc.lists.freebsd.bugs Subject: [Bug 301022] bsdinstall(8): add option to wipe disks for scripted installations Date: Sun, 22 Nov 2026 22:02:03 +0000 Organization: Newsgate at muc.de e.V. Approved: news-admin@muc.de Distribution: world Message-ID: <bug-301022-227@https.bugs.freebsd.org/bugzilla/> MIME-Version: 1.0 Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Injection-Info: news.muc.de; posting-host="news.muc.de:193.149.48.2"; logging-data="19504"; mail-complaints-to="news-admin@muc.de" X-Original-To: bugs@mlmmj.nyi.freebsd.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1795384923; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=Dz1yzcc1C1n70gGFdYZ5ehHPFxVCcrOjI39AJaDE9iY=; b=L7I6OzqNRoZ9Hu1LdQ1eonAeDOXDjfemorhuC/QZeMgCzWC83y+mZKmNItPICpH91y1iBI 1rIX59rGRKLSfhz3N/4LXuPWYaFVyStBJzVVHlkizhPmqZ2vWa3ombMgDpkkBcURfhcU/p pDHE9G5Ffmcyx0Y9d/mgjOYtWGz3tY4hPXGsFgz3bu1w6vXwKsgHnSrssWtY9h1foUZhJ6 e3qIdt/FM8RxgjRzUQJikGIXe59ygNYY0p6RxbQVL4ZkmKfbXGITvVIfOus1aLZKrx58qw JHExDs9zsJ8CIcPA+pnZ6HHoEl+4u9PpFtRmk7Fk82Rvt7FhM8a4P/nnuFoe0w== X-Authentication-Warning: kenobi.freebsd.org: www set sender to bugzilla-noreply@freebsd.org using -f Auto-Submitted: auto-generated Precedence: list X-Newsgate-Id: f02c70b8849f+ X-No-Archive: Yes