gugus

poudriere fast-patch for sparc

Aug 28th, 2012
121
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 1.36 KB | None | 0 0
  1. --- common.sh.orig      2012-08-28 22:26:24.000000000 +0000
  2. +++ common.sh   2012-08-28 22:29:48.000000000 +0000
  3. @@ -234,8 +234,10 @@
  4.  
  5.         mount -t devfs devfs ${JAILMNT}/dev
  6.         mount -t procfs proc ${JAILMNT}/proc
  7. -       mount -t linprocfs linprocfs ${JAILMNT}/compat/linux/proc
  8. -       mount -t linsysfs linsysfs ${JAILMNT}/compat/linux/sys
  9. +       if [ `uname -m` != sparc64 ]; then
  10. +               mount -t linprocfs linprocfs ${JAILMNT}/compat/linux/proc
  11. +               mount -t linsysfs linsysfs ${JAILMNT}/compat/linux/sys
  12. +       fi
  13.  }
  14.  
  15.  do_portbuild_mounts() {
  16. @@ -279,12 +281,16 @@
  17.  
  18.  jail_start() {
  19.         [ $# -ne 0 ] && eargs
  20. -       local NEEDFS="linprocfs linsysfs nullfs procfs"
  21. +       if [ `uname -m` = "sparc64" ]; then
  22. +               local NEEDFS="nullfs procfs"
  23. +       else
  24. +               local NEEDFS="linprocfs linsysfs nullfs procfs"
  25. +               sysctl -n compat.linux.osrelease >/dev/null 2>&1 || kldload linu
  26. x
  27. +       fi
  28.         [ -n "${USE_TMPFS}" ] && NEEDFS="${NEEDFS} tmpfs"
  29.         for fs in ${NEEDFS}; do
  30.                 lsvfs $fs >/dev/null 2>&1 || kldload $fs
  31.         done
  32. -       sysctl -n compat.linux.osrelease >/dev/null 2>&1 || kldload linux
  33.         jail_exists ${JAILNAME} || err 1 "No such jail: ${JAILNAME}"
  34.         jail_runs && err 1 "jail already running: ${JAILNAME}"
  35.         zset status "start:"
Advertisement
Add Comment
Please, Sign In to add comment