The following changes were made:
* Added REPO * usher now uses /bin/sh * Removed TARGET from usher * moved modules to /lib/modules/zfs
This commit is contained in:
17
SNAP/usher
17
SNAP/usher
@@ -1,4 +1,4 @@
|
||||
#!/bin/bash
|
||||
#!/bin/sh
|
||||
|
||||
set -e
|
||||
|
||||
@@ -7,15 +7,18 @@ case $1 in
|
||||
exit 0
|
||||
;;
|
||||
postinst)
|
||||
if [ ! -f ${TARGET}/etc/default/zfs ]; then
|
||||
cp ${TARGET}/usr/share/zfs/zfs.default /etc/default/zfs
|
||||
if [ ! -f /etc/default/zfs ]; then
|
||||
cp /usr/share/zfs/zfs.default /etc/default/zfs
|
||||
fi
|
||||
|
||||
if [[ ${TARGET} ]]; then
|
||||
chroot ${TARGET} depmod
|
||||
else
|
||||
depmod
|
||||
if [ ! -f /usr/share/mkinitramfs/mods/zfs ]; then
|
||||
cp /usr/share/zfs/zfs.mods /usr/share/mkinitramfs/mods/zfs
|
||||
fi
|
||||
if [ ! -f /usr/share/mkinitramfs/bins/zfs ]; then
|
||||
cp /usr/share/zfs/zfs.bins /usr/share/mkinitramfs/bins/zfs
|
||||
fi
|
||||
|
||||
depmod
|
||||
;;
|
||||
prerm)
|
||||
exit 0
|
||||
|
||||
Reference in New Issue
Block a user