opnsense-ports/sysutils/debootstrap/files/patch-functions
Franco Fichtner 83124d6a66 */*: sync with upstream
Taken from: HardenedBSD
2021-01-14 11:13:50 +01: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 ;;