[pbuilder] 01/01: modules: Add linsysfs support for kfreebsd

James Clarke jrtc27-guest at moszumanska.debian.org
Thu Jun 9 19:12:31 UTC 2016


This is an automated email from the git hooks/post-receive script.

jrtc27-guest pushed a commit to branch master
in repository pbuilder.

commit a8185b9a8cfaeb3d633223bc0dc8302fdfe986d0
Author: James Clarke <jrtc27 at jrtc27.com>
Date:   Thu Jun 9 19:50:58 2016 +0100

    modules: Add linsysfs support for kfreebsd
---
 pbuilder-modules | 13 ++++++++++---
 1 file changed, 10 insertions(+), 3 deletions(-)

diff --git a/pbuilder-modules b/pbuilder-modules
index 5b505c5..04ce4fc 100644
--- a/pbuilder-modules
+++ b/pbuilder-modules
@@ -248,7 +248,7 @@ function umountproc () {
         fi
         umount_one "proc"
     fi
-    if [ "$DEB_BUILD_ARCH_OS" = "linux" ] && [ "$USESYSFS" = "yes" ]; then
+    if [ "$DEB_BUILD_ARCH_OS" != "hurd" ] && [ "$USESYSFS" = "yes" ]; then
         umount_one "sys"
     fi
     if [ "$DEB_BUILD_ARCH_OS" = "hurd" ]; then
@@ -301,10 +301,17 @@ function mountproc () {
         mount -t devfs /dev "$BUILDPLACE/dev"
         mounted[${#mounted[@]}]="$BUILDPLACE/dev"
     fi
-    if [ "$DEB_BUILD_ARCH_OS" = "linux" ] && [ "$USESYSFS" = "yes" ]; then
+    if [ "$DEB_BUILD_ARCH_OS" != "hurd" ] && [ "$USESYSFS" = "yes" ]; then
         log.i "mounting /sys filesystem"
         mkdir -p "$BUILDPLACE/sys" || true
-        mount -t sysfs -o nosuid,nodev,noexec sysfs "$BUILDPLACE/sys"
+        case "$DEB_BUILD_ARCH_OS" in
+            kfreebsd)
+                mount -t linsysfs linsysfs "$BUILDPLACE/sys"
+                ;;
+            *)
+                mount -t sysfs -o nosuid,nodev,noexec sysfs "$BUILDPLACE/sys"
+                ;;
+        esac
         mounted[${#mounted[@]}]="$BUILDPLACE/sys"
     fi
     if [ "$DEB_BUILD_ARCH_OS" = "linux" ] && [ "$USERUNSHM" = "yes" ]; then

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pbuilder/pbuilder.git



More information about the Pbuilder-maint mailing list