mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-15 08:56:58 +02:00
fix(coreos-base/coreos-base): Remove old ChromeOS files.
The udev rules are required on our system and refer to non-existent groups causing udev to spew a bit of useless noise on boot. The profile.d scripts don't do anything at all.
This commit is contained in:
parent
419ce7a477
commit
37a7bb4932
@ -15,7 +15,6 @@ IUSE="cros_host"
|
|||||||
# We need to make sure timezone-data is merged before us.
|
# We need to make sure timezone-data is merged before us.
|
||||||
# See pkg_setup below as well as http://crosbug.com/27413
|
# See pkg_setup below as well as http://crosbug.com/27413
|
||||||
# and friends.
|
# and friends.
|
||||||
# TODO: !app-misc/editor-wrapper
|
|
||||||
DEPEND="sys-apps/baselayout
|
DEPEND="sys-apps/baselayout
|
||||||
!<sys-libs/timezone-data-2011d
|
!<sys-libs/timezone-data-2011d
|
||||||
!<=app-admin/sudo-1.8.2
|
!<=app-admin/sudo-1.8.2
|
||||||
@ -98,20 +97,12 @@ src_install() {
|
|||||||
insinto /etc
|
insinto /etc
|
||||||
#doins "${FILESDIR}"/sysctl.conf || die
|
#doins "${FILESDIR}"/sysctl.conf || die
|
||||||
|
|
||||||
insinto /etc/profile.d
|
|
||||||
doins "${FILESDIR}"/xauthority.sh || die
|
|
||||||
|
|
||||||
insinto /lib/udev/rules.d
|
|
||||||
doins "${FILESDIR}"/udev-rules/*.rules || die
|
|
||||||
|
|
||||||
# target-specific fun
|
# target-specific fun
|
||||||
if ! use cros_host ; then
|
if ! use cros_host ; then
|
||||||
# Add a /srv directory for mounting into later
|
# Add a /srv directory for mounting into later
|
||||||
dodir /srv
|
dodir /srv
|
||||||
keepdir /srv
|
keepdir /srv
|
||||||
|
|
||||||
dodir /bin /usr/bin
|
|
||||||
|
|
||||||
# Make mount work in the way systemd prescribes
|
# Make mount work in the way systemd prescribes
|
||||||
dosym /proc/mounts /etc/mtab
|
dosym /proc/mounts /etc/mtab
|
||||||
|
|
||||||
@ -138,18 +129,6 @@ src_install() {
|
|||||||
|
|
||||||
# We use mawk in the target boards, not gawk.
|
# We use mawk in the target boards, not gawk.
|
||||||
dosym mawk /usr/bin/awk || die
|
dosym mawk /usr/bin/awk || die
|
||||||
|
|
||||||
# We want dash as our main shell.
|
|
||||||
#dosym dash /bin/sh
|
|
||||||
|
|
||||||
# Avoid the wrapper and just link to the only editor we have.
|
|
||||||
#dodir /usr/libexec
|
|
||||||
#dosym /usr/bin/vim /usr/libexec/editor || die
|
|
||||||
#dosym /bin/more /usr/libexec/pager || die
|
|
||||||
|
|
||||||
# Custom login shell snippets.
|
|
||||||
insinto /etc/profile.d
|
|
||||||
doins "${FILESDIR}"/cursor.sh
|
|
||||||
fi
|
fi
|
||||||
|
|
||||||
# Add a sudo file for the core use
|
# Add a sudo file for the core use
|
||||||
|
@ -1,7 +0,0 @@
|
|||||||
# We disable vt cursors by default on the kernel command line
|
|
||||||
# (so that it doesn't flash when doing boot splash and such).
|
|
||||||
#
|
|
||||||
# Re-enable it when launching a login shell. This should only
|
|
||||||
# happen when logging in via vt or crosh or ssh and those are
|
|
||||||
# all fine. Login shells shouldn't get launched normally.
|
|
||||||
setterm -cursor on
|
|
@ -1 +0,0 @@
|
|||||||
auth include coreos-auth
|
|
@ -1,9 +0,0 @@
|
|||||||
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
|
||||||
# found in the LICENSE file.
|
|
||||||
|
|
||||||
KERNEL=="tty[A-Z]*[0-9]", GROUP="serial"
|
|
||||||
# Don't allow access to serial interfaces on Gobi modems.
|
|
||||||
KERNEL=="tty[A-Z]*[0-9]", ID_USB_DRIVER=="qcserial", GROUP="root"
|
|
||||||
# Don't allow access to serial interfaces on Novatel modems.
|
|
||||||
KERNEL=="tty[A-Z]*[0-9]", ID_USB_DRIVER=="option", GROUP="root"
|
|
@ -1,5 +0,0 @@
|
|||||||
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
|
||||||
# found in the LICENSE file.
|
|
||||||
|
|
||||||
KERNEL=="i2c-[0-9]", GROUP="i2c"
|
|
@ -1,8 +0,0 @@
|
|||||||
# Copyright (c) 2012 The Chromium OS Authors. All rights reserved.
|
|
||||||
# Use of this source code is governed by a BSD-style license that can be
|
|
||||||
# found in the LICENSE file.
|
|
||||||
|
|
||||||
ACTION=="add", SUBSYSTEM=="usb", ATTR{bInterfaceClass}=="07", ATTRS{idProduct}=="*", \
|
|
||||||
PROGRAM="/usr/bin/dbus-send --system --type=method_call --dest=org.chromium.LibCrosService \
|
|
||||||
/org/chromium/LibCrosService org.chromium.LibCrosServiceInterface.PrinterAdded \
|
|
||||||
string:$attr{idVendor} string:$attr{idProduct}"
|
|
@ -1 +0,0 @@
|
|||||||
export XAUTHORITY="/home/chronos/.Xauthority"
|
|
Loading…
Reference in New Issue
Block a user