]> git.ipfire.org Git - people/ms/ipfire-2.x.git/commitdiff
rebuild-initrd: update for grub2
authorArne Fitzenreiter <arne_f@ipfire.org>
Thu, 20 Sep 2018 18:03:26 +0000 (20:03 +0200)
committerArne Fitzenreiter <arne_f@ipfire.org>
Thu, 20 Sep 2018 18:03:26 +0000 (20:03 +0200)
this was was not used for years because we usually ship a prebuild ramdisk
so this incompatiblity was not noticed long time...

Signed-off-by: Arne Fitzenreiter <arne_f@ipfire.org>
src/scripts/rebuild-initrd

index 91e68ca571b2bc0a189dabfd62017c43111ebce1..3dd08dc215f1d68eafb9969018d1dd96105ddd3c 100644 (file)
 # along with IPFire; if not, write to the Free Software                    #
 # Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA #
 #                                                                          #
-# Copyright (C) 2008 IPFire-Team <info@ipfire.org>.                        #
+# Copyright (C) 2018 IPFire-Team <info@ipfire.org>.                        #
 #                                                                          #
 ############################################################################
 #
 #
-KVER=`uname -r | cut -d"-" -f1`
+KVER=`uname -r`
 
-dracut --force --early-microcode --verbose /boot/ipfirerd-$KVER.img $KVER-ipfire
+dracut --force --early-microcode --xz /boot/initramfs-$KVER.img $KVER