|
|
|
# --- 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 ---
|
|
|
|
|
|
|
|
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/package/$bootloader/boot/menu.lst \
|
|
|
|
> $1/boot/grub/menu.lst
|
|
|
|
}
|
|
|
|
|
|
|
|
boot_cd_add()
|
|
|
|
{
|
|
|
|
cat >> $1/boot/grub/menu.lst <<-EOT
|
|
|
|
|
|
|
|
title $3 (Kernel: $2)
|
|
|
|
kernel (cd)$4
|
|
|
|
initrd (cd)$5
|
|
|
|
|
|
|
|
EOT
|
|
|
|
}
|
|
|
|
|
|
|
|
boot_cd_post()
|
|
|
|
{
|
|
|
|
# footer
|
|
|
|
sed '1,/CUT/d' $base/package/$bootloader/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
|
|
|
|
}
|
|
|
|
|