slitaz-forge diff mirror/floppies/builder/bootloader @ rev 572
bootloader: fix multi initrd case
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 30 12:24:36 2014 +0200 (2014-07-30) |
parents | e6e4be1b2591 |
children | a37f4ff3d549 |
line diff
1.1 --- a/mirror/floppies/builder/bootloader Thu May 09 18:16:08 2013 +0200 1.2 +++ b/mirror/floppies/builder/bootloader Wed Jul 30 12:24:36 2014 +0200 1.3 @@ -256,7 +256,7 @@ 1.4 size=$(( ($(stat -c %s "$i") + $INITRDPAD - 1) & -$INITRDPAD )) 1.5 [ -n "$DEBUG" ] && echo "initrd $i $size " 1>&2 1.6 initrdlen=$(( $initrdlen + $size )) 1.7 - [ -n "$ADRSRD" ] || ADRSRD=$(( (($MEM * 0x100000) - $initrdlen) & -$INITRDALIGN )) 1.8 + ADRSRD=$(( (($MEM * 0x100000) - $initrdlen) & -$INITRDALIGN )) 1.9 store 32 $RamfsAdrOfs $(( $ADRSRD )) $bs initrd adrs 1.10 store 32 $RamfsLenOfs $initrdlen $bs initrdlen 1.11 done