Context
I am using almalinux 9, uname -a
gives the following output:
5.14.0-162.6.1.el9_1.x86_64 #1 SMP PREEMPT_DYNAMIC Tue Nov 15 07:49:10 EST 2022 x86_64 x86_64 x86_64 GNU/Linux
I am trying to install a program with its own installer (which is a black box), and it gives an error message that this OS is not supported. I am aware that the cleanest solution is ask support from the manufacturer... meanwhile...
I am convinced that RHEL 8 or CentOS 8 is supported.
Question
Is there any way to fake my OS to el8?
/etc/os-release
(or/usr/lib/os-release
), this is trivial, if it gets it from elsewhere this can be really a painstrace -f ...
to see if it callsuname(2)
or reads a file etc, then try interposing a shim to capture that system call, usingLD_PRELOAD
.--os-version=
to override detection... You should really check the installer. Kernel isn't checked to figure out the os in this script.