X-Git-Url: http://git.ipfire.org/?a=blobdiff_plain;f=lfs%2Fflash-images;h=d10fc9bbf93d13b201e2c980b2c15d88557545b5;hb=cc2a2209d8797569013c9dec58ff10e49dfabec5;hp=6c88180598b659dfa2ae79f77a5be3e9c4cf6592;hpb=23a42d00de983ba50f1caecbb0719e2d4fdefbc9;p=ipfire-2.x.git diff --git a/lfs/flash-images b/lfs/flash-images index 6c88180598..d10fc9bbf9 100644 --- a/lfs/flash-images +++ b/lfs/flash-images @@ -1,7 +1,7 @@ ############################################################################### # # # IPFire.org - A linux based firewall # -# Copyright (C) 2007-2014 IPFire Team # +# Copyright (C) 2007-2016 IPFire Team # # # # 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 # @@ -121,9 +121,14 @@ ifeq "$(MACHINE_TYPE)" "arm" cp -v /boot/MLO $(MNThdd)/boot/ cp -v /boot/u-boot.img $(MNThdd)/boot/ cp -v /boot/zImage-ipfire-multi $(MNThdd)/boot/ + cp -v /boot/uInit-ipfire-multi $(MNThdd)/boot/ + cp -v /boot/uImage-ipfire-kirkwood $(MNThdd)/boot/ + cp -v /boot/uInit-ipfire-kirkwood $(MNThdd)/boot/ + cp -v /boot/uEnv.txt $(MNThdd)/boot/ # work around a u-boot bug not find the folders sometimes mkdir -pv $(MNThdd)/boot/dtb-$(KVER)-ipfire-multi mkdir -pv $(MNThdd)/boot/dtb-$(KVER)-ipfire-kirkwood + sync umount $(MNThdd)/boot mount $(PART_BOOT) $(MNThdd)/boot @@ -182,15 +187,19 @@ endif mkdir -pv $(MNThdd)/boot/grub chroot $(MNThdd) grub-mkconfig -o /boot/grub/grub.cfg - # Insert the UUID because grub-mkconfig fails to detect that correctly + # Insert the UUID because grub-mkconfig often fails to + # detect that correctly sed -i $(MNThdd)/boot/grub/grub.cfg \ - -e "s/root=[a-z0-9\/]*/root=UUID=$$(blkid -o value -s UUID $(PART_ROOT))/g" + -e "s/root=[A-Za-z0-9\/=-]*/root=UUID=$$(blkid -o value -s UUID $(PART_ROOT))/g" # Install GRUB grub-install --force --recheck --no-floppy \ --root-directory=$(MNThdd) $(DEVICE) endif + # Set ramdisk mode to automatic + echo RAMDISK_MODE=2 > $(MNThdd)/etc/sysconfig/ramdisk + # Automatically resize the root partition to its maximum size at first boot touch $(MNThdd)/.partresize @@ -211,6 +220,7 @@ endif -fsck.ext4 -f -y $(PART_ROOT) fsck.ext4 -f -y $(PART_ROOT) + sleep 10 #Ubuntu compiling: allow time to automount/dismount kpartx -d -v $(DEVICE) losetup -d $(DEVICE)