ignore --configure errors For some reason, when run with stock sh(1) the script aborts just after 'Unpacking the base system'. The fdescfs mount fixes 'dpkg --configure' for rsyslog. Note that there are also some kernel patches required to make it work completely. The fdescfs is not enough to fix everything, though, so just ignore 'dpkg --configure' errors for Bionic; they don't break anything important. PR: ports/247698 Reviewed by: 0mp (earlier version) Approved by: maintainer timeout (2 weeks) Sponsored by: The FreeBSD Foundation Differential Revision: https://reviews.freebsd.org/D25594
17 lines
769 B
Plaintext
17 lines
769 B
Plaintext
--- scripts/bionic.orig 2020-07-08 20:51:17.590645000 +0100
|
|
+++ scripts/bionic 2020-07-08 20:51:28.786509000 +0100
|
|
@@ -249,10 +249,13 @@ echo \"Warning: Fake initctl called, doing nothing\""
|
|
|
|
info CONFBASE "Configuring the base system..."
|
|
|
|
+ # This step sometimes fails due to some missing functionality in Linuxulator. Just ignore it.
|
|
+ set +e
|
|
smallyes '' |
|
|
(repeatn 5 in_target_failmsg CONF_BASE_FAIL_FIVE "Failure while configuring base packages. This will be re-attempted up to five times." "" \
|
|
dpkg --status-fd 8 --force-confold --skip-same-version --configure -a 8>&1 1>&7 || echo EXITCODE $?) |
|
|
dpkg_progress $baseprog $bases CONFBASE "Configuring base system" CONFIGURING
|
|
+ set -e
|
|
fi
|
|
|
|
if [ -x "$TARGET/sbin/initctl.REAL" ]; then
|