Subversion Repositories livecd

Rev

Rev 8 | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8 Rev 9
Line 12... Line 12...
12
# add module: jbd
12
# add module: jbd
13
# add module: sr_mod
13
# add module: sr_mod
14
# unionctl.static can be installed locally
14
# unionctl.static can be installed locally
15
# add module ahci
15
# add module ahci
16
# add module forcedeth 
16
# add module forcedeth 
17
# source ../../livecd.conf instead of ../config
-
 
18
# changes need for SL5:
-
 
19
#  - initrd blocksize to 4096 (instead of 1024)
-
 
20
#  - add fscache (for NFS support)
-
 
21
#  - add ide-cd, cdrom (for CD-ROM support)
-
 
22
#
17
#
23
 
18
 
24
# . ../config || exit 1
19
. ../config || exit 1
25
. ../../livecd.conf || exit 1
-
 
26
 
-
 
27
echo "take blocksize=$INITRD_BLOCKSIZE for initrd"
-
 
28
 
20
 
29
# arch
21
# arch
30
ARCH=$( /bin/arch )
22
ARCH=$( /bin/arch )
31
[ "$ARCH" != "x86_64" ] && ARCH=i686
23
[ "$ARCH" != "x86_64" ] && ARCH=i686
32
 
24
 
Line 161... Line 153...
161
 
153
 
162
# for NFS support
154
# for NFS support
163
rcopy_ex /$LMK/kernel/fs/nfs $INITRD_TREE 2>/dev/null
155
rcopy_ex /$LMK/kernel/fs/nfs $INITRD_TREE 2>/dev/null
164
rcopy_ex /$LMK/kernel/fs/nfs_common $INITRD_TREE 2>/dev/null
156
rcopy_ex /$LMK/kernel/fs/nfs_common $INITRD_TREE 2>/dev/null
165
rcopy_ex /$LMK/kernel/fs/lockd $INITRD_TREE 2>/dev/null
157
rcopy_ex /$LMK/kernel/fs/lockd $INITRD_TREE 2>/dev/null
166
rcopy_ex /$LMK/kernel/fs/fscache $INITRD_TREE 2>/dev/null
-
 
167
rcopy_ex /$LMK/kernel/net/sunrpc $INITRD_TREE 2>/dev/null
-
 
168
rcopy_ex /$LMK/kernel/net/sunrpc $INITRD_TREE 2>/dev/null
158
rcopy_ex /$LMK/kernel/net/sunrpc $INITRD_TREE 2>/dev/null
169
 
159
 
170
# net drivers
160
# net drivers
171
rcopy_ex /$LMK/kernel/drivers/net/mii.ko $INITRD_TREE 2>/dev/null
161
rcopy_ex /$LMK/kernel/drivers/net/mii.ko $INITRD_TREE 2>/dev/null
172
rcopy_ex /$LMK/kernel/drivers/net/3c59x.ko $INITRD_TREE 2>/dev/null
162
rcopy_ex /$LMK/kernel/drivers/net/3c59x.ko $INITRD_TREE 2>/dev/null
Line 186... Line 176...
186
rcopy_ex /$LMK/updates/drivers/net/sky2/sky2.ko $INITRD_TREE 2>/dev/null
176
rcopy_ex /$LMK/updates/drivers/net/sky2/sky2.ko $INITRD_TREE 2>/dev/null
187
 
177
 
188
# add language support for filesystems
178
# add language support for filesystems
189
rcopy_ex /$LMK/kernel/fs/nls/ $INITRD_TREE 2>/dev/null
179
rcopy_ex /$LMK/kernel/fs/nls/ $INITRD_TREE 2>/dev/null
190
 
180
 
191
# cdrom support (for SL5)
-
 
192
rcopy_ex /$LMK/kernel/drivers/ide/ide-cd.ko $INITRD_TREE 2>/dev/null
-
 
193
rcopy_ex /$LMK/kernel/drivers/cdrom/cdrom.ko $INITRD_TREE 2>/dev/null
-
 
194
 
-
 
195
# usb modules
181
#usb modules
196
rcopy_ex /$LMK/kernel/drivers/usb/storage $INITRD_TREE 2>/dev/null
182
rcopy_ex /$LMK/kernel/drivers/usb/storage $INITRD_TREE 2>/dev/null
197
rcopy_ex /$LMK/kernel/drivers/usb/host/ehci-hcd* $INITRD_TREE 2>/dev/null
183
rcopy_ex /$LMK/kernel/drivers/usb/host/ehci-hcd* $INITRD_TREE 2>/dev/null
198
rcopy_ex /$LMK/kernel/drivers/usb/host/ohci-hcd* $INITRD_TREE 2>/dev/null
184
rcopy_ex /$LMK/kernel/drivers/usb/host/ohci-hcd* $INITRD_TREE 2>/dev/null
199
rcopy_ex /$LMK/kernel/drivers/usb/host/uhci-hcd* $INITRD_TREE 2>/dev/null
185
rcopy_ex /$LMK/kernel/drivers/usb/host/uhci-hcd* $INITRD_TREE 2>/dev/null
200
rcopy_ex /$LMK/kernel/drivers/scsi/scsi_mod.ko $INITRD_TREE 2>/dev/null
186
rcopy_ex /$LMK/kernel/drivers/scsi/scsi_mod.ko $INITRD_TREE 2>/dev/null
Line 217... Line 203...
217
 
203
 
218
debug "generating module dependency files"
204
debug "generating module dependency files"
219
depmod -b $INITRD_TREE $KERNEL
205
depmod -b $INITRD_TREE $KERNEL
220
 
206
 
221
debug "creating empty image file $INITRDIMG"
207
debug "creating empty image file $INITRDIMG"
222
dd if=/dev/zero of=$INITRDIMG bs=$INITRD_BLOCKSIZE count=$RAM0SIZE >/dev/null 2>/dev/null
208
dd if=/dev/zero of=$INITRDIMG bs=1024 count=$RAM0SIZE >/dev/null 2>/dev/null
223
 
209
 
224
debug "making filesystem"
210
debug "making filesystem"
225
mkfs -t ext2 -F -m 0 -b $INITRD_BLOCKSIZE -i 1024 $INITRDIMG 2>/dev/null >/dev/null
211
mkfs -t ext2 -F -m 0 -b 1024 -i 1024 $INITRDIMG 2>/dev/null >/dev/null
226
 
212
 
227
debug "creating empty directory $MOUNTDIR"
213
debug "creating empty directory $MOUNTDIR"
228
rm -Rf $MOUNTDIR
214
rm -Rf $MOUNTDIR
229
mkdir $MOUNTDIR
215
mkdir $MOUNTDIR
230
 
216