boot from zfs root

5 posts / 0 new
Last post
#1 Thu, 2016-09-01 09:42
digrouz
  • digrouz's picture
  • Offline
  • Last seen: 10 months 1 week ago
  • Joined: 2016-09-01

Hello,

I'm new to alpine linux and I'm wondering if someone was to boot it from a zfs root ? I've googled a bit and did not find any explicit info.

Fri, 2016-09-02 23:46
Head_on_a_Stick
  • Head_on_a_Stick's picture
  • Offline
  • Last seen: 1 week 1 day ago
  • Joined: 2016-05-01

According to the Alpine WIki, the only filesystems supported by the setup-disk script are ext{2,3,4} & btrfs:

https://wiki.alpinelinux.org/wiki/Alpine_setup_scripts#setup-disk

I use btrfs for my system, I used:
ROOTFS=btrfs setup-disk -m sys /mnt
When installing the system; I think this just add "btrfs" to the "features" section in /etc/mkinitfs/mkinitfs.conf so that the initrd has the correct modules.

I also have to add this kernel command line parameter to the bootloader:
modules=btrfs

Thu, 2016-10-20 09:14
digrouz
  • digrouz's picture
  • Offline
  • Last seen: 10 months 1 week ago
  • Joined: 2016-09-01

Thanks for the confirmation.

Fri, 2016-12-23 10:22
digrouz
  • digrouz's picture
  • Offline
  • Last seen: 10 months 1 week ago
  • Joined: 2016-09-01

Hello, I just saw in an announcement that alpine 3.5 is able to boot a zfs root now, is there a guide already somewhere for it?

Sun, 2016-12-25 12:13
mxp
  • mxp's picture
  • Offline
  • Last seen: 11 months 3 weeks ago
  • Joined: 2016-11-03

Hi,

I would also appreciate such wiki page, which would describe process of configuration of ZFS as a root file system.

Log in or register to post comments