mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-18 02:16:59 +02:00
fix(sys-apps/baselayout): Do not symlink resolv.conf to /run in SDK
This commit is contained in:
parent
38e59ff8c4
commit
2ee19425ca
@ -132,13 +132,15 @@ src_install() {
|
|||||||
done
|
done
|
||||||
echo "LDPATH='${ldpaths#:}'" >> "${D}"/etc/env.d/00basic || die
|
echo "LDPATH='${ldpaths#:}'" >> "${D}"/etc/env.d/00basic || die
|
||||||
|
|
||||||
|
if ! use symlink-usr && ! use cros_host; then
|
||||||
|
# move resolv.conf to a writable location
|
||||||
|
dosym /run/resolv.conf /etc/resolv.conf
|
||||||
|
fi
|
||||||
|
|
||||||
if ! use symlink-usr ; then
|
if ! use symlink-usr ; then
|
||||||
# modprobe uses /lib instead of /usr/lib
|
# modprobe uses /lib instead of /usr/lib
|
||||||
mv "${D}"/usr/lib/modprobe.d "${D}"/lib/modprobe.d || die
|
mv "${D}"/usr/lib/modprobe.d "${D}"/lib/modprobe.d || die
|
||||||
|
|
||||||
# move resolv.conf to a writable location
|
|
||||||
dosym /run/resolv.conf /etc/resolv.conf
|
|
||||||
|
|
||||||
# core is UID:GID 1000:1000 in old images
|
# core is UID:GID 1000:1000 in old images
|
||||||
sed -i -e 's/^core:x:500:500:/core:x:1000:1000:/' \
|
sed -i -e 's/^core:x:500:500:/core:x:1000:1000:/' \
|
||||||
"${D}"/usr/share/baselayout/passwd || die
|
"${D}"/usr/share/baselayout/passwd || die
|
||||||
|
Loading…
Reference in New Issue
Block a user