You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
53 lines
1.3 KiB
53 lines
1.3 KiB
17 years ago
|
# --- 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
|
||
|
}
|
||
|
|