Display chroot names and details

Add option '-a' to operate on all chroots and '-l' to list croutonversion details.
Gettin' closer ;)


On Tue, Aug 5, 2014 at 3:29 PM, David Schneider <notifications@github.com>
wrote:

> In host-bin/edit-chroot:
>
> > @@ -230,6 +265,27 @@ for NAME in "$@"; do
> >
> >      # Check for existence and unmount/delete the chroot.
> >      if [ -d "$CHROOT" ]; then
> > +        if [ -n "$LISTDETAILS" ]; then
> > +            if [ -f "$CHROOT/.ecryptfs" ]; then
> > +                if [ -d "/var/run/crouton/$CHROOT" ]; then
> > +                    echo "name: $NAME" [encrypted: yes, accessible] 2>&1
> > +                    CROUTON_NO_UNMOUNT=1 sh -e "$BINDIR/enter-chroot" -c "$CHROOTS" -n "$NAME" -x /usr/local/bin/croutonversion
>
> Can you combine the three copy-paste calls to enter-chroot into one?
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/dnschneid/crouton/pull/963/files#r15835638>.
>



-- 
*DennyL@GMail*