Subversion Repositories livecd

Rev

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

Rev 1 Rev 23
Line 17... Line 17...
17
# source ../../livecd.conf instead of ../config
17
# source ../../livecd.conf instead of ../config
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
#
23
#
23
 
24
 
24
# . ../config || exit 1
25
# . ../config || exit 1
-
 
26
 
25
. ../../livecd.conf || exit 1
27
. ../../livecd.conf || exit 1
26
 
28
 
-
 
29
# set an other kernel than the one set in livecd.conf
-
 
30
[ "$1" ] && KERNEL=$1
27
echo "take blocksize=$INITRD_BLOCKSIZE for initrd"
31
echo "take blocksize=$INITRD_BLOCKSIZE for initrd"
28
 
32
 
29
# arch
33
# arch
30
ARCH=$( /bin/arch )
34
ARCH=$( /bin/arch )
31
[ "$ARCH" != "x86_64" ] && ARCH=i686
35
[ "$ARCH" != "x86_64" ] && ARCH=i686
32
 
36
 
-
 
37
 
-
 
38
 
33
# rcopy is a recursive cp, which copies also symlink's real source
39
# rcopy is a recursive cp, which copies also symlink's real source
34
# $1 = source (may be a regular file or symlink)
40
# $1 = source (may be a regular file or symlink)
35
# $2 = target PARENT
41
# $2 = target PARENT
36
#
42
#
37
rcopy()
43
rcopy()