Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse code

scripts/install: make it work on arch linux, as it needs it.

  • Loading branch information...
commit c068066964ce48b9f52a1d097447224111aba26f 1 parent 3ca32d0
Greg Kroah-Hartman authored

Showing 1 changed file with 11 additions and 1 deletion. Show diff stats Hide diff stats

  1. +11 1 scripts/install
12 scripts/install
@@ -12,7 +12,8 @@ SRC_RELEASE=$VERSION.$PATCHLEVEL.$SUBLEVEL$EXTRAVERSION
12 12
13 13 # figure out the arch
14 14 #ARCH=`grep "CONFIG_ARCH " include/linux/autoconf.h | cut -f 2 -d "\""`
15   -ARCH="i386"
  15 +#ARCH="i386"
  16 +ARCH="x86"
16 17
17 18 # copy the kernel image
18 19 cp arch/$ARCH/boot/bzImage /boot/bzImage-"$SRC_RELEASE"
@@ -22,3 +23,12 @@ cp System.map /boot/System.map-"$SRC_RELEASE"
22 23 #ln -sf /boot/System.map-"$SRC_RELEASE" /boot/System.map
23 24
24 25 echo "Installed $SRC_RELEASE for $ARCH"
  26 +
  27 +if [ -f "/etc/os-release" ]; then
  28 + source /etc/os-release
  29 +fi
  30 +
  31 +if [ "${NAME}" = "Arch Linux" ]; then
  32 + # This is arch linux, so make the initrd
  33 + mkinitcpio -k ${SRC_RELEASE}-gregkh -g /boot/initramfs-${SRC_RELEASE}-gregkh.img
  34 +fi

0 comments on commit c068066

Please sign in to comment.
Something went wrong with that request. Please try again.