Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove time-consuming copy on first boot #519

Merged
merged 1 commit into from
Oct 9, 2023

Conversation

rtertiaer
Copy link
Contributor

This PR removes the time-consuming copying process on first boot. It leaves in place the partition creation process. This will allow us to punt on #516 as a blocker for 0.3.0 stable release.

I have not tested this yet & will not merge til I have done so, but there's nothing stopping feedback at the moment.

@rtertiaer rtertiaer requested a review from Lohrer October 5, 2023 15:34
Comment on lines +70 to +71
# This structure is left in place for future partitions... but it basically does nothing now.
for PART in ${ROOT_DEV}p2; do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Maybe just remove this? The loop over 2 things that are then handled completely differently was kinda silly in the first place...

Copy link
Contributor Author

Choose a reason for hiding this comment

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

i'm inclined to leave it in place only cuz the note about e2fsck returning >0 exit code on successful runs was unexpected and took some debugging, but i can if you care. agreed it was silly to handle the cases differently 🥴

Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah I misread the != as =, this makes more sense now. Plus since you've already tested it as written I'm fine with it staying this way.

@rtertiaer
Copy link
Contributor Author

This has now been tested too.

Comment on lines +70 to +71
# This structure is left in place for future partitions... but it basically does nothing now.
for PART in ${ROOT_DEV}p2; do
Copy link
Collaborator

Choose a reason for hiding this comment

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

Ah I misread the != as =, this makes more sense now. Plus since you've already tested it as written I'm fine with it staying this way.

@Lohrer
Copy link
Collaborator

Lohrer commented Oct 5, 2023

The display code appears to fail the tests, I assume that's not due to this PR? If not, we should still fix those quickly so we don't keep ignoring test outputs.

@rtertiaer rtertiaer merged commit 04d0071 into develop Oct 9, 2023
1 of 2 checks passed
@rtertiaer rtertiaer deleted the remove_first_boot_copying branch October 9, 2023 12:14
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.

None yet

2 participants