lynis icon indicating copy to clipboard operation
lynis copied to clipboard

Unknown OS found - Arcolinux

Open Tahooft opened this issue 2 years ago • 2 comments

Describe the bug A clear and concise description of what the bug is.

Exception found!

Function/test: [OS Detection] Message: Unknown OS found in /etc/os-release - Please create an issue on GitHub and share the the contents (cat /etc/os-release): https://github.com/CISOfy/lynis

=================================================================

  • Detecting OS... [ DONE ]
  • Checking profiles... [ DONE ]

Program version: 3.0.7 Operating system: Linux Operating system name: Arch Linux Operating system version: Unknown Kernel version: 5.16.5 Hardware platform: x86_64 Hostname: no-hostname

Version

  • Distribution [Arcolinux]
  • Lynis version [3.0.7]

Expected behavior A clear and concise description of what you expected to happen.

Output If applicable, add output that you get from the tool or the related section of lynis.log

Additional context Add any other context about the problem here.

cat /etc/os-release

NAME=ArcoLinux ID=arcolinux ID_LIKE=arch BUILD_ID=rolling ANSI_COLOR="0;36" HOME_URL="https://arcolinux.info/" SUPPORT_URL="https://arcolinuxforum.com/" BUG_REPORT_URL="https://github.com/arcolinux" LOGO=arcolinux-hello

Tahooft avatar Feb 07 '22 12:02 Tahooft

Thanks for sharing this. Do you like to create a pull request for this and add the support? It's a small change to the include/osdetection file.

mboelen avatar Feb 09 '22 09:02 mboelen

Gave it a try but not that fluent in git yet.

Based on: cat /etc/os-release NAME=ArcoLinux ID=arcolinux ID_LIKE=arch BUILD_ID=rolling ANSI_COLOR="0;36" HOME_URL="https://arcolinux.info/" SUPPORT_URL="https://arcolinuxforum.com/" BUG_REPORT_URL="https://github.com/arcolinux" LOGO=arcolinux-hello

I think this would work:

"arcolinux") LINUX_VERSION="ArcoLinux" OS_NAME=$(grep "^NAME=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') OS_VERSION=$(grep "^BUILD_ID=" /etc/os-release | awk -F= '{print $2}' | tr -d '"') ;;

Hope this has some use.

Op wo 9 feb. 2022 om 10:48 schreef Michael Boelen @.***

:

Thanks for sharing this. Do you like to create a pull request for this and add the support? It's a small change to the include/osdetection file.

— Reply to this email directly, view it on GitHub https://github.com/CISOfy/lynis/issues/1267#issuecomment-1033568193, or unsubscribe https://github.com/notifications/unsubscribe-auth/AH3TQCRT2U36UZ7JMNQCT4LU2I2ADANCNFSM5NXKA55Q . Triage notifications on the go with GitHub Mobile for iOS https://apps.apple.com/app/apple-store/id1477376905?ct=notification-email&mt=8&pt=524675 or Android https://play.google.com/store/apps/details?id=com.github.android&referrer=utm_campaign%3Dnotification-email%26utm_medium%3Demail%26utm_source%3Dgithub.

You are receiving this because you authored the thread.Message ID: @.***>

Tahooft avatar Feb 12 '22 11:02 Tahooft