OpenSDE Packages Database (without history before r20070)
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.

51 lines
1.3 KiB

  1. # --- SDE-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # Filename: package/.../grub/boot/boot.in
  5. # Copyright (C) 2008 The OpenSDE Project
  6. # Copyright (C) 2006 The T2 SDE Project
  7. #
  8. # More information can be found in the files COPYING and README.
  9. #
  10. # This program is free software; you can redistribute it and/or modify
  11. # it under the terms of the GNU General Public License as published by
  12. # the Free Software Foundation; version 2 of the License. A copy of the
  13. # GNU General Public License can be found in the file COPYING.
  14. # --- SDE-COPYRIGHT-NOTE-END ---
  15. boot_cd_pre()
  16. {
  17. mkdir -p $isofsdir/boot/grub
  18. cp -f $build_root/boot/grub/stage{1,2,2_eltorito} $isofsdir/boot/grub/
  19. cp -f $build_root/boot/opensde-grub-splash.xpm.gz $isofsdir/boot/
  20. # header
  21. sed -n '/CUT/q;p' $base/package/$bootloader/boot/menu.lst \
  22. > $1/boot/grub/menu.lst
  23. }
  24. boot_cd_add()
  25. {
  26. cat >> $1/boot/grub/menu.lst <<-EOT
  27. title $3 (Kernel: $2)
  28. kernel (cd)$4
  29. initrd (cd)$5
  30. EOT
  31. }
  32. boot_cd_post()
  33. {
  34. # footer
  35. sed '1,/CUT/d' $base/package/$bootloader/boot/menu.lst \
  36. >> $1/boot/grub/menu.lst
  37. echo_status "Creating isofs_arch.txt file .."
  38. cat > $build_toolchain/isofs_arch.txt <<- EOT
  39. BOOT -b boot/grub/stage2_eltorito -no-emul-boot
  40. BOOTx -boot-load-size 4 -boot-info-table
  41. DISK1 $isofsdir/ /
  42. EOT
  43. }