mirror of
https://github.com/flatcar/scripts.git
synced 2025-10-01 10:31:37 +02:00
fix(coreos-base/coreos-base): add /etc/mtab symlink
this is the right way of doing this, do it.
This commit is contained in:
parent
0e3f1d4dba
commit
d924c83f9c
@ -105,6 +105,9 @@ src_install() {
|
|||||||
if ! use cros_host ; then
|
if ! use cros_host ; then
|
||||||
dodir /bin /usr/bin
|
dodir /bin /usr/bin
|
||||||
|
|
||||||
|
# Make mount work in the way systemd prescribes
|
||||||
|
dosym /etc/mtab /proc/mounts
|
||||||
|
|
||||||
# Symlink /etc/localtime to something on the stateful partition, which we
|
# Symlink /etc/localtime to something on the stateful partition, which we
|
||||||
# can then change around at runtime.
|
# can then change around at runtime.
|
||||||
dosym /var/lib/timezone/localtime /etc/localtime || die
|
dosym /var/lib/timezone/localtime /etc/localtime || die
|
||||||
@ -133,9 +136,9 @@ src_install() {
|
|||||||
# Add a sudo file for the core use
|
# Add a sudo file for the core use
|
||||||
if [[ -n ${SHARED_USER_NAME} ]] ; then
|
if [[ -n ${SHARED_USER_NAME} ]] ; then
|
||||||
insinto /etc/sudoers.d
|
insinto /etc/sudoers.d
|
||||||
echo "${SHARED_USER_NAME} ALL=(ALL) ALL" > 95_cros_base
|
echo "${SHARED_USER_NAME} ALL=(ALL) ALL" > 95_core_base
|
||||||
insopts -m 440
|
insopts -m 440
|
||||||
doins 95_cros_base || die
|
doins 95_core_base || die
|
||||||
fi
|
fi
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user