Date: Fri, 18 Jan 2019 22:50:31 +0300 From: Lev Serebryakov <lev@FreeBSD.org> To: "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net> Cc: freebsd-current@freebsd.org Subject: Re: GPT boot has less features than legacy MBR-based one (Was: UEFI, loader.efi and /boot.config) Message-ID: <49056065-1e62-f0dc-c7a4-8c358de4266e@FreeBSD.org> In-Reply-To: <201901181935.x0IJZ4tX057034@pdx.rh.CN85.dnsmgr.net> References: <201901181935.x0IJZ4tX057034@pdx.rh.CN85.dnsmgr.net>
next in thread | previous in thread | raw e-mail | index | archive | help
This is an OpenPGP/MIME signed message (RFC 4880 and 3156) --PayCMnvwEgNGUEXVt5pdwJirzwR1OQbHb Content-Type: multipart/mixed; boundary="zQV25UCGuzn4zkLlxAgxlvcgt9vjTb2Fl"; protected-headers="v1" From: Lev Serebryakov <lev@FreeBSD.org> Reply-To: lev@FreeBSD.org To: "Rodney W. Grimes" <freebsd-rwg@pdx.rh.CN85.dnsmgr.net> Cc: freebsd-current@freebsd.org Message-ID: <49056065-1e62-f0dc-c7a4-8c358de4266e@FreeBSD.org> Subject: Re: GPT boot has less features than legacy MBR-based one (Was: UEFI, loader.efi and /boot.config) References: <201901181935.x0IJZ4tX057034@pdx.rh.CN85.dnsmgr.net> In-Reply-To: <201901181935.x0IJZ4tX057034@pdx.rh.CN85.dnsmgr.net> --zQV25UCGuzn4zkLlxAgxlvcgt9vjTb2Fl Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: quoted-printable On 18.01.2019 22:35, Rodney W. Grimes wrote: >>> errm.. you press a key and enter device and or loader path. if it is = not working - the code is there to be fixed. >> And loader looks to "bootme" attribute and try to boot from partition= >> which has one, even if it is loaded from other partition itself. >> >>> GPT does not have the concept of active partition. >> It has "bootme" / "bootonce" attributes. And [zfs]gptboot doesn't hav= e >> any tools to set these attributes, AFAIK. Same for UEFI boot code. >=20 > The gpart(8) command is used to set/unset these. gpart need booted system. NanoBSD typically have two "system" partitions, "old" (previous) and "new" (current). After upgrade they switched (new code is written to "previos" partition and bootable atteibute is set to it, "active" in case of MBR and "bootme" in case of GPT). If this new partition has problems and could not be booted, it is hard to boot from "old" (previous) one. MBR + boot0 could (interactively) change active partition before system is booted, and this problem could be solved with one keypress: you select old partition on boot. --=20 // Lev Serebryakov --zQV25UCGuzn4zkLlxAgxlvcgt9vjTb2Fl-- --PayCMnvwEgNGUEXVt5pdwJirzwR1OQbHb Content-Type: application/pgp-signature; name="signature.asc" Content-Description: OpenPGP digital signature Content-Disposition: attachment; filename="signature.asc" -----BEGIN PGP SIGNATURE----- iQKTBAEBCgB9FiEE+W0coLX0MYtnSzMK6rA8WL/cR48FAlxCLgdfFIAAAAAALgAo aXNzdWVyLWZwckBub3RhdGlvbnMub3BlbnBncC5maWZ0aGhvcnNlbWFuLm5ldEY5 NkQxQ0EwQjVGNDMxOEI2NzRCMzMwQUVBQjAzQzU4QkZEQzQ3OEYACgkQ6rA8WL/c R4/ruQ/7B7q3xJAWc5uG5eVYt/MzAyy367nUc6kFT8Dy+iGb65iDUAeKBtEG4BTU fNzd4clX+6fgCvwq8qIaHraFmJBAuyTb37sML3GlxI8jfSSXcu2UDDxJTjrnbfav CPoErkdkdEjR8Ey/2hDs0V1S19R4O8FKulniWmYMKA2o8uqePNwE0nS9RC7ohtzL Uo/LwW/CbgWWO2BQRNeczI4dfyP4TlL6NmRlMj9UX0GjXq8EN1JluLuewTrFeN4i NisAEYNhMi9R0hKOi9CqlJCrYAbYKZfkNT//w9+jCRgDrQpSgLmb37+npfsB3ml6 PUz4JEaH7mgNF67Irs006C5XcpoBE6nRDP8NNfHU0SRmNrKJePEPcyPkP+zqicSA jhgdZl3cDbthhCcCT38Kkn7H9a4TlKRnqkaSAfsHEFHXiwujmWE5xGO2cAlBmaEb AI/Z7+6/3atEob8Q876iwNfLkmc+WQ/ULrS13RCKQY/MpxpQOxlZNJ1nmlfm48r1 xd5T/1YRZweyx5KfJ/zdY4hENbqL/2LbpqmUCa9GD/0l9Aa92OQTJmJAkxno2ga1 6ffy47u5wZd0BKZ7Vw+XROB82QBryc0cO5RUQsHvWULa1lY8rMySpx30pUeYF0fw GaXxWkAU+wzRrAfdxVA6DaFls/fT/79uUuunPI+7a2Kxbal0rbg= =Hjtk -----END PGP SIGNATURE----- --PayCMnvwEgNGUEXVt5pdwJirzwR1OQbHb--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?49056065-1e62-f0dc-c7a4-8c358de4266e>