The lsb-release package is available on Bookworm, and will be installed by default (even on a fresh install) in some scenarios, including where the Debian installer (using hw-detect) identifies your install as running on a VMware hypervisor, and installs open-vm-tools (which pulls in the lsb-release package by requiring it).
While the lsb_release command outputs the "No LSB modules are available." message in more places as of Bookworm, it only outputs the message if stdout is a terminal, thus our usage appears to be unaffected.
I think that Josh's suggestion of ensuring that the lsb-release package is installed is very reasonable.
If we need to switch/simplify, I think Galen's on the right path with using the os-release file.
/usr/lib/os-release and the symlink /etc/os-release are provided by base-files, and are present in all Debian releases that we currently support.
The lsb-release package is available on Bookworm, and will be installed by default (even on a fresh install) in some scenarios, including where the Debian installer (using hw-detect) identifies your install as running on a VMware hypervisor, and installs open-vm-tools (which pulls in the lsb-release package by requiring it).
While the lsb_release command outputs the "No LSB modules are available." message in more places as of Bookworm, it only outputs the message if stdout is a terminal, thus our usage appears to be unaffected.
I think that Josh's suggestion of ensuring that the lsb-release package is installed is very reasonable.
If we need to switch/simplify, I think Galen's on the right path with using the os-release file.
/usr/lib/os-release and the symlink /etc/os-release are provided by base-files, and are present in all Debian releases that we currently support.
our two uses of lsb_release are:
Open-ILS/ src/edi_ translator/ install- ubuntu. sh:UBUNTU_ RELEASE= $(lsb_release -sc) src/extras/ install/ Makefile. debian: RELEASE_ CODENAME= $(shell lsb_release -cs)
Open-ILS/
It may be as simple as changing "lsb_release -sc" and "lsb_release -cs" to ". /usr/lib/ os-release; echo $VERSION_CODENAME"?
(I haven't tested that within the Makefile environment)