Skip to content

Commit

Permalink
zfs-utils: Autoload the zfs kernel module
Browse files Browse the repository at this point in the history
See #72
  • Loading branch information
demizer committed Sep 12, 2016
1 parent 7dc840e commit c721377
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.rst
@@ -1,6 +1,7 @@
====================================
Zettabyte File System for Arch Linux
====================================
:Modified: Sun Sep 11 18:01 2016

Welcome to the archzfs project. This repo contains everything used to deploy ZFS to Arch Linux.

Expand Down
2 changes: 1 addition & 1 deletion src/kernels/linux.sh
Expand Up @@ -3,7 +3,7 @@ mode_name="std"
mode_desc="Select and use the packages for the default linux kernel"

# Kernel versions for default ZFS packages
pkgrel="1"
pkgrel="2"
kernel_version="4.7.2-1"

# Kernel version for GIT packages
Expand Down
4 changes: 4 additions & 0 deletions src/zfs-utils/PKGBUILD.sh
Expand Up @@ -45,6 +45,10 @@ package() {
cp -r "\${pkgdir}"/{lib,usr}
rm -r "\${pkgdir}"/lib
# Autoload the zfs module at boot
mkdir -p "\${pkgdir}/etc/modules-load.d"
printf "%s\n" "zfs" > "\${pkgdir}/etc/modules-load.d/zfs.conf"
# Install the support files
install -D -m644 "\${srcdir}"/zfs-utils.initcpio.hook "\${pkgdir}"/usr/lib/initcpio/hooks/zfs
install -D -m644 "\${srcdir}"/zfs-utils.initcpio.install "\${pkgdir}"/usr/lib/initcpio/install/zfs
Expand Down

0 comments on commit c721377

Please sign in to comment.