From d924c83f9ce0f37fb8c109b34ff2623403678ee1 Mon Sep 17 00:00:00 2001 From: Brandon Philips Date: Sun, 17 Feb 2013 17:23:53 -0800 Subject: [PATCH] fix(coreos-base/coreos-base): add /etc/mtab symlink this is the right way of doing this, do it. --- .../coreos-base/coreos-base/coreos-base-0.ebuild | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-base/coreos-base-0.ebuild b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-base/coreos-base-0.ebuild index 02e6e2af1b..5e37244e74 100644 --- a/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-base/coreos-base-0.ebuild +++ b/sdk_container/src/third_party/coreos-overlay/coreos-base/coreos-base/coreos-base-0.ebuild @@ -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 }