From 0c6f5455b8d490d09158709eb298518bf24ed55c Mon Sep 17 00:00:00 2001 From: Jay Larson Date: Wed, 31 May 2017 13:42:38 +0000 Subject: [PATCH] Added depmod to usher --- Makefile | 2 +- SNAP/usher | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) 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