-
-
Notifications
You must be signed in to change notification settings - Fork 254
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
Offline install #825
Comments
@mstormi This would be a completely differnt approach compared to what we do now. Running openhabian-config without network is something different, at least for the part which changes some settings. Some people decide not to connect the home server to the internet and want it this way. So maybe the start of the script could skip the upgrade if not connected to the internet. Though, not sure how helpful this is at all. Nearly all functions are to install additional features, which is impossible withhout adding everything to the base image. I would suggest not to add error handling to the functions, maybe just a disclaimer/reminder when openhabian-config is started without internet connection. |
It's really meant as an open question in the first place. I'm critical on the latest-'n-greatest approach as discussed on other occasions, but that's not the point. It does not have to be one or the other. This could help in attracting users (or more precisely, to not lose them on first contact) because install fails. I'll take the discussion over to the team page. |
I'd like to move this forward. Aiming for an offline install capable image. Components we would need to validate / enable caching or other pre-storage method for FireMotD |
Really serious about this? From my point of view this would require executing the first-boot script before shipping the image. |
Granted I have not analyzed what this would mean in detail but yes I'm serious about this because
My basic idea is to split the current install routines of each of those packages into download and install functions and to only run the downloads as part of an image build, storing downloads on the filesystem and packing them into the image. No need to run the full first-boot I hope. Let's carefully sort this out. No need to hurry. |
I created an access list on my router to block the openhabian box from accessing Internet, then We need to browse/check those routines we call in openhabian-set.bash
|
Can you already see what packages (including dependencies) are missing in the Rapberry Pi OS lite image? We need a proper way of installing them - I was thinking about a local apt repo.... If it is just a few, I would just install them in the beginning of the install from a cache folder.... |
Would need to lookup each time. Does not do harm to list and eventually run apt-get install on these again, does it ? Also good to document that's prerequisites. git gcc libattr1-dev plus whatever they require as dependencies And you need to call the fetch routines for zram and java |
Is openHABian install supposed to finish even when Internet access isn't available ?
At least a number of users expect it to. I myself, frankly, I don't know. @ThomDietrich ?
We have a number of reported install fails at
https://github.com/openhab/openhabian/blob/master/functions/openhab.bash#L60
While not fully analyzed yet, it all boils down to the introductory question.
If yes, we would also need to test install runs under this condition.
If yes, we would need to identify the basicmost packages we need to get openHABian+openHAB running and include them with the image:
That would at least be needed_packages() - probably only python - PLUS Java PLUS openHAB packages (current release).
The text was updated successfully, but these errors were encountered: