Subversion Repositories livecd

Rev

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

Rev 23 Rev 26
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
10
# - copy /boot/System.map-* and /boot/config-* to $CDDATA/boot
11
#   and copy /boot/grub/splash.xpm.gz to CDDATA/boot/grub
11
#   copy /boot/grub/splash.xpm.gz to $CDDATA/boot/grub
-
 
12
#   copy /boot/message* $CDDATA/boot/
-
 
13
#   copy /boot/symvers-* $CDDATA/boot/
12
#   both needed for install LiveCD in local harddisk
14
#   all needed for install LiveCD in local harddisk
13
# - config no longer sourced, we take ../livecd.conf
15
# - config no longer sourced, we take ../livecd.conf
14
#
16
#
15
 
17
 
16
export LANG=C
18
export LANG=C
17
 
19
 
Line 75... Line 77...
75
    echo "using kernel from $VMLINUZ_SMP"
77
    echo "using kernel from $VMLINUZ_SMP"
76
    echo "and kernel modules from /lib/modules/${KERNEL}smp"
78
    echo "and kernel modules from /lib/modules/${KERNEL}smp"
77
    cp -a $VMLINUZ_SMP $CDDATA/boot/vmlinuz${SMP}
79
    cp -a $VMLINUZ_SMP $CDDATA/boot/vmlinuz${SMP}
78
fi
80
fi
79
 
81
 
80
# copy System.map and config to LiveCD
82
# copy System.map, config, etc. to LiveCD /boot
81
cp -a $ROOT/boot/System.map-* $CDDATA/boot/
83
cp -a $ROOT/boot/System.map-* $CDDATA/boot/
82
cp -a $ROOT/boot/config-* $CDDATA/boot/
84
cp -a $ROOT/boot/config-*  $CDDATA/boot/
-
 
85
cp -a $ROOT/boot/message*  $CDDATA/boot/
-
 
86
cp -a $ROOT/boot/symvers-* $CDDATA/boot/ 2>/dev/null
83
 
87
 
84
BUILD_KERNELS="$KERNEL"
88
BUILD_KERNELS="$KERNEL"
85
[ $SMP ] && BUILD_KERNELS="$BUILD_KERNELS ${KERNEL}smp"
89
[ $SMP ] && BUILD_KERNELS="$BUILD_KERNELS ${KERNEL}smp"
86
 
90
 
87
echo "creating initrd image..."
91
echo "creating initrd image..."