prepare-root.sh: turn off -e for update check
stupid dnf returns 100
This commit is contained in:
parent
9ddb16b714
commit
19d4b9fccf
|
@ -244,6 +244,7 @@ if [[ $NO_SCRIPTS ]]; then
|
|||
ln -s ../run/lock "$sysroot"/var/lock
|
||||
fi
|
||||
|
||||
set +e
|
||||
dnf -v --nogpgcheck \
|
||||
--installroot "$sysroot"/ \
|
||||
--releasever "$RELEASEVER" \
|
||||
|
@ -301,11 +302,14 @@ dnf -v --nogpgcheck \
|
|||
$PKGLIST
|
||||
|
||||
RET=$?
|
||||
set -e
|
||||
|
||||
if [[ $CHECK_UPDATE ]]; then
|
||||
exit $RET
|
||||
fi
|
||||
|
||||
(( $RET == 0 ))
|
||||
|
||||
chroot "$sysroot" /usr/bin/systemd-sysusers
|
||||
|
||||
for i in passwd shadow group gshadow subuid subgid; do
|
||||
|
|
Loading…
Reference in a new issue