[go: nahoru, domu]

Skip to content

Commit

Permalink
Fix the status of an encrypted chroot reported by edit-chroot
Browse files Browse the repository at this point in the history
* Determine whether it's locked or not by checking /var/run/crouton/... is a mount point or not.
* Fixes dnschneid#1798
  • Loading branch information
arbuztw committed Jul 9, 2015
1 parent f106756 commit b2b98d1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion host-bin/edit-chroot
Original file line number Diff line number Diff line change
Expand Up @@ -307,7 +307,7 @@ for NAME in "$@"; do
-a "$LISTDETAILS" -gt 1 ]; then
sh "$BINDIR/mount-chroot" -c "$CHROOTS" -- "$NAME" || true
fi
if [ -d "/var/run/crouton/$CHROOT" ]; then
if mountpoint -q "/var/run/crouton/$CHROOT"; then
echo "encrypted: yes, unlocked"
else
echo "encrypted: yes, locked"
Expand Down

0 comments on commit b2b98d1

Please sign in to comment.