darch icon indicating copy to clipboard operation
darch copied to clipboard

Works w/ ZFS & ZBM?

Open dm17 opened this issue 5 years ago • 5 comments

Any idea how Darch would mesh with a system that runs ZFS on its root, and uses ZBM (https://github.com/zbm-dev/zfsbootmenu)? Thanks for the great software!

dm17 avatar Nov 01 '20 14:11 dm17

After thinking on this a bit more... I wonder what it would take to replace Darch's docker imaging with ZFS snapshotting.

dm17 avatar Apr 01 '21 12:04 dm17

Is it possible to mount a snapshot as a file system?

pauldotknopf avatar Apr 01 '21 14:04 pauldotknopf

@pauldotknopf Seems so, ZBM has a selection menu for snapshots. The devs are very knowledgeable & responsive on https://github.com/zbm-dev/zfsbootmenu/ I'm not sure if any features from https://github.com/jimsalterjrs/sanoid/ would be needed to pull this off.

Oh, and docker has a ZFS storage driver! https://docs.docker.com/storage/storagedriver/zfs-driver/

So this could be a fairly simple, more space efficient, and more performant setup... But would need help from you to understand how the pieces fit together in terms of Darch. ZBM + ZFS + Docker + Darch? Seems more elegant than Nix :)

dm17 avatar May 11 '21 08:05 dm17

@pauldotknopf Just wanted to reply with a blurb from Andrew, a ZBM developer:

"I don't know enough about Darch to understand its layout and interaction with GRUB in its normal configuration.

If Darch can be made to put kernel and initramfs pairs into a boot subdirectory of some ZFS filesystem, you can probably get ZBM to find and boot them. You can select different kernels from the kernel-selection submenu. ZBM kernel-selection logic tends to select the highest kernel version by default and provides a limited mechanism (based on file-name matching) for pinning the default kernel that it boots.

Alternatively, if Darch can be made to dump each environment's kernel/initramfs on a separate filesystem, ZBM will handle them separately at the top level. This will most naturally fit our management model."

dm17 avatar Nov 16 '21 13:11 dm17

Any update on this? I'm very interested too.

i2 avatar Nov 28 '21 20:11 i2