Added usher to run depmod after install
This commit is contained in:
2
Makefile
2
Makefile
@@ -13,7 +13,7 @@ export DEPENDS = glibc
|
|||||||
export ARCH = x86_64
|
export ARCH = x86_64
|
||||||
export URL = http://zfsonlinux.org/
|
export URL = http://zfsonlinux.org/
|
||||||
DESC = A shim layer which adds the core interfaces required for OpenZFS
|
DESC = A shim layer which adds the core interfaces required for OpenZFS
|
||||||
SNAPVER = 2
|
SNAPVER = 3
|
||||||
|
|
||||||
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1)
|
||||||
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n')
|
||||||
|
|||||||
22
SNAP/usher
Executable file
22
SNAP/usher
Executable file
@@ -0,0 +1,22 @@
|
|||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
set -e
|
||||||
|
|
||||||
|
case $1 in
|
||||||
|
preinst)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
postinst)
|
||||||
|
if [[ ${TARGET} ]]; then
|
||||||
|
chroot ${TARGET} depmod
|
||||||
|
else
|
||||||
|
depmod
|
||||||
|
fi
|
||||||
|
;;
|
||||||
|
prerm)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
postrm)
|
||||||
|
exit 0
|
||||||
|
;;
|
||||||
|
esac
|
||||||
Reference in New Issue
Block a user