Yet some other fixes/port from openmamba-milestone2 for dual kernel support

This commit is contained in:
Silvan Calarco 2011-10-19 14:03:47 +02:00
parent f95185e746
commit 6667a008eb
2 changed files with 10 additions and 8 deletions

View File

@ -56,13 +56,15 @@ for f in /usr/share/applications/chromium-devel.desktop \
done
# prebuild postplug sound CARDID_DB (with some ugly trick to make it work from chroot)
[ -e $MOUNTDIR/lib/modules/`uname -r` ] || ln -s ${KERNEL_MAJVER}${KERNEL_EXTRAVER} $MOUNTDIR/lib/modules/`uname -r`
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
[ -e $MOUNTDIR/lib/modules/`uname -r` ] || ln -s ${KERNEL_MAJVER}${K} $MOUNTDIR/lib/modules/`uname -r`
echo "SOUND_BUILD_CARDID_DB_ONLY=1 /etc/postplug/postplug.d/sound" >> $MOUNTDIR/tmp/sounddb.sh
chroot $MOUNTDIR sh /tmp/sounddb.sh
rm -f $MOUNTDIR/tmp/sounddb.sh
[ -L $MOUNTDIR/lib/modules/`uname -r` ] && rm $MOUNTDIR/lib/modules/`uname -r`
# remove unused initramfs generated by kernel
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${KERNEL_EXTRAVER}.img*
rm -f $MOUNTDIR/boot/initramfs-${KERNEL_MAJVER}${K}.img*
done
prelink

View File

@ -64,7 +64,7 @@ done
ISOID=
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
cat >> $MOUNTDIR2/boot/isolinux/isolinux/isolinux.cfg << _EOF
cat >> $MOUNTDIR2/boot/isolinux/isolinux.cfg << _EOF
LABEL vga1024-${KERNEL_MAJVER}${K}
MENU LABEL VGA 1024x768 no modeset (${KERNEL_MAJVER}${K})
kernel /boot/vmlinuz${ISOID}