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

Better bootstrap check-install #704

Merged
merged 16 commits into from
Jun 2, 2024
Merged

Better bootstrap check-install #704

merged 16 commits into from
Jun 2, 2024

Conversation

Eeems
Copy link
Member

@Eeems Eeems commented Jun 29, 2023

I just had to help someone through reinstalling toltec after a library got corrupted when installing something with nao. One thing I identified is that our current solution for bootstrap checking to see if things are in a partial install state wasn't properly checking to see if /opt is bind mounted still or not. This changes that and provides more context on what it detects when it detects a partial installation.

@Eeems Eeems added the install Installation scripts label Jun 29, 2023
Copy link

@bkirwi bkirwi left a comment

Choose a reason for hiding this comment

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

Otherwise seems reasonable and useful, though I'm not very familiar with bootstrap yet...

scripts/bootstrap/bootstrap Outdated Show resolved Hide resolved
@Eeems Eeems requested a review from bkirwi June 29, 2023 23:10
bkirwi
bkirwi previously approved these changes Jun 29, 2023
@Eeems
Copy link
Member Author

Eeems commented Jun 2, 2024

I just ran this to test it again. It's working as expected. I also added a small guard that verifies that it's being run with bash, and not with sh, ash or another shell. This only really helps when testing changes, and you are running bootstrap manually and forget that it isn't compatible with sh.

@Eeems
Copy link
Member Author

Eeems commented Jun 2, 2024

Example outputs:
image
image

@Eeems Eeems merged commit 69093fe into testing Jun 2, 2024
3 checks passed
@Eeems Eeems deleted the bootstrap branch June 2, 2024 18:53
Eeems added a commit that referenced this pull request Jun 2, 2024
* Update installed check messaging

* Add note about unit_path

* Error if trying to run with sh or other non-bash shell
Eeems added a commit that referenced this pull request Jun 4, 2024
### Updated Packages
- `appmarkable` - 0.1.3-1 (#876 #875)
- `micro` - 2.0.13-2 (#870)
- `toltec-bootstrap` - 0.4.4-1 (#704 #690 #873)
- `webinterface-upload-button` - 1.1.1-3 (#870)
- `open-remarkable-shutdown` - 1.0-3 (#879)
- `toltec-deletions` - 0.1-5 (#880)

### Tooling
- Fix sha256sum validation (#870).
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
install Installation scripts
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants