Currently we need to issue mkdir /QOpenSys/path/to/new/chroot before running chroot_setup.sh. I propose we enhance chroot_setup.sh to create the chroot destination directory if it doesn't exist.
chroot_setup.sh(partial snippet) proposed change:
. . .
qopen=$(echo $CHROOT_DIR | grep -c '/QOpenSys')
if (($qopen==0)); then
echo "Error: 2nd paramter must start /QOpenSys ($CHROOT_DIR)"
opr="error"
fi
mkdir -p $CHROOT_DIR <----------- proposed change
# run operation
# $PS1='ranger$ '
key=""
val=""
. . .
Original report by Aaron Bartell (Bitbucket: aaronbartell, GitHub: aaronbartell).
Currently we need to issue
mkdir /QOpenSys/path/to/new/chroot
before runningchroot_setup.sh
. I propose we enhancechroot_setup.sh
to create the chroot destination directory if it doesn't exist.chroot_setup.sh
(partial snippet) proposed change:Thoughts?