angstrom-version: fix quoting in /etc/os-release

It turns out that this file is meant to be sourcable by the shell, leading to errors like this:

	*** Including module: base ***
	/etc/os-release: line 3: $'\303\205ngstr\303\266m': command not found
	/etc/os-release: line 4: 35: command not found

This fixes the above error when running dracut

Signed-off-by: Koen Kooi <koen@dominion.thruhere.net>
This commit is contained in:
Koen Kooi
2014-01-10 09:37:52 +01:00
parent 5d9b313dc0
commit b83ac2d5f4

View File

@@ -2,7 +2,7 @@ LICENSE = "MIT"
LIC_FILES_CHKSUM = "file://${COREBASE}/LICENSE;md5=4d92cd373abda3937c2bc47fbc49d690"
PV = "${DISTRO_VERSION}"
PR = "r11"
PR = "r12"
PE = "2"
SRC_URI = "file://lsb_release"
@@ -44,11 +44,13 @@ do_install() {
echo "${@get_layers(bb, d)}" > ${D}${sysconfdir}/angstrom-build-info
echo "NAME=Angstrom" > ${D}${sysconfdir}/os-release
echo "ID=angstrom" >> ${D}${sysconfdir}/os-release
echo "PRETTY_NAME=The Ångström Distribution" >> ${D}${sysconfdir}/os-release
echo "ANSI_COLOR=1;35" >> ${D}${sysconfdir}/os-release
echo "VERSION=\"${DISTRO_VERSION}\"" > ${D}${sysconfdir}/os-release
echo "NAME=\"Angstrom\"" >> ${D}${sysconfdir}/os-release
echo "ID=\"angstrom\"" >> ${D}${sysconfdir}/os-release
echo "PRETTY_NAME=\"The Ångström Distribution\"" >> ${D}${sysconfdir}/os-release
echo "ANSI_COLOR=\"1;35\"" >> ${D}${sysconfdir}/os-release
echo "HOME_URL=\"http://www.angstrom-distribution.org\"" >> ${D}${sysconfdir}/os-release
install -d ${D}${bindir}
install -m 0755 ${WORKDIR}/lsb_release ${D}${bindir}/
}