Add (py)grub entry for xen kernel
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 10 Sep 2009 21:49:31 +0000 (23:49 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 10 Sep 2009 21:49:31 +0000 (23:49 +0200)
removed old linux25 installfiles

src/paks/linux-xen/install.sh [moved from src/paks/linux25/install.sh with 83% similarity]
src/paks/linux-xen/uninstall.sh [moved from src/paks/linux25/uninstall.sh with 96% similarity]
src/paks/linux-xen/update.sh [moved from src/paks/linux25/update.sh with 100% similarity]

similarity index 83%
rename from src/paks/linux25/install.sh
rename to src/paks/linux-xen/install.sh
index b50bc3392303480a2090faea4553163ab3d95ebd..7af7d6e6d594a238921115c69ace3db1d41d3fe8 100644 (file)
@@ -24,7 +24,7 @@
 . /opt/pakfire/lib/functions.sh
 extract_files
 #
-KVER=2.6.25.18
+KVER=2.6.27.31
 ROOT=`grep "root=" /boot/grub/grub.conf | cut -d"=" -f2 | cut -d" " -f1 | tail -n 1`
 MOUNT=`grep "kernel" /boot/grub/grub.conf | tail -n 1`
 # Nur den letzten Parameter verwenden
@@ -37,26 +37,21 @@ let ENTRY=$_+1
 #
 # backup grub.conf
 #
-cp /boot/grub/grub.conf /boot/grub/grub-backup-$KVER.conf
+cp /boot/grub/grub.conf /boot/grub/grub-backup-$KVER-xen.conf
 #
 # Add new Entry to grub.conf
 #
 echo "" >> /boot/grub/grub.conf
-echo "title IPFire alternative Kernel:$KVER" >> /boot/grub/grub.conf
+echo "title IPFire Xen-Kernel:$KVER" >> /boot/grub/grub.conf
 echo "  root (hd0,0)" >> /boot/grub/grub.conf
-echo "  kernel /vmlinuz-$KVER-ipfire root=$ROOT rootdelay=10 panic=10 $MOUNT" >> /boot/grub/grub.conf
-echo "  initrd /ipfirerd-$KVER.img" >> /boot/grub/grub.conf
+echo "  kernel /vmlinuz-$KVER-ipfire-xen root=$ROOT rootdelay=10 panic=10 $MOUNT" >> /boot/grub/grub.conf
+echo "  initrd /ipfirerd-$KVER-xen.img" >> /boot/grub/grub.conf
 echo "  savedefault $ENTRY" >> /boot/grub/grub.conf
 #
 # Made initramdisk
 #
-mkinitcpio -k $KVER-ipfire -g /boot/ipfirerd-$KVER.img
-#
-# ReInstall grub
-#
-grub-install --no-floppy ${ROOT::`expr length $ROOT`-1}
+mkinitcpio -k $KVER-ipfire-xen -g /boot/ipfirerd-$KVER-xen.img
 #
 # Create new module depency
 #
-depmod -a $KVER-ipfire
-
+depmod -a $KVER-ipfire-xen
similarity index 96%
rename from src/paks/linux25/uninstall.sh
rename to src/paks/linux-xen/uninstall.sh
index bbe478f9f2c9bb6f9261a4513b8a17a2ee7a7a9d..6c07f7e12eab397fa924541388166dd2522a982d 100644 (file)
@@ -23,4 +23,4 @@
 #
 . /opt/pakfire/lib/functions.sh
 remove_files
-mv -f /boot/grub/grub-backup-2.6.25.*.conf /boot/grub/grub.conf
+mv -f /boot/grub/grub-backup-2.6.27.*.-xen.conf /boot/grub/grub.conf