grub: moved to opt

This commit is contained in:
Simone Rota 2006-11-26 02:12:37 +00:00
parent f3fea79ee8
commit 4cfc6caaf8
5 changed files with 0 additions and 233 deletions

View File

@ -1,37 +0,0 @@
drwxr-xr-x root/root boot/
drwxr-xr-x root/root boot/grub/
-rw-r--r-- root/root boot/grub/crux02.xpm.gz
-rw-r--r-- root/root boot/grub/crux03.xpm.gz
-rw-r--r-- root/root boot/grub/menu.lst.sample
drwxr-xr-x root/root sbin/
-rwxr-xr-x root/root sbin/grub
-rwxr-xr-x root/root sbin/grub-install
-rwxr-xr-x root/root sbin/grub-md5-crypt
-rwxr-xr-x root/root sbin/grub-terminfo
drwxr-xr-x root/root usr/
drwxr-xr-x root/root usr/bin/
-rwxr-xr-x root/root usr/bin/mbchk
drwxr-xr-x root/root usr/man/
drwxr-xr-x root/root usr/man/man1/
-rw-r--r-- root/root usr/man/man1/mbchk.1.gz
drwxr-xr-x root/root usr/man/man8/
-rw-r--r-- root/root usr/man/man8/grub-install.8.gz
-rw-r--r-- root/root usr/man/man8/grub-md5-crypt.8.gz
-rw-r--r-- root/root usr/man/man8/grub-terminfo.8.gz
-rw-r--r-- root/root usr/man/man8/grub.8.gz
drwxr-xr-x root/root usr/share/
drwxr-xr-x root/root usr/share/grub/
drwxr-xr-x root/root usr/share/grub/i386-pc/
-rw-r--r-- root/root usr/share/grub/i386-pc/e2fs_stage1_5
-rw-r--r-- root/root usr/share/grub/i386-pc/fat_stage1_5
-rw-r--r-- root/root usr/share/grub/i386-pc/ffs_stage1_5
-rw-r--r-- root/root usr/share/grub/i386-pc/iso9660_stage1_5
-rw-r--r-- root/root usr/share/grub/i386-pc/jfs_stage1_5
-rw-r--r-- root/root usr/share/grub/i386-pc/minix_stage1_5
-rw-r--r-- root/root usr/share/grub/i386-pc/reiserfs_stage1_5
-rw-r--r-- root/root usr/share/grub/i386-pc/stage1
-rw-r--r-- root/root usr/share/grub/i386-pc/stage2
-rw-r--r-- root/root usr/share/grub/i386-pc/stage2_eltorito
-rw-r--r-- root/root usr/share/grub/i386-pc/ufs2_stage1_5
-rw-r--r-- root/root usr/share/grub/i386-pc/vstafs_stage1_5
-rw-r--r-- root/root usr/share/grub/i386-pc/xfs_stage1_5

View File

@ -1,5 +0,0 @@
571ab75bb9f4c247853d93264eda1df4 crux02.xpm.gz
55e343038043e16df5293d63782373d0 crux03.xpm.gz
a74fc336016eca6e22af7158df8433c9 grub-0.95-patches.tar.gz
4ca8e4363d5f1980f2c63b7f5cdbe0d1 grub-0.95.tar.gz
1f2733522ab27183e3830d93733141ac menu.lst.sample

View File

@ -1,76 +0,0 @@
# Description: GNU GRUB (GRand Unified Bootloader)
# URL: http://www.gnu.org/software/grub/
# Packager: Daniel Müller, daniel at danm dot de
# Maintainer: Matt Housh, jaeger at morpheus dot net
# Depends on: ncurses, gettext
name=grub
version=0.95
release=5
source=(ftp://alpha.gnu.org/gnu/grub/$name-$version.tar.gz \
http://crux.nu/files/grub/$version/$name-$version-patches.tar.gz \
http://crux.nu/files/grub/$version/crux02.xpm.gz \
http://crux.nu/files/grub/$version/crux03.xpm.gz \
menu.lst.sample)
build () {
cd $name-$version
# Apply Fedora Linux patches
PATCH_LIST=(
0.90-symlinkmenulst
0.90-install.in
0.94-installcopyonly
0.94-addsyncs
0.95-endedit
0.90-append
0.93-once
0.95-graphics
0.91-splashimagehelp
0.93-graphics-bootterm
0.95-hiddenmenu-tweak
0.95-ext2-sparse
0.93-special-device-names
0.94-initrdmax
0.94-i2o
0.95-staticcurses
0.95-moreraid
0.95-odirect
0.95-geometry-26kernel
0.95-md
0.95-md-rework
0.95-xpmjunk
0.95-splash-error-term
0.95-nxstack
0.95-mdadm-path
0.95-md-mbr
0.95-gcc4
0.95-nonmbr
)
for PATCH in ${PATCH_LIST[@]}
do
patch -p1 -i $SRC/$name-patches/$name-$PATCH.patch
done
# http://lists.gnu.org/archive/html/bug-grub/2005-04/msg00031.html
patch -p0 -i $SRC/$name-patches/$name-$version-xfs-writable-strings.patch
unset CXXFLAGS
export CFLAGS="-Os"
autoreconf --install --force
./configure --prefix=/usr \
--mandir=/usr/man \
--sbindir=/sbin \
--disable-nls \
--disable-auto-linux-mem-opt
make
make DESTDIR=$PKG install
rm -rf $PKG/usr/share/info
mkdir -p $PKG/boot/grub
install -m 644 $SRC/{crux*,menu.lst.sample} $PKG/boot/grub/
}

View File

@ -1,51 +0,0 @@
REQUIREMENTS
PRE-INSTALL
POST-INSTALL
After installation you need to copy the stage files to
/boot/grub/:
# cp /usr/share/grub/i386-pc/* /boot/grub/
(Of course, you can choose another location as described above but
this guide assumes that you use /boot/grub. Normally you need only
the files stage1 and stage2 - please read the grub documentation if
you don't know why. http://www.uruk.org/orig-grub/ and
http://www.gnu.org/software/grub/manual/grub.html)
Now it's time to create your own "boot menu":
# # Copy sample file
# cp /boot/grub/menu.lst.sample /boot/grub/menu.lst
# # Modify it for your system
# vi /boot/grub/menu.lst
For more information about setting up your own grub boot menu file:
http://www.gnu.org/manual/grub-0.92/html_mono/grub.html#Configuration
Last but not least - install/enable the bootmanager:
# # Run grub
# grub
grub> root (hdX,Y)
grub> setup (hdX)
grub> quit
Please correct the path & device names according your configuration.
Also see http://www.gnu.org/software/grub/manual/grub.html#Installation.
In the example above, X and Y need to be replaced with your hard drive
and grub partition.
That's all. Good luck ;)
PRECAUTION
Installing a new boot manager is like modifiying the partition table
using fdisk - or installing a new system kernel. Please create a rescue
boot disk first :)
This is a heavy patched version of grub - Use it on your own risk !
Matt Housh <jaeger@crux.nu>

View File

@ -1,64 +0,0 @@
### Global settings
## CRUX splash image
splashimage (hd0,0)/boot/grub/crux03.xpm.gz
## define special fore-/background colors for splash screen image
foreground = FFFFFF
background = AAAAAA
## shaded text
#shade 1
## time to wait for user interaction
timeout 5
## default boot kernel
default 0
### GRUB Devices:
##
## Linux Grub
## ======================
## /dev/hda (hd0)
## /dev/hda1 (hd0,0)
## /dev/hdb (hd1)
## /dev/hdb1 (hd1,0)
## /dev/fd0 (fd0)
### Remember:
## The Linux kernel 2.4.19 has a bug which prevents using of devfs
## device names (/dev/disc/disc0/part1,..). CRUX 0.9.4 comes with
## 2.4.19 !
## Default menu entries
title CRUX
kernel (hd0,0)/boot/vmlinuz root=/dev/hda1
title CRUX
kernel (hd0,0)/boot/vmlinuz.old root=/dev/hda1
### Special cases
## Boot special bootimage
#title Memtest
#kernel (hd0,0)/boot/memtest.bin
## Boot Microsoft Windows(TM)
#title Windows
#root (hd0,5)
#makeactive
#chainloader +1
## Boot from Floppy
#title floppy
#root (fd0)
#chainloader +1
## Boot with different /boot partition
## / = /dev/hdb2 = (hd1,1)
## /boot = /dev/hdb1 = (hd1,0)
##
#title CRUX GNU/Linux drive 2
#kernel (hd1,0)/vmlinuz root=/dev/hdb2