freebsd-ports/sysutils/debootstrap/files/patch-functions
Edward Tomasz Napierala 29a4a9a681 sysutils/debootstrap: add workarounds necessary for bootstrapping
Ubuntu Focal and Debian Sid.

Sponsored by:	The FreeBSD Foundation
2021-01-13 09:57:09 +00:00

20 lines
680 B
Text

--- functions.orig 2020-03-14 00:53:38 UTC
+++ functions
@@ -1157,6 +1157,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
@@ -1242,7 +1243,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 ;;