update install.sh to work with archlinux
Signed-off-by: Nico Schottelius <nico@kr.ethz.ch>
This commit is contained in:
parent
609ba1f8e6
commit
6a19a8ed02
1 changed files with 20 additions and 3 deletions
|
@ -18,10 +18,27 @@
|
||||||
# along with nsbin. If not, see <http://www.gnu.org/licenses/>.
|
# along with nsbin. If not, see <http://www.gnu.org/licenses/>.
|
||||||
#
|
#
|
||||||
|
|
||||||
make install
|
set -e
|
||||||
make modules_install
|
#version="$(git describe)
|
||||||
update-grub
|
|
||||||
version=$(cat include/config/kernel.release)
|
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 ..."
|
echo "Reboot should reboot to $version now ..."
|
||||||
read notyet
|
read notyet
|
||||||
reboot
|
reboot
|
||||||
|
|
Loading…
Reference in a new issue