Alejandro Mery
17 years ago
2 changed files with 70 additions and 0 deletions
@ -0,0 +1,52 @@ |
|||||||
|
# --- SDE-COPYRIGHT-NOTE-BEGIN --- |
||||||
|
# This copyright note is auto-generated by ./scripts/Create-CopyPatch. |
||||||
|
# |
||||||
|
# Filename: package/.../grub/boot/boot.in |
||||||
|
# Copyright (C) 2008 The OpenSDE Project |
||||||
|
# Copyright (C) 2006 The T2 SDE Project |
||||||
|
# |
||||||
|
# More information can be found in the files COPYING and README. |
||||||
|
# |
||||||
|
# This program is free software; you can redistribute it and/or modify |
||||||
|
# it under the terms of the GNU General Public License as published by |
||||||
|
# the Free Software Foundation; version 2 of the License. A copy of the |
||||||
|
# GNU General Public License can be found in the file COPYING. |
||||||
|
# --- SDE-COPYRIGHT-NOTE-END --- |
||||||
|
|
||||||
|
|
||||||
|
arch_boot_cd_pre() |
||||||
|
{ |
||||||
|
mkdir -p $isofsdir/boot/grub |
||||||
|
cp -f $build_root/boot/grub/stage{1,2,2_eltorito} $isofsdir/boot/grub/ |
||||||
|
cp -f $build_root/boot/opensde-grub-splash.xpm.gz $isofsdir/boot/ |
||||||
|
|
||||||
|
# header |
||||||
|
sed -n '/CUT/q;p' $base/architecture/x86/boot/menu.lst \ |
||||||
|
> $1/boot/grub/menu.lst |
||||||
|
} |
||||||
|
|
||||||
|
arch_boot_cd_add() |
||||||
|
{ |
||||||
|
cat >> $1/boot/grub/menu.lst <<-EOT |
||||||
|
|
||||||
|
title $3 (Kernel: $2) |
||||||
|
kernel (cd)$4 |
||||||
|
initrd (cd)$5 |
||||||
|
|
||||||
|
EOT |
||||||
|
} |
||||||
|
|
||||||
|
arch_boot_cd_post() |
||||||
|
{ |
||||||
|
# footer |
||||||
|
sed '1,/CUT/d' $base/architecture/x86/boot/menu.lst \ |
||||||
|
>> $1/boot/grub/menu.lst |
||||||
|
echo_status "Creating isofs_arch.txt file .." |
||||||
|
|
||||||
|
cat > $build_toolchain/isofs_arch.txt <<- EOT |
||||||
|
BOOT -b boot/grub/stage2_eltorito -no-emul-boot |
||||||
|
BOOTx -boot-load-size 4 -boot-info-table |
||||||
|
DISK1 $isofsdir/ / |
||||||
|
EOT |
||||||
|
} |
||||||
|
|
@ -0,0 +1,18 @@ |
|||||||
|
|
||||||
|
# T2 Grub configuration "header" - the actual images are inserted |
||||||
|
# automatically |
||||||
|
|
||||||
|
timeout 8 |
||||||
|
default 0 |
||||||
|
fallback 1 |
||||||
|
|
||||||
|
foreground = 000000 |
||||||
|
background = e4e6e3 |
||||||
|
splashimage (cd)/boot/opensde-grub-splash.xpm.gz |
||||||
|
|
||||||
|
# CUT # |
||||||
|
|
||||||
|
title Installed OS from HD |
||||||
|
root (hd0) |
||||||
|
chainloader +1 |
||||||
|
|
Loading…
Reference in new issue