NetBSD Problem Report #56685

From www@netbsd.org  Thu Feb  3 17:06:21 2022
Return-Path: <www@netbsd.org>
Received: from mail.netbsd.org (mail.netbsd.org [199.233.217.200])
	(using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits))
	(Client CN "mail.NetBSD.org", Issuer "mail.NetBSD.org CA" (not verified))
	by mollari.NetBSD.org (Postfix) with ESMTPS id 089CB1A9239
	for <gnats-bugs@gnats.NetBSD.org>; Thu,  3 Feb 2022 17:06:21 +0000 (UTC)
Message-Id: <20220203170619.9713B1A923D@mollari.NetBSD.org>
Date: Thu,  3 Feb 2022 17:06:19 +0000 (UTC)
From: nervoso@k1.com.br
Reply-To: nervoso@k1.com.br
To: gnats-bugs@NetBSD.org
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
>Organization:
k1 systems
>Environment:
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
>Description:
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
>How-To-Repeat:

>Fix:
take a look at the script at: http://k1.com.br/makegptzfs.sh

NetBSD Home
NetBSD PR Database Search

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