Commit ddd8e31d authored by Lucas Sulzbach's avatar Lucas Sulzbach

Setup lsb-release

parent 6b7e174c
......@@ -101,8 +101,10 @@ sed --in-place "s/PRETTY_NAME=.*/PRETTY_NAME=\"${NAME}\"/" \
"${CHROOTDIR}/usr/lib/os-release" || create_iso_logger --message \
"Unable to change pretty name in os-release file" --type warning --tag "sed"
cp "${PREFIX}/src/lsb-release" "${CHROOTDIR}/etc/" || create_iso_logger \
--message "Unable to copy lsb-release file to chroot" --type warning --tag "cp"
sed --in-place "s/DISTRIB_DESCRIPTION=.*/DISTRIB_DESCRIPTION=\"${NAME}\"/" \
"${CHROOTDIR}/etc/lsb-release" || create_iso_logger --message \
"Unable to change distribution description in lsb-release file" --type warning \
--tag "sed"
echo "force-confdef" >> /etc/dpkg/dpkg.cfg || create_iso_logger --message \
"Unable to append config option dpkg.cfg" --type warning --tag "echo"
......
DISTRIB_ID=Ubuntu
DISTRIB_RELEASE=16.04
DISTRIB_CODENAME=xenial
DISTRIB_DESCRIPTION="##DESCRIPTION##"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment