X-Git-Url: https://git.camperquake.de/gitweb.cgi?a=blobdiff_plain;f=etc%2Finit.d%2Fzfs.gentoo.in;fp=etc%2Finit.d%2Fzfs.gentoo;h=767aba8f96a27d346806f63627229bdbd0b9be2d;hb=5faa9c0367e8d6b1ee1c45f1ebeffd3e53ef35e8;hp=f709ed9e7d6bc2406fbf5e01d82e48f30e816ae7;hpb=7f4afd300b753ee7e0ce1f8d12c098119193001b;p=zfs.git diff --git a/etc/init.d/zfs.gentoo b/etc/init.d/zfs.gentoo.in similarity index 92% rename from etc/init.d/zfs.gentoo rename to etc/init.d/zfs.gentoo.in index f709ed9..767aba8 100644 --- a/etc/init.d/zfs.gentoo +++ b/etc/init.d/zfs.gentoo.in @@ -11,9 +11,9 @@ depend() keyword -lxc -openvz -prefix -vserver } -CACHEFILE=/etc/zfs/zpool.cache -ZPOOL=/sbin/zpool -ZFS=/sbin/zfs +ZFS="@sbindir@/zfs" +ZPOOL="@sbindir@/zpool" +ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache" ZFS_MODULE=zfs checksystem() { @@ -55,11 +55,11 @@ start() { # Import all pools described by the cache file, and then mount # all filesystem based on their properties. - if [ -f $CACHEFILE ]; then + if [ -f $ZPOOL_CACHE ]; then einfo "Importing ZFS pools" # as per fedora script, import can fail if all pools are already imported # The check for $rv makes no sense...but someday, it will work right. - $ZPOOL import -c $CACHEFILE -aN 2>/dev/null || true + $ZPOOL import -c $ZPOOL_CACHE -aN 2>/dev/null || true rv=$? if [ $rv -ne 0 ]; then eerror "Failed to import not-yet imported pools."