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

`setup.sh` not working on a fresh installation #1685

Closed dgdavid closed 2 weeks ago

dgdavid commented 1 month ago

When running ./setup-sh on a fresh openSUSE Tumbleweed installation, I'm facing two problems,

imobachgs commented 1 month ago

The unbound variable problem is because of the -u in set -eu. If we want to keep the -u, we need to set a default value for CI.

dgdavid commented 1 month ago

To reproduce the problem, please install a fresh openSUSE Tumbleweed and try to run the ./setup.sh

lslezak commented 1 month ago

You need to install rubygem-ruby-augeas from RPM before running the script. I'll update the script to install it automatically...

lslezak commented 1 month ago

Ah, the script prefers the RPM version only when running in CI, you need to run it with CI=true...

imobachgs commented 1 month ago

Then it will try to install the gems to /usr, which is not what I want on my system. And I will need to run the command as root.

lslezak commented 1 month ago

Yes, we probably do not want to do this outside CI... :worried:

imobachgs commented 1 month ago

Perhaps we could use distrobox to set up the development system: https://github.com/agama-project/agama/pull/1687.

jreidinger commented 3 weeks ago

problem with ruby augeas should be fixed with https://github.com/agama-project/agama/pull/1705 .

imobachgs commented 2 weeks ago

It should be fixed with #1687.