Date: Sun, 24 Aug 2014 12:05:15 -0700 From: Marcel Moolenaar <marcel@xcllnt.net> To: Craig Rodrigues <rodrigc@freebsd.org> Cc: "Andrey V. Elsukov" <bu7cher@yandex.ru>, freebsd-current Current <freebsd-current@freebsd.org> Subject: Re: mkimg used to create gpt image, problem booting Message-ID: <82000B55-10E5-4348-9F35-38962965A63C@xcllnt.net> In-Reply-To: <CAG=rPVctN4-UBxRzWhEoEt5e_4d8UXCa0O40LZUHnS5Qj9hFeA@mail.gmail.com> References: <CAG=rPVeucq%2BsMxe_NPe3Og939o=Sg4WGfYL7PjA1uXGU8uL=8g@mail.gmail.com> <853B0396-2C19-49DF-A8E8-8EB43D107597@xcllnt.net> <CAG=rPVes3Eq87hOE6W135yGvzRiAzHTbCGSxiyd0JBAs2ufqmA@mail.gmail.com> <7CE168C1-6AF3-4AD2-80DB-192AEC49FD2B@xcllnt.net> <CAG=rPVfe6pP08WWaYQ6enk7A6AkT3dBXVxNfK0JgJPaN_rJ_Uw@mail.gmail.com> <CAG=rPVe8Lh=P2MUdycM7%2B2mpSBPhe%2BkTvxR_bjnZfB1EkvK92Q@mail.gmail.com> <53F9AC50.1000000@yandex.ru> <CAG=rPVctN4-UBxRzWhEoEt5e_4d8UXCa0O40LZUHnS5Qj9hFeA@mail.gmail.com>
next in thread | previous in thread | raw e-mail | index | archive | help
--Apple-Mail=_51B92DC2-C176-461C-B6E6-FEA56311AFAB Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset=iso-8859-1 On Aug 24, 2014, at 9:59 AM, Craig Rodrigues <rodrigc@freebsd.org> = wrote: > On Sun, Aug 24, 2014 at 2:11 AM, Andrey V. Elsukov <bu7cher@yandex.ru> = wrote: >>=20 >> Yes, the problem is in the ptable_gptread() function. I'll commit the = fix. >=20 > Should mkimg be changed to create a partition table with 128 entries > by default, to match older versions of FreeBSD which do not have this = fix? Maybe. 128 is the suggested default. It's not a hard lower limit. Technically speaking, it's perfectly fine to create just enough entries to fill a single sector. Then again, code makes all kinds of assumptions or has all kinds of bugs -- just like the logic in the loader apparently. By having mkimg create a large table, even if it's knows up front that it doesn't have to may prevent broken code from tripping over, bit it surely bloats the image for no reason. --=20 Marcel Moolenaar marcel@xcllnt.net --Apple-Mail=_51B92DC2-C176-461C-B6E6-FEA56311AFAB Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename=signature.asc Content-Type: application/pgp-signature; name=signature.asc Content-Description: Message signed with OpenPGP using GPGMail -----BEGIN PGP SIGNATURE----- Comment: GPGTools - http://gpgtools.org iEYEARECAAYFAlP6N2sACgkQpgWlLWHuifb8MQCghAhFOuY+CJ/VldhoNGXwOktM 5n0AnjAsPVijsT0j7dnvXgPsZPpLF3zs =LCRJ -----END PGP SIGNATURE----- --Apple-Mail=_51B92DC2-C176-461C-B6E6-FEA56311AFAB--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?82000B55-10E5-4348-9F35-38962965A63C>