Schroot: E: default: Chroot not found
Sabniveesu Shashank
shashank at linux.com
Sun May 25 17:23:58 UTC 2014
On Fri, May 23, 2014 at 7:40 AM, Colin Watson <cjwatson at ubuntu.com> wrote:
Thanks Mr Colin Watson for the detailed explanation.
On Mon, May 19, 2014 at 12:07:52PM -0400, Sabniveesu Shashank wrote:
> > Ohh.. well, that worked but If I do -
> >
> >
> > $ cd /var/UbuntuTrusty/
> > $ schroot -c trusty
> > I am being shown this --
> >
> >
> > W: Failed to change to directory ‘/var/UbuntuTrusty’: No such file or
> > directory
>
> schroot tries to leave you in the same working directory that you were
> in prior to running schroot; this means, for instance, that you can be
> working in a source tree in ~/src/project, run "schroot -c trusty", and
> get a shell in that same source tree but in your trusty chroot. This is
> fantastically convenient.
>
> The command you're showing suggests that you're trying to change to the
> directory where you store the chroot itself before running schroot,
> which is generally entirely pointless, so just don't do that.
>
> > W: Failed to change to directory ‘/home/shashank’: No such file or
> directory
>
> However, this suggests that you may want to make sure that your home
> directory is bind-mounted in the chroot session. You can do this by
> selecting a different schroot profile, or by editing the "fstab" file in
> /etc/schroot/<profile-name>/.
>
> schroot has a number of different applications, and you're running into
> a case where those applications have different requirements. By
> default, mk-sbuild (and perhaps other similar tools) creates schroot
> instances that use the "sbuild" profile, which doesn't bind-mount /home;
> this makes it easier for package maintainers to ensure that their source
> packages don't accidentally require bits of their home directory.
> However, if you're more interested in being able to use your home
> directory from an schroot session, then you can either copy the /home
> line from /etc/schroot/default/fstab to /etc/schroot/sbuild/fstab, or
> simply delete "profile=sbuild" from /etc/schroot/chroot.d/<your chroot>
> so that you use the "default" profile instead.
>
> See "man schroot.conf" and search for "profile" for further details.
>
I'll look into them
> > As you can see , I do get a '$' prompt. Yet I'm worried if I would be
> doing
> > something dangerous.
>
> None of this is dangerous, but you will probably find schroot easier to
> use and thus more useful if you take one of the approaches above to fix
> it.
>
> --
> Colin Watson [cjwatson at ubuntu.com]
>
> --
> ubuntu-users mailing list
> ubuntu-users at lists.ubuntu.com
> Modify settings or unsubscribe at:
> https://lists.ubuntu.com/mailman/listinfo/ubuntu-users
>
<http://about.me/shashank.computers>
S.V.R.S.N. Shashank
about.me/shashank.computers
<http://about.me/shashank.computers>
We’ve created the greatest collection of shared knowledge in history. Help
protect Wikipedia. Donate now: https://donate.wikimedia.org
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ubuntu.com/archives/ubuntu-users/attachments/20140525/711787a1/attachment.html>
More information about the ubuntu-users
mailing list