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:
@@ -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}/
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user