also generate initramfs

Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
Nico Schottelius 2011-10-18 00:46:08 +02:00
parent d4421e8605
commit 7a4c177c6a
1 changed files with 9 additions and 6 deletions

View File

@ -24,20 +24,23 @@ version=$(cat include/config/kernel.release)
ddir="/boot"
spath="arch/x86/boot/bzImage"
fname="vmlinuz-$version"
fname="vmlinuz-nico"
fpath="${ddir}/${fname}"
gpath="$ddir/grub/menu.lst"
initramfs="/boot/initramfs-nico.img"
#make install
cp "$spath" "$fpath"
make modules_install
mkinitcpio -k "$version" -g "$initramfs"
#update-grub
cat << eof >> "$gpath"
title $version
root (hd0,0)
kernel ${fpath}
eof
#cat << eof >> "$gpath"
#title $version
#root (hd0,0)
#kernel ${fpath}
#
#eof
echo "Reboot should reboot to $version now ..."
read notyet