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

No support for install-required-packages.sh for FreeBSD #8130

Closed
prologic opened this issue Feb 18, 2020 · 7 comments · Fixed by #9413
Closed

No support for install-required-packages.sh for FreeBSD #8130

prologic opened this issue Feb 18, 2020 · 7 comments · Fixed by #9413
Assignees
Labels
area/packaging Packaging and operating systems support feature request New features os/bsd bsd os related issues priority/low A 'nice to have' not critical issue

Comments

@prologic
Copy link
Contributor

Bug report summary

As per title. See:

root@freebsd:~/netdata # ./packaging/installer/install-required-packages.sh --dont-wait --non-interactive netdata-all
Cannot find an os-release file ...
Cannot find valid distribution with lsb-release

I NEED YOUR HELP
It seems I cannot detect your system automatically.
Running in non-interactive mode
 > Bailing out...
OS / Environment
root@freebsd:~/netdata # uname -a
FreeBSD freebsd 12.1-RELEASE FreeBSD 12.1-RELEASE r354233 GENERIC  amd64
Netdata version
root@freebsd:~/netdata # git rev-parse --short HEAD
3e970168a
Component Name
  • area/packaging
Steps To Reproduce
  1. Setup a FreeBSD VM
  2. Clone the netdata repo
  3. Run: ./packaging/installer/install-required-packages.sh
  4. Observe the output
Expected behavior

We support installing all the right tools automatically on FreeBSD without the user having to go find what needs to be installed in our docs or through trial 'n error.

@prologic prologic added bug needs triage Issues which need to be manually labelled labels Feb 18, 2020
@prologic prologic self-assigned this Feb 18, 2020
@Ferroin
Copy link
Member

Ferroin commented Feb 18, 2020

Part of the problem here is that users may not want to use binary packages on FreeBSD. There's also the FreeBSD Ports Tree, and some users even just choose to DIY everything. We can't automatically know which people prefer.

@prologic
Copy link
Contributor Author

Don't users have a choice here already?

If you want to do things manually; go right ahead.

If you want to take advantage of our 1-line installer / kickstart we need this.

We can take the approach of just pkg install xyz like we tell users to in the docs and of course use all the same logic with prompts, etc.

I feel like we should do this :)

@Ferroin
Copy link
Member

Ferroin commented Feb 19, 2020

Don't users have a choice here already?

No, not really. This script gets run unconditionally whenever you run the kickstart installer.

@prologic
Copy link
Contributor Author

Oh yes I'm aware of that; that's not at issue here. And until we have full proper binary packages everywhere we must still support this method of installation.

The thing is; in the recent weeks I've been playing around with various *BSD(s) and some users they don't seem at all too grumpy about using pkg anyway; so I don't really see a big issue here per se; we pick the best option we can and go with it.

If users want to do things manually on their own; that's fine but don't expect our tools to help too much (because you've chosen to do things by hand :/)

@prologic
Copy link
Contributor Author

So... When I get back to this (probably on Sat now) I will add support for FreeBSD using pkg. This is the plan of record :)

@prologic prologic added priority/low A 'nice to have' not critical issue area/packaging Packaging and operating systems support feature request New features and removed needs triage Issues which need to be manually labelled bug labels Feb 19, 2020
@Ferroin
Copy link
Member

Ferroin commented Feb 20, 2020

At least double check that stuff installed through the ports tree will register as existing on the system so we don't overwrite it if it's there. I think it should be picked up correctly, but I'm not certain.

@prologic
Copy link
Contributor Author

prologic commented Jul 9, 2020

Fixed by #9413

@prologic prologic closed this as completed Jul 9, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area/packaging Packaging and operating systems support feature request New features os/bsd bsd os related issues priority/low A 'nice to have' not critical issue
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants