Subversion Repositories livecd

Rev

Rev 2 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 2 Rev 16
Line 5... Line 5...
5
# 
5
# 
6
# Urs Beyerle, PSI:
6
# Urs Beyerle, PSI:
7
# - add x86_64 support
7
# - add x86_64 support
8
# - add support to build for UP and SMP kernel
8
# - add support to build for UP and SMP kernel
9
#   SMP kernel is added to LiveCD, if variable $SMP is set
9
#   SMP kernel is added to LiveCD, if variable $SMP is set
-
 
10
# - copy System.map-* and config-* to CDDATA/boot
-
 
11
#   and copy /boot/grub/splash.xpm.gz to CDDATA/boot/grub
-
 
12
#   both needed for install LiveCD in local harddisk
10
#
13
#
11
 
14
 
12
export LANG=C
15
export LANG=C
13
 
16
 
14
ARCH=$( /bin/arch )
17
ARCH=$( /bin/arch )
Line 56... Line 59...
56
fi
59
fi
57
 
60
 
58
# cp -R tools $CDDATA
61
# cp -R tools $CDDATA
59
cp -R info/* $CDDATA
62
cp -R info/* $CDDATA
60
 
63
 
-
 
64
# copy splash.xpm.gz to LiveCD
-
 
65
mkdir -p $CDDATA/boot/grub
-
 
66
cp -a $ROOT/boot/grub/splash.xpm.gz $CDDATA/boot/grub/
-
 
67
 
-
 
68
# copy kernel(s) to LiveCD
61
echo "using kernel from $VMLINUZ"
69
echo "using kernel from $VMLINUZ"
62
echo "and kernel modules from /lib/modules/$KERNEL"
70
echo "and kernel modules from /lib/modules/$KERNEL"
63
cp $VMLINUZ $CDDATA/boot/vmlinuz
71
cp -a $VMLINUZ $CDDATA/boot/vmlinuz
64
if [ $SMP ]; then 
72
if [ $SMP ]; then 
65
    echo "using kernel from $VMLINUZ_SMP"
73
    echo "using kernel from $VMLINUZ_SMP"
66
    echo "and kernel modules from /lib/modules/${KERNEL}smp"
74
    echo "and kernel modules from /lib/modules/${KERNEL}smp"
67
    cp $VMLINUZ_SMP $CDDATA/boot/vmlinuz${SMP}
75
    cp -a $VMLINUZ_SMP $CDDATA/boot/vmlinuz${SMP}
68
fi
76
fi
69
 
77
 
-
 
78
# copy System.map and config to LiveCD
-
 
79
cp -a $ROOT/boot/System.map-* $CDDATA/boot/
-
 
80
cp -a $ROOT/boot/config-* $CDDATA/boot/
-
 
81
 
70
BUILD_KERNELS="$KERNEL"
82
BUILD_KERNELS="$KERNEL"
71
[ $SMP ] && BUILD_KERNELS="$BUILD_KERNELS ${KERNEL}smp"
83
[ $SMP ] && BUILD_KERNELS="$BUILD_KERNELS ${KERNEL}smp"
72
 
84
 
73
echo "creating initrd image..."
85
echo "creating initrd image..."
74
 
86