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
21 lines
680 B
Plaintext
21 lines
680 B
Plaintext
--- functions.orig 2019-07-06 11:22:30 UTC
|
|
+++ functions
|
|
@@ -1139,6 +1139,7 @@ setup_proc () {
|
|
case "$HOST_OS" in
|
|
*freebsd*)
|
|
umount_on_exit /dev
|
|
+ umount_on_exit /dev/fd
|
|
umount_on_exit /proc
|
|
umount "$TARGET/proc" 2>/dev/null || true
|
|
if [ "$HOST_OS" = kfreebsd ]; then
|
|
@@ -1224,7 +1225,8 @@ setup_dynamic_devices () {
|
|
kfreebsd*)
|
|
in_target mount -t devfs devfs /dev ;;
|
|
freebsd)
|
|
- mount -t devfs devfs "$TARGET/dev" ;;
|
|
+ mount -t devfs devfs "$TARGET/dev"
|
|
+ mount -t fdescfs -o linrdlnk fdescfs "$TARGET/dev/fd" ;;
|
|
hurd*)
|
|
# Use the setup-translators of the hurd package
|
|
in_target /usr/lib/hurd/setup-translators -k ;;
|