diff --git a/Makefile b/Makefile index 82c25f6..cbb1a22 100644 --- a/Makefile +++ b/Makefile @@ -15,7 +15,7 @@ export URL = http://zfsonlinux.org/ BRIEF = Module and utilities for the ZFS file system DESC = ZFS is an advanced file system and volume manager which was originally \ developed for Solaris and is now maintained by the Illumos community. -SNAPVER = 4 +SNAPVER = 5 ARCHIVE := $(PWD)/SRC/$(shell ls SRC|egrep '(bz2|gz|tar|xz)$$'|tail -1) TYPE := $(shell file -ib $(ARCHIVE)|cut -d';' -f1|tr -d '\n') diff --git a/SNAP/usher b/SNAP/usher index 65912a9..9f46dd6 100755 --- a/SNAP/usher +++ b/SNAP/usher @@ -10,6 +10,12 @@ case $1 in if [ ! -f ${TARGET}/etc/default/zfs ]; then cp ${TARGET}/usr/share/zfs/zfs.default /etc/default/zfs fi + + if [[ ${TARGET} ]]; then + chroot ${TARGET} depmod + else + depmod + fi ;; prerm) exit 0