. "$BST_LIB" require lsb_release lsb-release/present # lsb_release identifies the distribution from /etc/lsb-release, which the image # recipe writes at build time from DISTRO/DISTRO_VERSION (DISTRIB_ID=brintos). # Single-field queries exit 0 when their field is populated; -a is not used here # because it also demands a codename, which /etc/lsb-release does not carry, and # then exits 3 (ERROR_NOANSWER) by design on a non-fully-LSB distro. # The distributor resolves to the brintos distro id. check_out lsb-release/distro "brintos" lsb_release -i # The release field resolves (DISTRO_VERSION; value drifts, so assert the field). check_out lsb-release/release "Release:" lsb_release -r # The one-line description carries the distro name. check_out lsb-release/desc "brintOS" lsb_release -d # The backing /etc/lsb-release database the tool reads is populated. check_out lsb-release/etc "DISTRIB_ID=" cat /etc/lsb-release