The following changes were made:

* Added SHELL = /bin/bash to Makefile
  * Added REPO (core)
  * Added grub as dependency
  * Added bc and gcc as BUILDDEPS
  * Removed modules.dep from package
  * Added Module.symvers to package
This commit is contained in:
2018-03-22 11:01:02 -05:00
parent 9c94dc2f94
commit 3150e81315
7 changed files with 24 additions and 19 deletions

View File

@@ -7,27 +7,23 @@ case $1 in
exit 0
;;
postinst)
if [[ ${TARGET} ]]; then
echo "Running within ${TARGET} for kernel ${VERSION}"
echo "Running for kernel ${VERSION}"
chroot ${TARGET} mkinitramfs ${VERSION}
chroot ${TARGET} grub-mkconfig -o /boot/grub/grub.cfg
else
echo "Running for kernel ${VERSION}"
mkinitramfs ${VERSION}
grub-mkconfig -o /boot/grub/grub.cfg
mkinitramfs ${VERSION}
grub-mkconfig -o /boot/grub/grub.cfg
fi
if [ ! -f ${TARGET}/etc/modprobe.d/usb.conf ]; then
cp ${TARGET}/usr/share/linux-${VERSION}/usb.conf \
${TARGET}/etc/modprobe.d/usb.conf
if [ ! -f /etc/modprobe.d/usb.conf ]; then
cp /usr/share/linux-${VERSION}/usb.conf /etc/modprobe.d/usb.conf
fi
;;
prerm)
exit 0
;;
postrm)
exit 0
if [ -f /boot/initrd.img-${VERSION} ]; then
rm /boot/initrd.img-${VERSION}
fi
grub-mkconfig -o /boot/grub/grub.cfg
;;
esac