mirror of
https://github.com/flatcar/scripts.git
synced 2025-09-25 23:51:07 +02:00
fix(make.conf.user): Fix references to old make.conf.user path.
We've moved all of the chroot configs from /etc to /etc/portage but setup_board was still symlinking to /etc. Fix the path so no one gets mixed up by the two copies of the same file. Remove unused script that also used to write to old location.
This commit is contained in:
parent
abc38e033b
commit
be63f41081
@ -1,26 +0,0 @@
|
|||||||
#!/bin/bash
|
|
||||||
# Copyright (c) 2010 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.
|
|
||||||
set -e
|
|
||||||
|
|
||||||
if [ -z $1 ]; then
|
|
||||||
echo "Usage: $0 localaccount_username [chroot_path]"
|
|
||||||
exit 1
|
|
||||||
fi
|
|
||||||
|
|
||||||
# Default chroot_path to its standard location
|
|
||||||
chroot_path=${2:-"../../chroot"}
|
|
||||||
|
|
||||||
echo "Enabling local account $1@gmail.com."
|
|
||||||
|
|
||||||
# Add CHROMEOS_LOCAL_ACCOUNT var to /etc/make.conf.user
|
|
||||||
echo "Setting CHROMEOS_LOCAL_ACCOUNT in $chroot_path/etc/make.conf.user..."
|
|
||||||
VAR_NAME=CHROMEOS_LOCAL_ACCOUNT
|
|
||||||
if grep -q ${VAR_NAME} $chroot_path/etc/make.conf.user; then
|
|
||||||
regex="s/${VAR_NAME}=.*/${VAR_NAME}=$1@gmail.com/"
|
|
||||||
sudo sed -i -e "${regex}" $chroot_path/etc/make.conf.user
|
|
||||||
else
|
|
||||||
sudo sh -c "echo ""${VAR_NAME}=$1@gmail.com"" >> \
|
|
||||||
$chroot_path/etc/make.conf.user"
|
|
||||||
fi
|
|
@ -319,9 +319,8 @@ if ! ${HOST_BOARD}; then
|
|||||||
fi
|
fi
|
||||||
# Setup make.globals and the profile.
|
# Setup make.globals and the profile.
|
||||||
cmds=(
|
cmds=(
|
||||||
"touch /etc/make.conf.user"
|
"touch /etc/portage/make.conf.user"
|
||||||
"ln -sf /etc/make.globals '${BOARD_ROOT}/etc/make.globals'"
|
"ln -sf /etc/portage/make.conf.user '${BOARD_ROOT}/etc/make.conf.user'"
|
||||||
"ln -sf /etc/make.conf.user '${BOARD_ROOT}/etc/make.conf.user'"
|
|
||||||
"mkdir -p '${BOARD_ROOT}/etc/portage/hooks'"
|
"mkdir -p '${BOARD_ROOT}/etc/portage/hooks'"
|
||||||
)
|
)
|
||||||
for d in "${SCRIPTS_DIR}"/hooks/*; do
|
for d in "${SCRIPTS_DIR}"/hooks/*; do
|
||||||
|
Loading…
x
Reference in New Issue
Block a user