tags 329111 patch
thanks

Hi,

Line 37 should read:
       if [ "$(dd if=$IMAGE bs=4 count=1 2>/dev/null)" != "$(printf '\177ELF')" 
]; then 

Note the added double quotes, otherwise, when dd fails, the left
operand will be non-existent.

Note that this check breaks horribly when you have a separate /boot
partition, as the path in /boot/etc/arcboot will read /vmlinux-... As
is, it will report that the image isn't ELF in this case.

JB.

-- 
 Julien BLACHE - Debian & GNU/Linux Developer - <[EMAIL PROTECTED]> 
 
 Public key available on <http://www.jblache.org> - KeyID: F5D6 5169 
 GPG Fingerprint : 935A 79F1 C8B3 3521 FD62 7CC7 CD61 4FD7 F5D6 5169 


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to