blob: 8dba580d539e671abed9c35c33f92855b00022da (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
|
# LATEUSBMODS go in the second stage
USBMODS="usb-uhci hid keybdev"
LATEUSBMODS="mousedev"
SECSTAGE="nfs fat vfat raid0 raid1 raid5 $LATEUSBMODS"
NETMODULES="3c59x acenic bcm5700 e100 e1000 eepro100 hamachi sk98lin starfire sunhme tulip yellowfin"
SCSIMODULES="DAC960 cciss cpqarray aic7xxx aic7xxx_mod megaraid qla1280 qla2x00 sym53c8xx"
IDEMODULES="ide-mod ide-probe-mod ide-disk ide-cd"
prepareBootImage() {
dd if=/dev/zero bs=1k count=$BOOTDISKSIZE of=$MBD_TMPIMAGE 2>/dev/null
mkdosfs -C $MBD_TMPIMAGE $BOOTDISKSIZE >/dev/null
mount -o loop -t vfat $MBD_TMPIMAGE $MBD_BOOTTREE
cp $MBD_FSIMAGE $MBD_BOOTTREE/initrd.img
cp -a $BOOTDISKDIR/* $MBD_BOOTTREE/
cp $KERNELROOT/boot/efi/vmlinuz-* $MBD_BOOTTREE/vmlinuz
cat > $MBD_BOOTTREE/elilo.conf << EOF
timeout=5
image=vmlinuz
label=linux
read-only
initrd=initrd.img
EOF
}
makebootdisk --kernelto $TOPDESTPATH/kernels/vmlinuz \
--imagename boot.img \
--bootdisksize 10240 \
--initrdflags '--initrdto $TOPDESTPATH/images/ramdisk.img \
--initrdsize 8192 \
--loaderbin loader \
--modules "nfs fat vfat $USBMODS $NETMODULES $SCSIMODULES $IDEMODULES"'
makeinstimage --size1 8192 --size2 8192 "netstg" "$SECSTAGE $SCSIMODULES $IDEMODULES"
makeinstimage --size1 8192 --size2 8192 "hdstg" "$SECSTAGE $NETMODULES $IDEMODULES"
makemainmodules "$SECSTAGE $NETMODULES $SCSIMODULES $IDEMODULES"
makemainimage "stage2" "ext2"
|