prepare-root.sh: turn off -e for update check

stupid dnf returns 100
This commit is contained in:
Harald Hoyer 2018-11-16 11:47:06 +01:00
parent 9ddb16b714
commit 19d4b9fccf

View file

@ -244,6 +244,7 @@ if [[ $NO_SCRIPTS ]]; then
ln -s ../run/lock "$sysroot"/var/lock ln -s ../run/lock "$sysroot"/var/lock
fi fi
set +e
dnf -v --nogpgcheck \ dnf -v --nogpgcheck \
--installroot "$sysroot"/ \ --installroot "$sysroot"/ \
--releasever "$RELEASEVER" \ --releasever "$RELEASEVER" \
@ -301,11 +302,14 @@ dnf -v --nogpgcheck \
$PKGLIST $PKGLIST
RET=$? RET=$?
set -e
if [[ $CHECK_UPDATE ]]; then if [[ $CHECK_UPDATE ]]; then
exit $RET exit $RET
fi fi
(( $RET == 0 ))
chroot "$sysroot" /usr/bin/systemd-sysusers chroot "$sysroot" /usr/bin/systemd-sysusers
for i in passwd shadow group gshadow subuid subgid; do for i in passwd shadow group gshadow subuid subgid; do