[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Bug#521474: emdebian-rootfs: Should complain when workingdir is not set in /etc/emsource.conf



On Fri, 27 Mar 2009 17:39:18 -0300
Marco Túlio Gontijo e Silva <marcot@holoscopio.com> wrote:

> Package: emdebian-rootfs
> Version: 1.6.0
> Severity: normal
> 
> More information on: http://lists.debian.org/debian-embedded/2009/03/msg00127.html

> I'm trying to generate a grip chroot for i386 using emsandbox, as
> explained in http://www.emdebian.org/grip/ .  I got:
> 
> $ mkdir -p machine/balloon/grip
> $ cat << EOF > machine/balloon/grip/package.conf
> SCRIPT=/usr/share/debootstrap/scripts/lenny
> MIRROR=http://www.emdebian.org/grip/
> PROXY=http://www.emdebian.org/grip/
> SUITE=stable
> EOF

It's a typo in your setup command.

The file you need is packages.conf - there is more than one package to
a root filesystem, so it is package*S*, not package.

Also, to get around the issue of the working directory not being set,
emsandbox does accept the --machine-path option that overrides the
working directory set by debconf. (Forgot about that earlier.)

$ mkdir -p machine/balloon/grip
$ cat << EOF > machine/balloon/grip/packages.conf
SCRIPT=/usr/share/debootstrap/scripts/lenny
MIRROR=http://www.emdebian.org/grip/
PROXY=http://www.emdebian.org/grip/
SUITE=stable
EOF
$ sudo emsandbox -a i386 --machine-path ./machine -m balloon -v grip
create Using balloon:grip
  -> creating /home/test
Building armel chroot on amd64 to install armel packages.
Checking for a user writeable tree in /home/pbuilder/build
 -> running debootstrap
  -> cross detected, using foreign.
DEBOOTSTRAP_DIR=/usr/share/debootstrap/ debootstrap  --verbose
--foreign --arch armel stable /home/pbuilder/build
http://www.emdebian.org/grip/ /usr/share/debootstrap/scripts/lenny

So that's using the grip repo and the lenny debootstap suite script.

The website is correct on the filename issue:

For this machine:variant, the following amendments are made to the packages.conf file, e.g.
/path/machine/trunk/balloon/grip/packages.conf

Note that 'balloon' is just an example, use a name for your machine
that is more appropriate so that things are easier to remember.

I'm keeping the bug open for now because there are issues around the
manpage and extending the error checking that --machine-path does to
the behaviour without it.

-- 


Neil Williams
=============
http://www.data-freedom.org/
http://www.nosoftwarepatents.com/
http://www.linux.codehelp.co.uk/

Attachment: pgpSo1RVd9C3t.pgp
Description: PGP signature


Reply to: