grub: readded to core
This commit is contained in:
commit
60f4af3edf
37
grub/.footprint
Normal file
37
grub/.footprint
Normal file
@ -0,0 +1,37 @@
|
||||
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/grub.conf.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
|
5
grub/.md5sum
Normal file
5
grub/.md5sum
Normal file
@ -0,0 +1,5 @@
|
||||
571ab75bb9f4c247853d93264eda1df4 crux02.xpm.gz
|
||||
55e343038043e16df5293d63782373d0 crux03.xpm.gz
|
||||
e0fce491c713805650df3d8962ead526 grub-0.97-patches.tar.gz
|
||||
cd3f3eb54446be6003156158d51f4884 grub-0.97.tar.gz
|
||||
1f2733522ab27183e3830d93733141ac grub.conf.sample
|
89
grub/Pkgfile
Normal file
89
grub/Pkgfile
Normal file
@ -0,0 +1,89 @@
|
||||
# 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.97
|
||||
release=2
|
||||
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/common/crux02.xpm.gz \
|
||||
http://crux.nu/files/grub/common/crux03.xpm.gz \
|
||||
grub.conf.sample)
|
||||
|
||||
build () {
|
||||
cd $name-$version
|
||||
|
||||
# Apply Fedora Core patches
|
||||
PATCH_LIST=(
|
||||
0.93-configfile
|
||||
0.90-symlinkmenulst
|
||||
0.97-install.in
|
||||
0.94-installcopyonly
|
||||
0.94-addsyncs
|
||||
0.95-staticcurses
|
||||
0.93-endedit
|
||||
0.90-append
|
||||
0.97-once
|
||||
0.95-graphics
|
||||
0.91-splashimagehelp
|
||||
0.93-graphics-bootterm
|
||||
0.95-hiddenmenu-tweak
|
||||
0.93-special-device-names
|
||||
0.94-i2o
|
||||
0.95-moreraid
|
||||
0.94-initrdmax
|
||||
0.95-odirect
|
||||
0.95-geometry-26kernel
|
||||
0.95-md
|
||||
0.95-md-rework
|
||||
0.95-xpmjunk
|
||||
0.95-splash-error-term
|
||||
0.97-nxstack
|
||||
0.97-nx-multiinstall
|
||||
0.97-mdadm-path
|
||||
0.95-md-mbr
|
||||
0.97-gcc4
|
||||
0.95-nonmbr
|
||||
0.95-recheck-bad
|
||||
0.97-prototypes
|
||||
0.97-datadir
|
||||
0.97-dmraid
|
||||
0.97-dmraid-recheck-bad
|
||||
0.97-dmraid-partition-names
|
||||
0.97-mactel-kbd
|
||||
0.97-stderr
|
||||
0.97-mpath
|
||||
)
|
||||
|
||||
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-0.95-xfs-writable-strings.patch
|
||||
|
||||
# fix for automake 1.10
|
||||
sed -i '19i\AM_PROG_AS' configure.ac
|
||||
|
||||
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*,grub.conf.sample} $PKG/boot/grub/
|
||||
}
|
50
grub/README
Normal file
50
grub/README
Normal file
@ -0,0 +1,50 @@
|
||||
|
||||
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/grub.conf.sample /boot/grub/grub.conf
|
||||
# # Modify it for your system
|
||||
# vi /boot/grub/grub.conf
|
||||
|
||||
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
|
||||
or installing a new system kernel. Please create a rescue disk first :)
|
||||
This is a heavily patched version of grub - Use it at your own risk !
|
||||
|
||||
Matt Housh <jaeger@crux.nu>
|
||||
|
64
grub/grub.conf.sample
Normal file
64
grub/grub.conf.sample
Normal file
@ -0,0 +1,64 @@
|
||||
### 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
|
||||
|
@ -6,7 +6,7 @@
|
||||
name=rsync
|
||||
version=2.6.9
|
||||
release=1
|
||||
source=(http://samba.org/ftp/$name/$name-$version.tar.gz \
|
||||
source=(http://rsync.samba.org/ftp/$name/$name-$version.tar.gz \
|
||||
rsyncd.conf rsyncd rsync.driver)
|
||||
|
||||
build () {
|
||||
|
Loading…
Reference in New Issue
Block a user