FreeBSD Bugzilla – Attachment 223733 Details for
Bug 253593
Process hangs if nullfs mounted cwd moved out of chroot
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
repros bug 253593
bug_253593_repro.sh (text/plain), 1.09 KB, created by
Patrick Sullivan
on 2021-03-31 16:26:49 UTC
(
hide
)
Description:
repros bug 253593
Filename:
MIME Type:
Creator:
Patrick Sullivan
Created:
2021-03-31 16:26:49 UTC
Size:
1.09 KB
patch
obsolete
>#!/usr/bin/env bash > >set -e >set -x > >TL_DIR="/test2" >JAIL_DIR=$TL_DIR"/jail" >JAIL_MOUNT=$JAIL_DIR"/mnt" >JAIL_SUBDIR=$JAIL_MOUNT"/subdir" >IN_JAIL_SUBDIR="/mnt/subdir" >MOUNTED_DIR=$TL_DIR"/mounted" >MOUNTED_SUBDIR=$MOUNTED_DIR"/subdir" >OUTSIDE=$TL_DIR"/outside" >SESSION_NAME="testjail" >WINDOW_NAME="panicme" > >if ! which tmux >/dev/null; then > echo "Tmux is a dependency [ports/sysutils/tmux]" > exit 1 >fi > >if (( $# < 1 )); then > echo "usage: $0 [fbsd source dir]" > exit 1 >fi > > >make_jail(){ > pushd "$src_dir" > echo make buildworld > make installworld DESTDIR=$JAIL_DIR > make distribution DESTDIR=$JAIL_DIR > mount -t devfs devfs $JAIL_DIR/dev > popd >} > > >repro_253593(){ > local src_dir="$1" > shift > mkdir -p $JAIL_DIR $MOUNTED_SUBDIR > # make_jail "$src_dir" > mount -t nullfs $MOUNTED_DIR $JAIL_MOUNT > tmux new-session -s $SESSION_NAME -n $WINDOW_NAME -d chroot $JAIL_DIR /bin/sh > tmux send-keys -t $SESSION_NAME:$WINDOW_NAME.0 "cd $IN_JAIL_SUBDIR" KPenter > mv $MOUNTED_SUBDIR $OUTSIDE > tmux send-keys -t $SESSION_NAME:$WINDOW_NAME.0 "cd ." KPenter >} > > >repro_253593 $@
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Raw
Actions:
View
Attachments on
bug 253593
:
222534
| 223733