Skip to content

A standalone systemd ZFS hook for mkinitcpio, built from the archlinuxcn repository.

Notifications You must be signed in to change notification settings

lumnikemel/sd-zfs-hook

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 

Repository files navigation

sd-zfs-hook

Build Status GitHub release (latest by date) GitHub stars GitHub issues

A standalone systemd ZFS hook for mkinitcpio, built from the archlinuxcn repository.

The archlinuxcn repo is the only org maintaining a sd-zfs module. However, their project is based on linux-lts and the module should be made available for all to use. Therefore, I created this repo to simplify the creation of just the module for others to use.

Installation

Option 1: Install from release

  1. Go to the Releases page
  2. Download the latest .zst file
  3. Install with pacman:
sudo pacman -U sd-zfs-hook-*.pkg.tar.zst

Option 2: Build from source

git clone https://github.com/lumnikemel/sd-zfs-hook.git
cd sd-zfs-hook
makepkg -si

Usage

Add sd-zfs to your HOOKS array in /etc/mkinitcpio.conf:

HOOKS=(systemd sd-zfs ...)

Then rebuild your initramfs:

sudo mkinitcpio -P

Command Line Options

The following boot parameters are supported:

  • root=zfs - imports all pools, searches for bootfs property
  • root=zfs:poolname - imports specified pool, uses its bootfs
  • root=zfs:poolname/dataset - imports pool, mounts specified dataset

About

A standalone systemd ZFS hook for mkinitcpio, built from the archlinuxcn repository.

Resources

Stars

Watchers

Forks

Packages

No packages published