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:
26
SNAP/usher
Executable file
26
SNAP/usher
Executable 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
|
||||
Reference in New Issue
Block a user