1
0
forked from pool/kernel-source
OBS User unknown
2008-09-29 16:18:36 +00:00
committed by Git OBS Bridge
parent fd90e837e9
commit 8abb94f778
50 changed files with 78917 additions and 1565 deletions

43
post.sh
View File

@@ -26,27 +26,29 @@ if [ -f /proc/cpuinfo ]; then
esac
fi
echo Setting up /lib/modules/@KERNELRELEASE@
suffix=
case @FLAVOR@ in
kdump|ps3|um|xen*)
suffix=-@FLAVOR@
;;
esac
for x in /boot/@IMAGE@ /boot/initrd; do
rm -f $x$suffix
ln -s ${x##*/}-@KERNELRELEASE@ $x$suffix
done
if [ -e /lib/modules/@KERNELRELEASE@ ]; then
echo Setting up /lib/modules/@KERNELRELEASE@
suffix=
case @FLAVOR@ in
kdump|ps3|um|xen*)
suffix=-@FLAVOR@
;;
esac
for x in /boot/@IMAGE@ /boot/initrd; do
rm -f $x$suffix
ln -s ${x##*/}-@KERNELRELEASE@ $x$suffix
done
if [ -x /sbin/module_upgrade ]; then
/sbin/module_upgrade --rename mptscsih="mptspi mptfc mptsas"
fi
if [ -x /sbin/module_upgrade ]; then
/sbin/module_upgrade --rename mptscsih="mptspi mptfc mptsas"
fi
# Add symlinks of compatible modules to /lib/modules/$krel/weak-updates/.
if [ -x /usr/lib/module-init-tools/weak-modules ]; then
/usr/lib/module-init-tools/weak-modules --add-kernel @KERNELRELEASE@
# Add symlinks of compatible modules to /lib/modules/$krel/weak-updates/.
if [ -x /usr/lib/module-init-tools/weak-modules ]; then
/usr/lib/module-init-tools/weak-modules --add-kernel @KERNELRELEASE@
fi
/sbin/depmod -a -F /boot/System.map-@KERNELRELEASE@ @KERNELRELEASE@
fi
/sbin/depmod -a -F /boot/System.map-@KERNELRELEASE@ @KERNELRELEASE@
message_install_bl () {
echo "You may need to setup and install the boot loader using the"
@@ -54,6 +56,11 @@ message_install_bl () {
}
run_bootloader () {
# Only create the bootloader entry when installing kernel-$flavor-base.
if [ @SUBPACKAGE@ != kernel-@FLAVOR@-base ]; then
return 1
fi
if [ -f /etc/sysconfig/bootloader ] &&
[ -f /boot/grub/menu.lst -o \
-f /etc/lilo.conf -o \