Display chroot names and details

Add option '-a' to operate on all chroots and '-l' to list croutonversion details.
Updated and hopefully incorporated the above notes.


On Tue, Aug 5, 2014 at 7:06 PM, David Schneider <notifications@github.com>
wrote:

> In host-bin/edit-chroot:
>
> > +                elif [ "${LISTDETAILS:-0}" -gt 1 ]; then
> > +                    sh -e "$BINDIR/mount-chroot" -p -c "$CHROOTS" -- "$NAME" || ret=$
> > +                    if [ "$ret" != 0 ]; then
> > +                        echo "[encrypted: yes, protected]" 1>&2
> > +                    elif [ -d "/var/run/crouton/$CHROOT" ]; then
> > +                        echo "[encrypted: yes, accessible]" 1>&2
> > +                        GETVERSION='y'
> > +                else
> > +                    echo "[encrypted: no]" 1>&2
> > +                    error 2 "$CHROOT is not encrypted but '-l' was specified twice."
> > +                fi
> > +            else
> > +                echo "[encrypted: no]" 1>&2
> > +                GETVERSION='y'
> > +            fi
> > +            if [ "$GETVERSION" = 'y' ]; then
>
> Clarification: it needs to be initialized per-chroot.
>
> —
> Reply to this email directly or view it on GitHub
> <https://github.com/dnschneid/crouton/pull/963/files#r15848038>.
>



-- 
*DennyL@GMail*