prepare-root.sh: always use --refresh on --checkupdate
This commit is contained in:
parent
cec1003bfb
commit
5238f7ae4e
|
@ -212,7 +212,7 @@ if [[ $CHECK_UPDATE ]]; then
|
||||||
mkdir -p "$STATEDIR"/rpm
|
mkdir -p "$STATEDIR"/rpm
|
||||||
mkdir -p "$sysroot"/var/lib/rpm
|
mkdir -p "$sysroot"/var/lib/rpm
|
||||||
mount -o bind "$STATEDIR"/rpm "$sysroot"/var/lib/rpm
|
mount -o bind "$STATEDIR"/rpm "$sysroot"/var/lib/rpm
|
||||||
DNF_COMMAND="check-update"
|
DNF_COMMAND="check-update --refresh"
|
||||||
else
|
else
|
||||||
DNF_COMMAND="install -y"
|
DNF_COMMAND="install -y"
|
||||||
fi
|
fi
|
||||||
|
|
Loading…
Reference in a new issue