Do not use custom reposdir for centos7/LUKS image

This commit is contained in:
fnux 2020-07-06 11:36:09 +02:00
parent 9ba788e75b
commit 1e39b0aa84
1 changed files with 1 additions and 1 deletions

View File

@ -79,6 +79,7 @@ mount "${LUKS_DEVICE}" /mnt
mkdir /mnt/boot
mount "${LOOPBACK_DEVICE}p1" /mnt/boot
# Add --setopt=reposdir=rpm-repositories if you do not run on CentOS 7.
dnf -y \
--releasever=$RELEASE \
--installroot=/mnt \
@ -86,7 +87,6 @@ dnf -y \
--enablerepo=base \
--enablerepo=extras \
--setopt=install_weak_deps=False install \
--setopt=reposdir=rpm-repositories \
bash basesystem systemd dnf centos-release cryptsetup dnf
mount --bind /dev /mnt/dev