agama-project / agama

A service-based Linux installer
https://agama-project.github.io/
GNU General Public License v2.0
143 stars 43 forks source link

fix: adapt setup scripts to run properly on distrobox #1687

Closed imobachgs closed 2 weeks ago

imobachgs commented 1 month ago

Due to a problem with ruby-augeas and Ruby 3.3, the setup script does not work anymore. In our continuous integration we decided to use the system libraries, which causes bundler to install software into /usr/lib. Of course, we do not want that behavior everywhere.

Alternatively, this PR adapts the script to work using distrobox. The setup is rather simple:

distrobox create --root --init --image tumbleweed --name agama
distrobox enter --root agama
./setup.sh

The script detects that it is running on distrobox and it workarounds the augeas problem like in our continuous integration.

Please, see #1685 for more context.

dgdavid commented 1 month ago

As said in IRC, it looks good to me. What is more, I was able to run the project in a similar way by using distrobox (thanks for the help :pray: ). But I guess this distrobox thingy should be document as well since there could be people like me that have no idea about such a tool.

Please, see https://github.com/agama-project/agama/pull/1687 for more context.

Do you mean https://github.com/agama-project/agama/issues/1685?

imobachgs commented 1 month ago

JFYI, I still fix a problem with NetworkManager.

imobachgs commented 4 weeks ago

I have adapted the script to use the host's D-Bus system socket when running on Distrobox.