Commit 061e4693 authored by Seblu's avatar Seblu
Browse files

Add kernel-install-* packages

help kernel installation with kernel-install
parent 9637993d
Loading
Loading
Loading
Loading
+22 −0
Original line number Diff line number Diff line
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

COMMAND="$1"
KERNEL_VERSION="$2"
#BOOT_DIR_ABS="$3"
#KERNEL_IMAGE="$4"
INITRD="/boot/initramfs-$KERNEL_VERSION.img"
INITRD_FALLBACK="/boot/initramfs-$KERNEL_VERSION-fallback.img"

case $COMMAND in
    add)
        mkinitcpio -g "$INITRD" -k "$KERNEL_VERSION"
        mkinitcpio -g "$INITRD_FALLBACK" -k "$KERNEL_VERSION" -S autodetect
    ;;
    remove)
        rm -f "$INITRD"
        rm -f "$INITRD_FALLBACK"
    ;;
esac
exit 0
+16 −0
Original line number Diff line number Diff line
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

COMMAND="$1"
KERNEL_VERSION="$2"
#BOOT_DIR_ABS="$3"
KERNEL_IMAGE="$4"
KERNEL_DEST="/boot/vmlinuz-$KERNEL_VERSION"

case $COMMAND in
    add)    cp "$KERNEL_IMAGE" "$KERNEL_DEST";;
    remove) rm -f "$KERNEL_DEST";;
esac

exit 0
+27 −0
Original line number Diff line number Diff line
# Maintainer: Sébastien Luttringer <seblu@archlinux.org>

pkgname=kernel-install-compat
pkgver=2014.07.02
pkgrel=1
pkgdesc='override default kernel-install script to gen arch compatible kernel and initramfs'
arch=('any')
url='https://github.com/seblu/arch-packages'
license=('GPL2')
depends=('bash')
source=('50-mkinitcpio-compat.install'
        '90-loaderentry-compat.install')
md5sums=('e51ac9ba5d5baa9afdaa6770dd35bc62'
         '1c1b5ad42ad0a6ccae278c57deb92299')

package() {
  # disable arch default
  install -dm755 $_f "$pkgdir/etc/kernel/install.d"
  ln -s /dev/null "$pkgdir/etc/kernel/install.d/90-loaderentry.install"
  ln -s /dev/null "$pkgdir/etc/kernel/install.d/50-mkinitcpio.install"
  # use our
  for _f in "${source[@]}"; do
    install -Dm755 $_f "$pkgdir/usr/lib/kernel/install.d/$_f"
  done
}

# vim:set ts=2 sw=2 et:
+15 −0
Original line number Diff line number Diff line
#!/bin/bash
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh

[[ -d /boot/grub ]] || exit 0

type -P grub-mkconfig >/dev/null || exit 0

case $1 in
    add|remove)
        grub-mkconfig -o /boot/grub/grub.cfg
    ;;
esac

exit 0
+17 −0
Original line number Diff line number Diff line
# Maintainer: Sébastien Luttringer <seblu@archlinux.org>

pkgname=kernel-install-grub
pkgver=2014.07.01
pkgrel=1
pkgdesc='kernel-install script to regen grub config'
arch=('any')
url='https://github.com/seblu/arch-packages'
license=('GPL2')
source=('95-grub-update.install')
md5sums=('cc4481b32207b8f4066971ccdaa20174')

package() {
  install -Dm755 95-grub-update.install "$pkgdir/usr/lib/kernel/install.d/95-grub-update.install"
}

# vim:set ts=2 sw=2 et: