https://labs.parabola.nu/https://labs.parabola.nu/favicon.ico?15367742552020-06-14T19:03:25ZParabola Issue TrackerPackages - Bug #2806: u-boot: improve .install and support different boot mediashttps://labs.parabola.nu/issues/2806?journal_id=148422020-06-14T19:03:25ZGNUtooGNUtoo@cyberdimension.org
<ul><li><strong>Subject</strong> changed from <i>u-boot: improve install and support different uses cases</i> to <i>u-boot: improve .install and support different boot medias</i></li></ul>TODO:
<ul>
<li>Make it more generic: share the main part of the code.</li>
<li>Check for the machine name with the device tree and ask for confirmation. Ff the machine is not the same but don't prevent users from installing this bootloader on a totally different machine as the installation could be done in a chroot or in other ways that packagers cannot predict.</li>
<li>Handle more than one boot device (microSD, eMMC, SATA, USB/UART, etc)
<ul>
<li>Package tools for booting from USB, and document how to do it. </li>
</ul>
</li>
<li>Point to the device documentation if there is some</li>
</ul>
We probably need to look at how other upstream distributions are dealing with having more than 1 boot media:
<ul>
<li>GuiX has u-boot packages</li>
<li>Debian has u-boot pacakges</li>
<li>Arch Linux ARM may or may not have u-boot packages</li>
</ul>
<p>In the case of GRUB, users manually run grub-install. Though I'm unsure how GRUB is supposed to be updated. It would be interesting to look into it too (find if there is a message when GRUB is upgraded, look if it's possible to auto-detect it, etc).</p>
<p>edit1: fix bullet points<br />edit2: Add SATA, UART, USB boot specificities</p>