Subversion Repositories livecd

Rev

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

Rev 23 Rev 37
Line 18... Line 18...
18
# changes need for SL5:
18
# changes need for SL5:
19
#  - initrd blocksize to 4096 (instead of 1024)
19
#  - initrd blocksize to 4096 (instead of 1024)
20
#  - add fscache (for NFS support)
20
#  - add fscache (for NFS support)
21
#  - add ide-cd, cdrom (for CD-ROM support)
21
#  - add ide-cd, cdrom (for CD-ROM support)
22
# read $KERNEL from $1, can overwrite setting in livecd.conf
22
# read $KERNEL from $1, can overwrite setting in livecd.conf
-
 
23
# add aufs (replace for unionfs)
-
 
24
# add rev to static-binaries (for unionfs of aufs)
23
#
25
#
24
 
26
 
25
# . ../config || exit 1
27
# . ../config || exit 1
26
 
28
 
27
. ../../livecd.conf || exit 1
29
. ../../livecd.conf || exit 1
Line 84... Line 86...
84
 
86
 
85
LMK="lib/modules/$KERNEL"
87
LMK="lib/modules/$KERNEL"
86
 
88
 
87
if [ ! -e /$LMK/kernel/fs/unionfs/unionfs.ko ] && \
89
if [ ! -e /$LMK/kernel/fs/unionfs/unionfs.ko ] && \
88
   [ ! -e kernel-modules/${KERNEL}_$ARCH/unionfs.ko.gz ]; then
90
   [ ! -e kernel-modules/${KERNEL}_$ARCH/unionfs.ko.gz ]; then
-
 
91
    if [ ! -e /$LMK/kernel/fs/aufs/aufs.ko ] && \
-
 
92
	[ ! -e kernel-modules/${KERNEL}_$ARCH/aufs.ko.gz ]; then
89
    echo "ERROR: Unionfs kernel module not found."
93
	echo "ERROR: aufs or unionfs kernel module not found."
90
    exit 1
94
	exit 1
-
 
95
    fi
91
fi
96
fi
92
 
97
 
93
if [ ! -e /$LMK/kernel/fs/squashfs/squashfs.ko ] && \
98
if [ ! -e /$LMK/kernel/fs/squashfs/squashfs.ko ] && \
94
   [ ! -e kernel-modules/${KERNEL}_$ARCH/squashfs.ko.gz ]; then
99
   [ ! -e kernel-modules/${KERNEL}_$ARCH/squashfs.ko.gz ]; then
95
    echo "ERROR: Squashfs kernel module not found."
100
    echo "ERROR: Squashfs kernel module not found."
Line 139... Line 144...
139
# dhcp startup script
144
# dhcp startup script
140
cp static-binaries/udhcpc.script $INITRD_TREE/bin
145
cp static-binaries/udhcpc.script $INITRD_TREE/bin
141
ln -s ../bin/busybox $INITRD_TREE/sbin/ifconfig
146
ln -s ../bin/busybox $INITRD_TREE/sbin/ifconfig
142
 
147
 
143
# lspci and pcitable for network card detection
148
# lspci and pcitable for network card detection
144
cp static-binaries/lspci $INITRD_TREE/sbin
149
cp static-binaries/lspci    $INITRD_TREE/sbin
145
cp static-binaries/pcitable $INITRD_TREE/bin
150
cp static-binaries/pcitable $INITRD_TREE/bin
146
 
151
 
-
 
152
# rev for unionfs (of aufs)
-
 
153
cp static-binaries/rev      $INITRD_TREE/bin
-
 
154
 
147
 
155
 
148
LMK="lib/modules/$KERNEL"
156
LMK="lib/modules/$KERNEL"
149
 
157
 
150
#necessary modules and dependency files
158
#necessary modules and dependency files
151
mkdir -p $INITRD_TREE/$LMK/kernel/fs
159
mkdir -p $INITRD_TREE/$LMK/kernel/fs
152
cp kernel-modules/${KERNEL}_$ARCH/unionfs.ko.gz $INITRD_TREE/$LMK/kernel/fs 2>/dev/null
160
cp kernel-modules/${KERNEL}_$ARCH/unionfs.ko.gz $INITRD_TREE/$LMK/kernel/fs 2>/dev/null
-
 
161
cp kernel-modules/${KERNEL}_$ARCH/aufs.ko.gz $INITRD_TREE/$LMK/kernel/fs 2>/dev/null
153
cp kernel-modules/${KERNEL}_$ARCH/squashfs.ko.gz $INITRD_TREE/$LMK/kernel/fs 2>/dev/null
162
cp kernel-modules/${KERNEL}_$ARCH/squashfs.ko.gz $INITRD_TREE/$LMK/kernel/fs 2>/dev/null
154
rcopy_ex /$LMK/kernel/fs/unionfs $INITRD_TREE 2>/dev/null
163
rcopy_ex /$LMK/kernel/fs/unionfs $INITRD_TREE 2>/dev/null
-
 
164
rcopy_ex /$LMK/kernel/fs/aufs $INITRD_TREE 2>/dev/null
155
rcopy_ex /$LMK/kernel/fs/squashfs $INITRD_TREE 2>/dev/null
165
rcopy_ex /$LMK/kernel/fs/squashfs $INITRD_TREE 2>/dev/null
156
 
166
 
157
#copy filesystem modules, if not directly copied into kernel
167
#copy filesystem modules, if not directly copied into kernel
158
rcopy_ex /$LMK/kernel/lib/zlib_inflate $INITRD_TREE 2>/dev/null
168
rcopy_ex /$LMK/kernel/lib/zlib_inflate $INITRD_TREE 2>/dev/null
159
rcopy_ex /$LMK/kernel/drivers/block/loop* $INITRD_TREE 2>/dev/null
169
rcopy_ex /$LMK/kernel/drivers/block/loop* $INITRD_TREE 2>/dev/null