Skip to content
This repository has been archived by the owner on Jan 9, 2019. It is now read-only.

Commit

Permalink
Merge pull request #3 from Fresbee/master
Browse files Browse the repository at this point in the history
Fix script running in temporary chroot, force chroot start in $HOME
  • Loading branch information
scallopedllama committed Jul 10, 2015
2 parents dba07d0 + 102eadc commit f1a5e58
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lego
Original file line number Diff line number Diff line change
Expand Up @@ -246,13 +246,13 @@ run_chroot()
colorecho red "WARNING: '$chroot_name' is a base-chroot. A temporary snapshot will be created and chroot'd to."
colorecho red " THIS CHROOT ENVIRONMENT WILL BE DESTROYED AND LOST FOREVER WHEN YOU LOG OUT OF THE CHROOT."
colorecho red " Use the new command to create a persistent work-chroot."
schroot -c $chroot_name
schroot -c $chroot_name --directory=${HOME} -- $@
exitval=$?
colorecho yellow "NOTE: Temporary work-chroot environment permanently deleted."
return $exitval
fi
# Must be good to switch to the persistent work-chroot
schroot -c $chroot_name -r -- $@
schroot -c $chroot_name -r --directory=${HOME} -- $@
}


Expand Down

0 comments on commit f1a5e58

Please sign in to comment.