[Pkg-zfsonlinux-devel] partman-zfs

Turbo Fredriksson turbo at bayour.com
Sun May 12 02:46:10 UTC 2013


On May 11, 2013, at 12:25 AM, Turbo Fredriksson wrote:

> It seems that partman-zfs isn't quite finished. It
> doesn't create a root filesystem. Only allows you to
> create a volume, and on that put a root fs...
> 
> I've added support for creating a root fs, setting the
> 'bootfs' flag. I'm currently debugging it and trying
> to find every gotcha. I'll post a patch 'shortly'.

Patch is at https://github.com/FransUrbo/debian-partman-zfs/commits/master
in four different commits.

It's a little crude as yet, but it should be enough to
'get the ball rolling'...

Please test and give me comments.



Turbo Fredriksson (4):
      Support arch linux-any.
      + If os=linux, then modprobe and enable zfs partitioner.
      + Make absolutly sure that /boot/zfs exists before trying to import
        a ZFS pool - will fail if pool exists, but /boot/zfs doesn't.
      + Since loading the module might take 'a while', show progress info.
      + Don't automatically mount the file system(s) when importing the pool.
      + If os=linux, then create the ZVOL with volblocksize=4096.
      + Add some support functions: fs_create(), fs_check_exists(), get_vg_value().
      + Support creating and mounting a ZFS (not ZVOL) and make it a root file system.

 choose_partition/zfs/do_option |   75 ++++++++++++++++++++++
 debian/changelog               |   12 ++++
 debian/control                 |    6 +-
 debian/partman-zfs.templates   |   48 +++++++++++++--
 fstab.d/zfs                    |   20 ++++++
 init.d/zfs-devices             |   20 +++++-
 lib/zfs-base.sh                |  134 +++++++++++++++++++++++++++++++++++++++-
 mount.d/zfs                    |   21 ++++++-
 8 files changed, 320 insertions(+), 16 deletions(-)
--
Build a man a fire, and he will be warm for the night.
Set a man on fire and he will be warm for the rest of his life.




More information about the Pkg-zfsonlinux-devel mailing list