The following changes were made:

* Re-wrote mkinitramfs in Perl
  * Re-wrote substantial portions of /init ZFS root in initrd
  * Version is now retreived from mkinitramfs VERSION
  * Updated dependencies
  * Added usher to add default bins and mods
This commit is contained in:
2017-06-15 16:44:42 -05:00
parent 02c51412e6
commit 0a7a028b03
11 changed files with 407 additions and 785 deletions

26
SNAP/usher Executable file
View File

@@ -0,0 +1,26 @@
#!/bin/bash
set -e
case $1 in
preinst)
exit 0
;;
postinst)
if [ ! -f ${TARGET}/usr/share/mkinitramfs/bins/default ]; then
cp ${TARGET}/usr/share/mkinitramfs/default-bins \
${TARGET}/usr/share/mkinitramfs/bins/default
fi
if [ ! -f ${TARGET}/usr/share/mkinitramfs/mods/default ]; then
cp ${TARGET}/usr/share/mkinitramfs/default-mods \
${TARGET}/usr/share/mkinitramfs/mods/default
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
;;
esac