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
|
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
|
||||||
|
|
Loading…
Reference in a new issue