FEDORA_MIRROR_KEYS="http://mirror.onelab.eu/keys/"
FEDORA_PREINSTALLED="dnf dnf-yum passwd rsyslog vim-minimal dhclient chkconfig rootfiles policycoreutils openssh-server openssh-clients"
DEBIAN_PREINSTALLED="openssh-server openssh-client"
FEDORA_MIRROR_KEYS="http://mirror.onelab.eu/keys/"
FEDORA_PREINSTALLED="dnf dnf-yum passwd rsyslog vim-minimal dhclient chkconfig rootfiles policycoreutils openssh-server openssh-clients"
DEBIAN_PREINSTALLED="openssh-server openssh-client"
# append fedora repo files with desired ${fedora_release} and $basearch
for f in $INSTALL_ROOT/etc/yum.repos.d/* ; do
sed -i "s/\$basearch/$arch/g; s/\$releasever/${fedora_release}/g;" $f
done
# append fedora repo files with desired ${fedora_release} and $basearch
for f in $INSTALL_ROOT/etc/yum.repos.d/* ; do
sed -i "s/\$basearch/$arch/g; s/\$releasever/${fedora_release}/g;" $f
done
# since fedora18 the rpms are scattered by first name
# first try the second version of fedora-release first
RELEASE_URLS=""
local subindex
for subindex in 3 2 1; do
# since fedora18 the rpms are scattered by first name
# first try the second version of fedora-release first
RELEASE_URLS=""
local subindex
for subindex in 3 2 1; do
# use mirroring/ stuff instead of a hard-wired config
local repofile=$lxc_root/etc/yum.repos.d/building.repo
yumconf_mirrors $repofile ${DIRNAME} $fcdistro \
# use mirroring/ stuff instead of a hard-wired config
local repofile=$lxc_root/etc/yum.repos.d/building.repo
yumconf_mirrors $repofile ${DIRNAME} $fcdistro \
# the keys stuff requires adjustment though
sed -i $repofile -e s,'gpgkey=.*',"gpgkey=${FEDORA_MIRROR_KEYS}/RPM-GPG-KEY-fedora-${fedora_release}-primary,"
# the keys stuff requires adjustment though
sed -i $repofile -e s,'gpgkey=.*',"gpgkey=${FEDORA_MIRROR_KEYS}/RPM-GPG-KEY-fedora-${fedora_release}-primary,"