Merge pull request #25 from techmunk/master

Allow ZFS for /usr or /var, when the root filesystem is not ZFS.
pull/26/head
Jesus Alvarez 11 years ago
commit 7a8a630760
  1. 10
      zfs-utils-git/zfs-utils.initcpio.hook

@ -1,3 +1,5 @@
#!/usr/bin/ash
ZPOOL_FORCE=""
zfs_get_bootfs () {
@ -67,6 +69,9 @@ run_hook() {
fi
case $zfs in
"")
# skip this line/dataset
;;
auto|bootfs)
ZFS_DATASET='bootfs'
mount_handler="zfs_mount_handler"
@ -88,4 +93,9 @@ run_hook() {
done
}
run_latehook () {
/usr/bin/zpool import -N -a $ZPOOL_FORCE
}
# vim:set ts=4 sw=4 ft=sh et:

Loading…
Cancel
Save