Skip to content

Comments

otheros: Drops ia32 Grub support#2173

Open
dimorinny wants to merge 1 commit intogoogle:mainfrom
dimorinny:main
Open

otheros: Drops ia32 Grub support#2173
dimorinny wants to merge 1 commit intogoogle:mainfrom
dimorinny:main

Conversation

@dimorinny
Copy link
Contributor

Since CF migrated to 64 bit U-boot we can use amd64 Grub.

Test: booted openwrt/debian useing amd64 Grub
Bug: 463968791

Since CF migrated to 64 bit U-boot we can use amd64
Grub.

Test: booted openwrt/debian useing amd64 Grub
Bug: 463968791
Signed-off-by: Dmitrii Merkurev <dimorinny@google.com>
@dimorinny dimorinny added the kokoro:run Run e2e tests. label Feb 23, 2026
@GoogleCuttlefishTesterBot GoogleCuttlefishTesterBot removed the kokoro:run Run e2e tests. label Feb 23, 2026
@dimorinny dimorinny requested a review from Databean February 23, 2026 13:37
Comment on lines -57 to -58
// NOTE: For now, just ignore the 32-bit ARM version, as Debian doesn't
// build an EFI monolith for this architecture.
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Since the reference to 32-bit arm is being removed, is that officially considered irrelevant?

Comment on lines +154 to 161
const auto x64_modules =
std::string(kGrubModulesPath) + std::string(kGrubModulesX64Name);
const auto modules_presented = std::all_of(
kGrubModulesX86.begin(), kGrubModulesX86.end(),
[&](const std::string& m) { return FileExists(x86_modules + m); });
kGrubModules.begin(), kGrubModules.end(),
[&](const std::string& m) { return FileExists(x64_modules + m); });
if (modules_presented) {
return true;
}
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This could be written as

for (std::string_view module_name : kGrubModules) {
  const std::string path = absl::StrCat(kGrubModulesPath, kGrubModulesX64Name, module_name);
  if (!FileExists(path)) {
    return FileExists(kBootSrcPathX64);
  }
}
return true;

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants