wok rev 16962
linux/bootloader.sh: fix multi initrd case
author | Pascal Bellard <pascal.bellard@slitaz.org> |
---|---|
date | Wed Jul 30 12:25:06 2014 +0200 (2014-07-30) |
parents | 2605693b1e33 |
children | 9892830afb57 |
files | linux/stuff/bootloader.sh |
line diff
1.1 --- a/linux/stuff/bootloader.sh Tue Jul 29 00:06:42 2014 -0300 1.2 +++ b/linux/stuff/bootloader.sh Wed Jul 30 12:25:06 2014 +0200 1.3 @@ -255,7 +255,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