Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Sep 2024 09:53:32 +0000
From:      bugzilla-noreply@freebsd.org
To:        bugs@FreeBSD.org
Subject:   [Bug 281456] makefs zfs is tricky to get right with multiple partitions, matching freebsd install default
Message-ID:  <bug-281456-227@https.bugs.freebsd.org/bugzilla/>

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

            Bug ID: 281456
           Summary: makefs zfs is tricky to get right with multiple
                    partitions, matching freebsd install default
           Product: Base System
           Version: 14.1-STABLE
          Hardware: Any
                OS: Any
            Status: New
          Severity: Affects Only Me
          Priority: ---
         Component: bin
          Assignee: bugs@FreeBSD.org
          Reporter: pat@patmaddox.com

freebsdinstall creates a layout similar to:

zroot: /zroot
  ROOT: none
    default: /
  home: /home
  var: /var
(etc)

It took quite a while for me to work out how to do it with makefs... I tend=
ed
to cycle between assertion error and usage errors.

I looked at the tests and based on multi_dataset_2_body was able to come up
with:

makefs -t zfs -s 10g -o rootpath=3D/ -o poolname=3Dzroot -o
fs=3Dzroot/ROOT\;mountpoint=3Dnone -o fs=3Dzroot/ROOT/default\;mountpoint=
=3D/ -o
fs=3Dzroot\;mountpoint=3D/zroot -o fs=3Dzroot/home\;mountpoint=3D/home -o
bootfs=3Dzroot/ROOT/default  main.zfs /pdt/images/15-main-d82cb5c608ae/

I'm not quite sure what the path forward would be. Maybe it's possible to h=
ave
this be more liberal in the order it receives args - or maybe the man pages
should explain the order requirements.

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