Skip to content

Conversation

@Torxed
Copy link
Member

@Torxed Torxed commented Jul 19, 2025

This allows for workarounds in those semi-rare cases where the bootloader step would normally cause issues, allowing users to manually install one once the other steps are completed.

rec

profile_config: ProfileConfiguration | None = None
mirror_config: MirrorConfiguration | None = None
network_config: NetworkConfiguration | None = None
bootloader: Bootloader = field(default=Bootloader.get_default())
Copy link
Member Author

Choose a reason for hiding this comment

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

Had to remove this one in order to break a circular dependency from bootloader.py's get_default needing to access args in order to determine if None or default option should be returned.

Copy link
Collaborator

Choose a reason for hiding this comment

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

We're using a "No audio" option in the audio menu which is basically its own enum type. Would rhat pattern work here as well?

Copy link
Member Author

Choose a reason for hiding this comment

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

That would work indeed, I can tweak that.

Copy link
Member Author

Choose a reason for hiding this comment

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

Fixed now in 70c287e I believe.

Copy link
Collaborator

Choose a reason for hiding this comment

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

But as its part of the enum now, can we revert this as its always going to be a Bootloader type again

@Torxed Torxed marked this pull request as ready for review July 19, 2025 14:18
@Torxed
Copy link
Member Author

Torxed commented Jul 19, 2025

I still need to check how --conf behaves here, and especially if None is specified without --skip-boot as that should cause a warning or exit. And only be allowed during --skip-boot presence.

@svartkanin
Copy link
Collaborator

Should this maybe just be a "No bootloader" option, maybe only visible via --advanced?

@Torxed
Copy link
Member Author

Torxed commented Jul 20, 2025

True, maybe it just hides the option all together instead. Good thinking!

Torxed added 3 commits July 22, 2025 09:58
…l setting it default to None to avoid it sneaking into the config file or being set behind the scenes causing if statements to trigger.
@Torxed
Copy link
Member Author

Torxed commented Jul 22, 2025

Some minor issues remain.

screenshot

The NO_BOOTLOADER option is visible when --skip-boot is omitted, which isn't ideal.

screenshot

),
]

if arch_config_handler.args.skip_boot:
Copy link
Collaborator

Choose a reason for hiding this comment

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

Do we really want to omit the entire boot menu entry? I was under the impression the --skip-boot will enable the "No bootloader" option to be selected?

Copy link
Member Author

Choose a reason for hiding this comment

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

Oh, my tired brain read:

"Should this maybe just be a "No bootloader" option"

As:

"maybe there shouldn't be a boot loader option"

I think the Bootloader.NO_BOOTLOADER option to be selected makes sense, I'll put the menu entry back :)

Copy link
Collaborator

Choose a reason for hiding this comment

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

All good, this should make the change much simpler :)

Copy link
Member Author

Choose a reason for hiding this comment

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

Should be back now, waiting for ISO build to complete so I can test a full install.

…ault value to NO_BOOTLOADER when --skip-boot is present
@Torxed
Copy link
Member Author

Torxed commented Jul 22, 2025

Verified with three bootloaders, grub, systemd and NO_BOOTLOADER.

@Torxed Torxed merged commit 5355c71 into archlinux:master Jul 23, 2025
9 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