Replies: 2 comments 2 replies
|
We already have logic in the platform-preboot script based off TNSPEC_BOOTDEV, since commit 56ed0e7 |
0 replies
|
@madisongh that is correct if I wouldn't have nvme installed. Now it will fill rootdev earlier on that script and never goes to that branch |
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Problem
I’m using a Seeed Studio J3011 with an internal NVMe drive. Occasionally, I want to test booting from a USB HDD. However, the minimal init script sources
/etc/platform-preboot, which always detects the NVMe drive first and selects it as the boot device. This behavior makes it difficult to boot from USB when needed.Current workaround
As a workaround, I created a patch that overrides the sourcing of /etc/platform-preboot and defined
UBOOT_EXTLINUX_KERNEL_ARGSto control the boot device manually.Questions
Is there a way to support this setup without relying on patches? For example, could
TNSPEC_BOOTDEVbe used for this purpose, since it is already defined in this scenario?All reactions