From mboxrd@z Thu Jan 1 00:00:00 1970 Received: from list by lists.gnu.org with archive (Exim 4.71) id 1YlUJp-00041k-4H for mharc-grub-devel@gnu.org; Thu, 23 Apr 2015 23:30:21 -0400 Received: from eggs.gnu.org ([2001:4830:134:3::10]:47499) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlUJn-00041d-2X for grub-devel@gnu.org; Thu, 23 Apr 2015 23:30:19 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1YlUJm-00029G-81 for grub-devel@gnu.org; Thu, 23 Apr 2015 23:30:18 -0400 Received: from terminus.zytor.com ([2001:1868:205::10]:52724 helo=mail.zytor.com) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1YlUJl-00028x-Ue for grub-devel@gnu.org; Thu, 23 Apr 2015 23:30:18 -0400 Received: from tazenda.hos.anvin.org ([IPv6:2601:9:7280:900:e269:95ff:fe35:9f3c]) (authenticated bits=0) by mail.zytor.com (8.14.8/8.14.5) with ESMTP id t3O3UEkr022463 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES128-SHA bits=128 verify=NO); Thu, 23 Apr 2015 20:30:15 -0700 Message-ID: <5539B8C1.4030401@zytor.com> Date: Thu, 23 Apr 2015 20:30:09 -0700 From: "H. Peter Anvin" User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0 MIME-Version: 1.0 To: Andrei Borzenkov Subject: Re: [syslinux] Using memdisk with grub2 and a gzip-compressed ISO References: <55396F5E.7090303@zytor.com> <20150424061443.3d80329c@opensuse.site> In-Reply-To: <20150424061443.3d80329c@opensuse.site> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-MIME-Autoconverted: from 8bit to quoted-printable by mail.zytor.com id t3O3UEkr022463 X-detected-operating-system: by eggs.gnu.org: Error: Malformed IPv6 address (bad octet value). X-Received-From: 2001:1868:205::10 Cc: grub-devel@gnu.org, David Shaw , syslinux@zytor.com X-BeenThere: grub-devel@gnu.org X-Mailman-Version: 2.1.14 Precedence: list Reply-To: The development of GNU GRUB List-Id: The development of GNU GRUB List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 24 Apr 2015 03:30:20 -0000 On 04/23/2015 08:14 PM, Andrei Borzenkov wrote: > =D0=92 Thu, 23 Apr 2015 15:17:02 -0700 > "H. Peter Anvin" =D0=BF=D0=B8=D1=88=D0=B5=D1=82: >=20 >> On 04/23/2015 07:23 AM, David Shaw via Syslinux wrote: >>> >>> I'm not sure if this is related to the problem, but note the length >>> in the "Ramdisk" line from grub legacy is one byte shorter than the >>> length from grub2. Also note that the length given in the "gzip >>> image" line is shifted one byte to the left in the grub legacy >>> version (i.e. it's exactly 0x100 times larger). >>> >> >> That would definitely break using a compressed ramdisk. >=20 > It does not break for kernel. What makes is so different in case of > syslinux? >=20 Padding the image doesn't matter for the kernel, but memdisk relies on being able to see where the end of the compressed image is, because that is where the length is located. -hpa