update install.sh to work with archlinux

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2010-05-04 17:07:35 +02:00
parent 609ba1f8e6
commit 6a19a8ed02

View file

@ -18,10 +18,27 @@
# along with nsbin. If not, see <http://www.gnu.org/licenses/>.
#
make install
make modules_install
update-grub
set -e
#version="$(git describe)
version=$(cat include/config/kernel.release)
ddir="/boot"
spath="arch/x86_64/boot/bzImage"
fname="linux-$(version)"
fpath="${ddir}/${fname}"
gpath="$ddir/grub/menu.lst"
#make install
cp "$spath" "$fpath"
make modules_install
#update-grub
cat << eof >> "$gpath"
title $version
root (hd0,0)
kernel ${fpath}
eof
echo "Reboot should reboot to $version now ..."
read notyet
reboot