THe following changes were made:

* Moved to new version scheme
  * Added brief
  * Split off linux-headers-3.16.37 and linux-firmware as separate packages
This commit is contained in:
2017-03-24 15:46:35 -05:00
parent 8f58131518
commit 9957ddd7b9
5 changed files with 101 additions and 20 deletions

View File

@@ -7,7 +7,39 @@ case $1 in
exit 0
;;
postinst)
mkinitramfs
KERNEL_VER=`ls -C1rt ${TARGET}/boot/vmlinuz*|sed 's/.*vmlinuz-//'`
if [[ ${TARGET} ]]; then
echo "Running within ${TARGET} for kernel $KERNEL_VER"
if ! mountpoint -q ${TARGET}/dev; then
mount -t devtmpfs none ${TARGET}/dev
fi
if ! mountpoint -q ${TARGET}/proc; then
mount -t proc none ${TARGET}/proc
fi
if ! mountpoint -q ${TARGET}/sys; then
mount -t sysfs none ${TARGET}/sys
fi
chroot ${TARGET} /bin/bash -c "/sbin/mkinitramfs $KERNEL_VER"
chroot ${TARGET} /bin/bash -c \
"/sbin/grub-mkconfig -o /boot/grub/grub.cfg"
if mountpoint -q ${TARGET}/dev; then
umount ${TARGET}/dev
fi
if mountpoint -q ${TARGET}/proc; then
umount ${TARGET}/proc
fi
if mountpoint -q ${TARGET}/sys; then
umount ${TARGET}/sys
fi
else
echo "Running for kernel $KERNEL_VER"
mkinitramfs $KERNEL_VER
grub-mkconfig -o /boot/grub/grub.cfg
fi
;;
prerm)
exit 0