]> git.ipfire.org Git - ipfire-2.x.git/blobdiff - lfs/linux-initrd
zabbix_agentd: Bugfix for /etc/sudoers.d/zabbix.user
[ipfire-2.x.git] / lfs / linux-initrd
index e4d449b246dc46ea923bb494084def373d6ec392..f5bd4527bdb84e93873fa5cb4726f5fbe1f8e27f 100644 (file)
@@ -1,7 +1,7 @@
 ###############################################################################
 #                                                                             #
 # IPFire.org - A linux based firewall                                         #
-# Copyright (C) 2007-2014  IPFire Team <info@ipfire.org>                      #
+# Copyright (C) 2007-2018  IPFire Team  <info@ipfire.org>                     #
 #                                                                             #
 # This program is free software: you can redistribute it and/or modify        #
 # it under the terms of the GNU General Public License as published by        #
@@ -65,11 +65,19 @@ ifneq "$(KCFG)" "-pae"
        dracut --force --early-microcode --verbose --strip --xz /boot/initramfs-$(KVER)-$(VERSUFIX).img $(KVER)-$(VERSUFIX)
 
 ifeq "$(KCFG)" "-kirkwood"
-       cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
+#      cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
+       cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(KVER)-$(VERSUFIX)
+       cd /boot && rm initramfs-$(KVER)-$(VERSUFIX).img
 endif
 
 ifeq "$(KCFG)" "-multi"
-       cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(VERSUFIX)
+       cd /boot && mkimage -A arm -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(KVER)-$(VERSUFIX)
+       cd /boot && rm initramfs-$(KVER)-$(VERSUFIX).img
+endif
+
+ifeq "$(BUILD_ARCH)" "aarch64"
+       cd /boot && mkimage -A arm64 -T ramdisk -C lzma -d initramfs-$(KVER)-$(VERSUFIX).img uInit-$(KVER)-$(VERSUFIX)
+       # dont remove initramfs because grub need this to boot.
 endif
 
 endif