bareon-image-elements/centos-bareon/root.d/10-create-repo
Dmitry Bogun e8c2c18f0a Add method to inject root password and ssh key
For debug purposes we need to inject root password(in case we will have
access to console) or root ssh key or both of them.

Change-Id: I822df209a4100ac65d4628ca4e3d0954878815c9
2017-02-27 16:48:30 +02:00

14 lines
274 B
Bash
Executable File

#!/bin/bash
if [ ${DIB_DEBUG_TRACE:-1} -gt 0 ]; then
set -x
fi
set -e
[[ -n "$TARGET_ROOT" ]] || exit 1
sudo mkdir -p $TARGET_ROOT/etc/yum.repos.d
sudo cp /etc/yum.repos.d/*.repo $TARGET_ROOT/etc/yum.repos.d/
sudo cp /etc/pki/rpm-gpg/* $TARGET_ROOT/etc/pki/rpm-gpg/