[SOLVED] Fresh installation of openHAB 2.5.12 via image file 1.6.5 (openHABian)

Hello community,

I want to migrate my current 2.5.12 configuration to a new Raspberry Pi 4 (4GB) with a completely fresh image of the latest openHABian image (1.6.5). According to the docs, openHAB3 will be automatically installed by default. To me its not clear how to modify the openhab.conf after the image was written to my SSD to define openHAB 2.5.12 (Stable) as desired version for the initial installation.

Part from the openhab.conf:

...
# repo and branch to clone from
repositoryurl=https://github.com/openhab/openhabian.git
clonebranch=stable
...

Can you give me a hint?

Please note that I dont want to dive into openHAB3 for now, I am very happy with my current setup and just want to update to a Raspberry Pi 4.

Thanks for your support and best regards,
Markus

I just double-checked my current openhab.conf from my 2.5.12 installation:

...
# repo and branch to clone from
repositoryurl=https://github.com/openhab/openhabian.git
clonebranch=stable
...

and compared it with the current default value from the image file 1.6.5 which would install openHAB3 by default:

...
# repo and branch to clone from
repositoryurl=https://github.com/openhab/openhabian.git
clonebranch=openHAB3
...

So I just need to replace the clonebranch=openHAB3 to clonebranch=stable in order to get 2.5.12?

Thanks for your clarification :slight_smile:

the documentation tells it. So stable should install 2.5

But be aware that you might have troubles installing bindings due to the sunset of bintray:

Anyhow before spending the time (i know you explicitely mentioned you want to stick with oh2) fiddling everything so that oh2.5 runs as before, think about if it wouldn’t be worth the time to jump to OH3 directly if you install your system from scratch anyhow.

1 Like

Thanks for pointing me into the right direction. Putting stable into the clonebranch installed me my desired 2.5.12.

Now I got my new rig ready with a Raspberry Pi 4 (4GB) and a m2 SSD via USB. I had to update the bootloader first to boot from USB via the Raspberry Pi Imager, I guess my Raspberry Pi is a bit older.

Anyway, got my openHAB running so I can migrate my system to the new environment.

Thanks! :slight_smile: