mirror of
https://github.com/flatcar/scripts.git
synced 2025-08-08 13:36:58 +02:00
Get rid of chroot inside this script, and not mounting mod_for_test_scripts into rootfs any more. The reason caused the failure here is once you chroot into the mounted rootfs directory, all binaries were searched inside the rootfs. But all binaries inside the arm rootfs was for arm hardware, so not executable on the host linux machine(intel). Review URL: http://codereview.chromium.org/845007
17 lines
512 B
Bash
Executable File
17 lines
512 B
Bash
Executable File
#!/bin/bash
|
|
|
|
# Copyright (c) 2009 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.
|
|
#
|
|
# Copy public keys to root's homedir for ssh pubkey auth, which
|
|
# is necessary for test automation.
|
|
|
|
echo "Copying public keys"
|
|
|
|
KEYS_DIR=${GCLIENT_ROOT}/src/scripts/mod_for_test_scripts/ssh_keys
|
|
mkdir -p ${ROOT_FS_DIR}/root/.ssh
|
|
ROOT_AUTHKEYS=${ROOT_FS_DIR}/root/.ssh/authorized_keys
|
|
cat ${KEYS_DIR}/*.pub >> ${ROOT_AUTHKEYS}
|
|
|