Skip to content

bootc-lib: fix ARM architecture support#1971

Merged
Johan-Liebert1 merged 1 commit intobootc-dev:mainfrom
mtudan:bugfix/arm-arch-support
Feb 3, 2026
Merged

bootc-lib: fix ARM architecture support#1971
Johan-Liebert1 merged 1 commit intobootc-dev:mainfrom
mtudan:bugfix/arm-arch-support

Conversation

@mtudan
Copy link
Contributor

@mtudan mtudan commented Feb 3, 2026

Currently build fails for armv7, this fixes the issue:

1094.0    Compiling bootc-lib v1.12.1 (/bootc/crates/lib)
1097.2 error: Unsupported architecture
1097.2    --> crates/lib/src/discoverable_partition_specification.rs:523:13
1097.2     |
1097.2 523 |             compile_error!("Unsupported architecture")
1097.2     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1097.2
1157.8 error: could not compile `bootc-lib` (lib) due to 1 previous error
1157.8 error: Generating manpages: Syncing man pages: Extracting CLI: Running CLI JSON dump command: command exited with non-zero code `cargo run --features=docgen -- internals dump-cli-json`: 101
1157.8 make: *** [Makefile:44: manpages] Error 1
1157.8 make: Leaving directory '/bootc'

Currently build fails for armv7, this fixes the issue:

```
1094.0    Compiling bootc-lib v1.12.1 (/bootc/crates/lib)
1097.2 error: Unsupported architecture
1097.2    --> crates/lib/src/discoverable_partition_specification.rs:523:13
1097.2     |
1097.2 523 |             compile_error!("Unsupported architecture")
1097.2     |             ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
1097.2
1157.8 error: could not compile `bootc-lib` (lib) due to 1 previous error
1157.8 error: Generating manpages: Syncing man pages: Extracting CLI: Running CLI JSON dump command: command exited with non-zero code `cargo run --features=docgen -- internals dump-cli-json`: 101
1157.8 make: *** [Makefile:44: manpages] Error 1
1157.8 make: Leaving directory '/bootc'
```

Signed-off-by: Matija Tudan <tudan.matija@gmail.com>
@bootc-bot bootc-bot bot requested a review from jeckersb February 3, 2026 07:03
Copy link
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request fixes a build failure on the ARMv7 architecture by adding support for target_arch = "arm" in the this_arch_root function. The change correctly uses conditional compilation to return the appropriate root partition GUID for 32-bit ARM systems. The implementation is straightforward and effectively resolves the issue described.

@Johan-Liebert1 Johan-Liebert1 merged commit 216d720 into bootc-dev:main Feb 3, 2026
37 checks passed
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.

2 participants