# HG changeset patch # User Pascal Bellard # Date 1406715906 -7200 # Node ID 8f6cb9be79c13bd930953dc1dc1a675c9c8fe16c # Parent 2605693b1e33e455edda7c9e75c901182d65dc04 linux/bootloader.sh: fix multi initrd case diff -r 2605693b1e33 -r 8f6cb9be79c1 linux/stuff/bootloader.sh --- a/linux/stuff/bootloader.sh Tue Jul 29 00:06:42 2014 -0300 +++ b/linux/stuff/bootloader.sh Wed Jul 30 12:25:06 2014 +0200 @@ -255,7 +255,7 @@ size=$(( ($(stat -c %s "$i") + $INITRDPAD - 1) & -$INITRDPAD )) [ -n "$DEBUG" ] && echo "initrd $i $size " 1>&2 initrdlen=$(( $initrdlen + $size )) - [ -n "$ADRSRD" ] || ADRSRD=$(( (($MEM * 0x100000) - $initrdlen) & -$INITRDALIGN )) + ADRSRD=$(( (($MEM * 0x100000) - $initrdlen) & -$INITRDALIGN )) store 32 $RamfsAdrOfs $(( $ADRSRD )) $bs initrd adrs store 32 $RamfsLenOfs $initrdlen $bs initrdlen done