also generate initramfs
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
d4421e8605
commit
7a4c177c6a
1 changed files with 9 additions and 6 deletions
|
@ -24,20 +24,23 @@ version=$(cat include/config/kernel.release)
|
||||||
ddir="/boot"
|
ddir="/boot"
|
||||||
spath="arch/x86/boot/bzImage"
|
spath="arch/x86/boot/bzImage"
|
||||||
fname="vmlinuz-$version"
|
fname="vmlinuz-$version"
|
||||||
|
fname="vmlinuz-nico"
|
||||||
fpath="${ddir}/${fname}"
|
fpath="${ddir}/${fname}"
|
||||||
gpath="$ddir/grub/menu.lst"
|
gpath="$ddir/grub/menu.lst"
|
||||||
|
initramfs="/boot/initramfs-nico.img"
|
||||||
|
|
||||||
|
|
||||||
#make install
|
#make install
|
||||||
cp "$spath" "$fpath"
|
cp "$spath" "$fpath"
|
||||||
make modules_install
|
make modules_install
|
||||||
|
mkinitcpio -k "$version" -g "$initramfs"
|
||||||
#update-grub
|
#update-grub
|
||||||
cat << eof >> "$gpath"
|
#cat << eof >> "$gpath"
|
||||||
title $version
|
#title $version
|
||||||
root (hd0,0)
|
#root (hd0,0)
|
||||||
kernel ${fpath}
|
#kernel ${fpath}
|
||||||
|
#
|
||||||
eof
|
#eof
|
||||||
|
|
||||||
echo "Reboot should reboot to $version now ..."
|
echo "Reboot should reboot to $version now ..."
|
||||||
read notyet
|
read notyet
|
||||||
|
|
Loading…
Reference in a new issue