e8c2c18f0a
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
14 lines
274 B
Bash
Executable File
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/
|