NetBSD Problem Report #56685

From  Thu Feb  3 17:06:21 2022
Return-Path: <>
Received: from ( [])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "", Issuer " CA" (not verified))
	by (Postfix) with ESMTPS id 089CB1A9239
	for <>; Thu,  3 Feb 2022 17:06:21 +0000 (UTC)
Message-Id: <>
Date: Thu,  3 Feb 2022 17:06:19 +0000 (UTC)
Subject: new solution for running netbsd on zfs filesystem
X-Send-Pr-Version: www-1.0

>Number:         56685
>Category:       misc
>Synopsis:       new solution for running netbsd on zfs filesystem
>Confidential:   no
>Severity:       non-critical
>Priority:       medium
>Responsible:    misc-bug-people
>State:          open
>Class:          support
>Submitter-Id:   net
>Arrival-Date:   Thu Feb 03 17:10:00 +0000 2022
>Originator:     sergio lenzi
>Release:        9.2_STABLE, HEAD
k1 systems
NetBSD sala.lenzicasa 9.2_STABLE NetBSD 9.2_STABLE (LZT64) #1: Sun Jan 23 20:16:19 -03 2022  NetBSD@VMS.lenzicasa:/home/NetBSD/BUILD/9/amd64/OBJ/sys/arch/amd64/compile/GENERIC amd64
here is a solution for running NetBSD amd64 on zfs filesystem.
The system boots on a very small ufs2 root partition (no usr, no var) and
then jumps into the zfs filesystem without the use of a ramdisk.
it consists of an installer, that must be run from an already running NetBSD (can be a live FS)... that partition the disk, using gpt, installs the base system, and a new rc.d entry: zpool that during the boot phase, activate the zfs datasets...  on exit the boot runs normally and the result is the full NetBSD running on a zfs FS  with the /var, /usr, /home...  all on the zpool. 
the script ask for the distribution sets directory, a directory that contais the tar.zx (base.tar.xz, etc.tar.xz...)   and installs from there ..  any contribution to the script is welcome

take a look at the script at:

NetBSD Home
NetBSD PR Database Search

(Contact us) $NetBSD: query-full-pr,v 1.46 2020/01/03 16:35:01 leot Exp $
$NetBSD:,v 1.9 2014/08/02 14:16:04 spz Exp $
Copyright © 1994-2020 The NetBSD Foundation, Inc. ALL RIGHTS RESERVED.