Yet some other fixes/port from openmamba-milestone2 for dual kernel support
This commit is contained in:
parent
f95185e746
commit
6667a008eb
@ -56,13 +56,15 @@ for f in /usr/share/applications/chromium-devel.desktop \
|
|||||||
done
|
done
|
||||||
|
|
||||||
# prebuild postplug sound CARDID_DB (with some ugly trick to make it work from chroot)
|
# 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
|
||||||
echo "SOUND_BUILD_CARDID_DB_ONLY=1 /etc/postplug/postplug.d/sound" >> $MOUNTDIR/tmp/sounddb.sh
|
[ -e $MOUNTDIR/lib/modules/`uname -r` ] || ln -s ${KERNEL_MAJVER}${K} $MOUNTDIR/lib/modules/`uname -r`
|
||||||
chroot $MOUNTDIR sh /tmp/sounddb.sh
|
echo "SOUND_BUILD_CARDID_DB_ONLY=1 /etc/postplug/postplug.d/sound" >> $MOUNTDIR/tmp/sounddb.sh
|
||||||
rm -f $MOUNTDIR/tmp/sounddb.sh
|
chroot $MOUNTDIR sh /tmp/sounddb.sh
|
||||||
[ -L $MOUNTDIR/lib/modules/`uname -r` ] && rm $MOUNTDIR/lib/modules/`uname -r`
|
rm -f $MOUNTDIR/tmp/sounddb.sh
|
||||||
|
[ -L $MOUNTDIR/lib/modules/`uname -r` ] && rm $MOUNTDIR/lib/modules/`uname -r`
|
||||||
|
|
||||||
# remove unused initramfs generated by kernel
|
# 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
|
prelink
|
||||||
|
@ -64,7 +64,7 @@ done
|
|||||||
|
|
||||||
ISOID=
|
ISOID=
|
||||||
for K in $KERNEL_EXTRAVER $KERNEL_MORE_EXTRAVER; do
|
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}
|
LABEL vga1024-${KERNEL_MAJVER}${K}
|
||||||
MENU LABEL VGA 1024x768 no modeset (${KERNEL_MAJVER}${K})
|
MENU LABEL VGA 1024x768 no modeset (${KERNEL_MAJVER}${K})
|
||||||
kernel /boot/vmlinuz${ISOID}
|
kernel /boot/vmlinuz${ISOID}
|
||||||
|
Loading…
Reference in New Issue
Block a user