2011-05-19 16:02:37 +02:00
|
|
|
# make initramfs
|
|
|
|
|
|
|
|
chroot $MOUNTDIR depmod -a ${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
|
|
|
|
|
|
|
LANG=${LANGUAGE}_${COUNTRY} chroot $MOUNTDIR dracut \
|
2015-11-12 16:52:06 +01:00
|
|
|
--filesystems "autofs4 ext3 ext4 overlay squashfs isofs reiserfs" \
|
2011-05-19 16:02:37 +02:00
|
|
|
--nomdadmconf --nolvmconf \
|
|
|
|
/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz \
|
|
|
|
${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
|
|
|
|
|
|
|
# add buildinfo
|
|
|
|
buildinfo="`cat $MOUNTDIR/etc/openmamba-release` ${PLATFORM}"
|
|
|
|
|
|
|
|
# configure extlinux boot loader
|
|
|
|
cat > $MOUNTDIR/boot/extlinux.conf << _EOF
|
|
|
|
PROMPT 0
|
|
|
|
TIMEOUT 20
|
|
|
|
DEFAULT vesamenu.c32
|
|
|
|
MENU TITLE ${buildinfo} (${KERNEL_MAJVER}${KERNEL_EXTRAVER} kernel)
|
|
|
|
MENU BACKGROUND openmamba.png
|
|
|
|
MENU COLOR TITLE 1;32;49 #ff00993d #00000000 std
|
|
|
|
|
|
|
|
LABEL kms
|
|
|
|
MENU LABEL default
|
|
|
|
kernel /boot/vmlinuz-${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
2013-07-15 01:40:08 +02:00
|
|
|
append initrd=/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz root=live:/openmamba_live/openmamba-live.iso ro selinux=0 quiet splash vga=789
|
2011-05-19 16:02:37 +02:00
|
|
|
LABEL vga1024
|
|
|
|
MENU LABEL VGA 1024x768 (no modeset)
|
|
|
|
kernel /boot/vmlinuz-${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
|
|
|
append initrd=/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz root=live:/openmamba_live/openmamba-live.iso ro selinux=0 quiet splash vga=792 nomodeset
|
|
|
|
LABEL vga800
|
|
|
|
MENU LABEL VGA 800x600 (no modeset)
|
|
|
|
kernel /boot/vmlinuz-${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
|
|
|
append initrd=/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz root=live:/openmamba_live/openmamba-live.iso ro selinux=0 quiet splash vga=789 nomodeset
|
|
|
|
LABEL debug
|
|
|
|
MENU LABEL Debug mode
|
|
|
|
kernel /boot/vmlinuz-${KERNEL_MAJVER}${KERNEL_EXTRAVER}
|
|
|
|
append initrd=/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img.gz root=live:/openmamba_live/openmamba-live.iso ro selinux=0 rddebug nomodeset
|
|
|
|
MENU SEPARATOR
|
|
|
|
LABEL memtest
|
|
|
|
MENU LABEL Memory test
|
|
|
|
kernel memtest
|
|
|
|
MENU SEPARATOR
|
|
|
|
MENU SEPARATOR
|
|
|
|
LABEL -
|
|
|
|
MENU LABEL $PRODUCT_NAME build:`date -R`
|
|
|
|
MENU DISABLE
|
|
|
|
_EOF
|
|
|
|
|
|
|
|
# rename memtest.bin because syslinux/extlinux consider .bin extension as
|
|
|
|
# other thing
|
|
|
|
mv $MOUNTDIR/boot/memtest.bin $MOUNTDIR/boot/memtest
|
|
|
|
|
|
|
|
# copy /boot directory to final root
|
2012-03-17 18:03:13 +01:00
|
|
|
cp -a --no-preserve=ownership $MOUNTDIR/boot $MOUNTDIR2
|
2011-05-19 16:02:37 +02:00
|
|
|
|
|
|
|
# copy syslinux addons to final root /boot dir
|
2014-04-25 12:04:32 +02:00
|
|
|
cp $MOUNTDIR/usr/share/syslinux/vesamenu.c32 $MOUNTDIR2/boot/
|
2011-05-19 16:02:37 +02:00
|
|
|
|
|
|
|
# copy static files for specific platform
|
|
|
|
[ -e $TARGETDIR/platforms/$PLATFORM/root ] &&
|
2012-03-17 18:03:13 +01:00
|
|
|
cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root/* $MOUNTDIR2/
|
2011-05-19 16:02:37 +02:00
|
|
|
|
|
|
|
# copy localized static files for specific platform
|
|
|
|
[ "$LANGUAGE" -a -e $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE ] &&
|
2012-03-17 18:03:13 +01:00
|
|
|
cp -a --no-preserve=ownership $TARGETDIR/platforms/$PLATFORM/root-$LANGUAGE/* $MOUNTDIR2/
|
2011-05-19 16:02:37 +02:00
|
|
|
|
|
|
|
## add buildinfo
|
|
|
|
#buildinfo="`cat $MOUNTDIR/etc/openmamba-release` [$PRODUCT_NAME build:`date +%c`]"
|
|
|
|
#sed -i "s|%buildinfo%|$buildinfo|" $MOUNTDIR2/boot/isolinux/menu.txt
|
|
|
|
|
|
|
|
MOUNTDIR=$MOUNTDIR2 produce_media $MEDIA_NAME
|
|
|
|
|
|
|
|
exit 0
|