Update openrc/dmcache.initd
Move blockdev --getsz to checkconfig()
This commit is contained in:
parent
ffb84bbc8c
commit
16fe60eb45
@ -16,8 +16,6 @@ extra_started_commands="suspend resume cleaner"
|
|||||||
: "${cachepolicy:="default"}"
|
: "${cachepolicy:="default"}"
|
||||||
: "${cachepolicyargs:=0}"
|
: "${cachepolicyargs:=0}"
|
||||||
: "${readahead:="auto"}"
|
: "${readahead:="auto"}"
|
||||||
# dm-cache requires the origindev size in sectors.
|
|
||||||
: "${originsize:="$(/sbin/blockdev --getsz "${origindev}")"}"
|
|
||||||
|
|
||||||
depend() {
|
depend() {
|
||||||
need dev modules
|
need dev modules
|
||||||
@ -42,6 +40,8 @@ checkconfig() {
|
|||||||
eerror "dmname not set!"
|
eerror "dmname not set!"
|
||||||
return 1
|
return 1
|
||||||
fi
|
fi
|
||||||
|
# dm-cache requires the origindev size in sectors.
|
||||||
|
: "${originsize:="$(/sbin/blockdev --getsz "${origindev}")"}"
|
||||||
}
|
}
|
||||||
|
|
||||||
start() {
|
start() {
|
||||||
|
Loading…
Reference in New Issue
Block a user