mirror of
https://git.proxmox.com/git/mirror_zfs.git
synced 2024-11-17 01:51:00 +03:00
Fix incorrect zpool_cache substitution
This regression was accidentally introduced by commit aa2b489
.
I was attempting to simplify the init scripts and accidentally
confused the /etc/init.d and /etc/zfs paths. This change reverts
the init script modifications.
Signed-off-by: Brian Behlendorf <behlendorf1@llnl.gov>
Closes #370
This commit is contained in:
parent
fd1cd4888a
commit
1a2e6a635f
@ -5,7 +5,7 @@
|
|||||||
|
|
||||||
ZFS="@sbindir@/zfs"
|
ZFS="@sbindir@/zfs"
|
||||||
ZPOOL="@sbindir@/zpool"
|
ZPOOL="@sbindir@/zpool"
|
||||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||||
|
|
||||||
case "$1" in
|
case "$1" in
|
||||||
start)
|
start)
|
||||||
|
@ -32,7 +32,7 @@ export PATH=/usr/local/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
|||||||
RETVAL=0
|
RETVAL=0
|
||||||
ZFS="@sbindir@/zfs"
|
ZFS="@sbindir@/zfs"
|
||||||
ZPOOL="@sbindir@/zpool"
|
ZPOOL="@sbindir@/zpool"
|
||||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||||
servicename=zfs
|
servicename=zfs
|
||||||
LOCKFILE=/var/lock/subsys/$servicename
|
LOCKFILE=/var/lock/subsys/$servicename
|
||||||
|
|
||||||
|
@ -13,7 +13,7 @@ depend()
|
|||||||
|
|
||||||
ZFS="@sbindir@/zfs"
|
ZFS="@sbindir@/zfs"
|
||||||
ZPOOL="@sbindir@/zpool"
|
ZPOOL="@sbindir@/zpool"
|
||||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||||
ZFS_MODULE=zfs
|
ZFS_MODULE=zfs
|
||||||
|
|
||||||
checksystem() {
|
checksystem() {
|
||||||
|
@ -33,7 +33,7 @@ RETVAL=0
|
|||||||
LOCKFILE=/var/lock/zfs
|
LOCKFILE=/var/lock/zfs
|
||||||
ZFS="@sbindir@/zfs"
|
ZFS="@sbindir@/zfs"
|
||||||
ZPOOL="@sbindir@/zpool"
|
ZPOOL="@sbindir@/zpool"
|
||||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||||
|
|
||||||
[ -x $ZPOOL ] || exit 1
|
[ -x $ZPOOL ] || exit 1
|
||||||
[ -x $ZFS ] || exit 2
|
[ -x $ZFS ] || exit 2
|
||||||
|
@ -12,7 +12,7 @@
|
|||||||
|
|
||||||
ZFS="@sbindir@/zfs"
|
ZFS="@sbindir@/zfs"
|
||||||
ZPOOL="@sbindir@/zpool"
|
ZPOOL="@sbindir@/zpool"
|
||||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||||
|
|
||||||
case $1 in
|
case $1 in
|
||||||
start) echo "$1ing ZFS filesystems"
|
start) echo "$1ing ZFS filesystems"
|
||||||
|
@ -32,7 +32,7 @@ export PATH=/usr/local/sbin:/usr/bin:/bin:/usr/local/sbin:/usr/sbin:/sbin
|
|||||||
RETVAL=0
|
RETVAL=0
|
||||||
ZFS="@sbindir@/zfs"
|
ZFS="@sbindir@/zfs"
|
||||||
ZPOOL="@sbindir@/zpool"
|
ZPOOL="@sbindir@/zpool"
|
||||||
ZPOOL_CACHE="@initdir@/zpool.cache"
|
ZPOOL_CACHE="@sysconfdir@/zfs/zpool.cache"
|
||||||
servicename=zfs
|
servicename=zfs
|
||||||
LOCKFILE=/var/lock/subsys/$servicename
|
LOCKFILE=/var/lock/subsys/$servicename
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user