mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-30 18:12:08 +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
|
||||
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
|
||||
# can then change around at runtime.
|
||||
dosym /var/lib/timezone/localtime /etc/localtime || die
|
||||
@ -133,9 +136,9 @@ src_install() {
|
||||
# Add a sudo file for the core use
|
||||
if [[ -n ${SHARED_USER_NAME} ]] ; then
|
||||
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
|
||||
doins 95_cros_base || die
|
||||
doins 95_core_base || die
|
||||
fi
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user