There are no fixes involved. This document is merely to provide information on what to expect in the os-release file depending on the installed version.
Fresh installs of SLES for SAP Applications produce the following os-release syntax and products.d contents:-
————————————————————————————————————————————
# cat /etc/os-release
NAME=”SLES”
VERSION=”12″
VERSION_ID=”12″
PRETTY_NAME=”SUSE Linux Enterprise Server 12″
ID=”sles”
ANSI_COLOR=”0;32″
CPE_NAME=”cpe:/o:suse:sles:12″
/etc/products.d # ls -l
total 16
-rw-r–r– 1 root root 2705 Oct 14 2014 SLES.prod
-rw-r–r– 1 root root 2839 Apr 23 2015 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Apr 3 15:41 baseproduct -> SLES_SAP.prod
-rw-r–r– 1 root root 1598 Oct 2 2014 sle-ha.prod
——————————————————
# cat /etc/os-release
NAME=”SLES_SAP”
VERSION=”12-SP1″
VERSION_ID=”12.1.0.1″
PRETTY_NAME=”SUSE Linux Enterprise Server for SAP Applications 12 SP1″
ID=”sles_sap”
ANSI_COLOR=”0;32″
CPE_NAME=”cpe:/o:suse:sles_sap:12:sp1″
/etc/products.d # ls -l
total 8
-rw-r–r– 1 root root 2854 Mar 15 2017 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Apr 3 15:05 baseproduct -> SLES_SAP.prod
——————————————————
# cat /etc/os-release
NAME=”SLES_SAP”
VERSION=”12-SP2″
VERSION_ID=”12.2″
PRETTY_NAME=”SUSE Linux Enterprise Server for SAP Applications 12 SP2″
ID=”sles_sap”
ANSI_COLOR=”0;32″
CPE_NAME=”cpe:/o:suse:sles_sap:12:sp2″
/etc/products.d # ls -l
total 8
-rw-r–r– 1 root root 3080 Mar 30 2017 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Apr 3 13:11 baseproduct -> SLES_SAP.prod
——————————————————
# cat /etc/os-release
NAME=”SLES”
VERSION=”12-SP3″
VERSION_ID=”12.3″
PRETTY_NAME=”SUSE Linux Enterprise Server 12 SP3″
ID=”sles”
ANSI_COLOR=”0;32″
CPE_NAME=”cpe:/o:suse:sles_sap:12:sp3″
/etc/products.d # ls -l
total 8
-rw-r–r– 1 root root 2972 Jul 24 2017 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Apr 3 12:31 baseproduct -> SLES_SAP.prod
——————————————————
# cat /etc/os-release
NAME=”SLES”
VERSION=”15″
VERSION_ID=”15″
PRETTY_NAME=”SUSE Linux Enterprise Server 15″
ID=”sles”
ID_LIKE=”suse”
ANSI_COLOR=”0;32″
CPE_NAME=”cpe:/o:suse:sles:15″
linux-mpxw:~ #
/etc/products.d # ls -l
total 28
-rw-r–r– 1 root root 3185 May 30 05:23 SLES_SAP.prod
lrwxrwxrwx 1 root root 13 Oct 31 11:46 baseproduct -> SLES_SAP.prod
-rw-r–r– 1 root root 3197 May 30 05:23 sle-ha.prod
-rw-r–r– 1 root root 1892 May 30 05:23 sle-module-basesystem.prod
-rw-r–r– 1 root root 2264 May 30 05:23 sle-module-desktop-applications.prod
-rw-r–r– 1 root root 2315 May 30 05:23 sle-module-sap-applications.prod
-rw-r–r– 1 root root 2351 May 30 05:23 sle-module-server-applications.prod
——————————————————
This leaves us with the question ‘How do we identify the ‘base product’ of a server?”.
The correct way to do this is is by examining the contents of /etc/product.d directory (and look at which product file the link ‘baseproduct’ is pointing too).