Upgrade grub-pc with kernel-cn.
authorValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 29 Oct 2013 13:07:14 +0000 (14:07 +0100)
committerValentin Vidic <Valentin.Vidic@CARNet.hr>
Tue, 29 Oct 2013 13:07:14 +0000 (14:07 +0100)
src/functions.sh

index d9c9734..1d94faa 100644 (file)
@@ -985,7 +985,12 @@ upgrade_mailman() {
 upgrade_kernel() {
   if pkg kernel-2.6-cn; then
     pkgrm kernel-2.6-cn
-    pkgadd kernel-cn
+
+    if pkg grub-pc; then
+      pkgadd kernel-cn grub-pc
+    else
+      pkgadd kernel-cn
+    fi
   fi
 }