Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

init rootfs (debootstrap) not working in raspbian script #1

Open
b-s101 opened this issue May 8, 2013 · 6 comments
Open

init rootfs (debootstrap) not working in raspbian script #1

b-s101 opened this issue May 8, 2013 · 6 comments

Comments

@b-s101
Copy link

b-s101 commented May 8, 2013

debootstrap --foreign --arch armhf ${deb_release} ${rootfs} ${deb_local_mirror} does not work in Raspbian build script. Changing deb_mirror to an official Debian mirror while leaving the rest of the script untouched works.

Maybe there are some packages missing in the Raspbian repository which are necessary for creating the root filesystem.

@andrius
Copy link
Owner

andrius commented May 8, 2013

You need apt-cacher-ng in order to get it working:
deb_mirror="http://archive.raspbian.org/raspbian"
deb_local_mirror="http://localhost:3142/archive.raspbian.org/raspbian"

I will comment that string in script, leaving instructions. Anyway, if you are planning to burn few images and play with raspbian cross-compilation, I suggest to setup apt-cacher-ng and use untouched deb_local_mirror

@b-s101
Copy link
Author

b-s101 commented May 8, 2013

That might do the trick. On the other hand I got it working by modifying the the first call of debootstrap to debootstrap --foreign --no-check-gpg --include=ca-certificates --arch=armhf ${deb_release} ${rootfs} ${deb_local_mirror}

edit:
--no-check-gpg must be added. Otherwise debootstrap will complain about an unknown key (E: Release signed by unknown key (key id 9165938D90FDDD2E))

@luked99
Copy link

luked99 commented Nov 27, 2014

You can just download the Raspbian release key, import it into your own keyring, and then tell debootstrap to use that.

i.e.

 $ wget https://archive.raspbian.org/raspbian.public.key
 $ gpg --import raspbian.public.key
 $ debootstrap --keyring /root/.gnupg/pubring.gpg ....

@andrius
Copy link
Owner

andrius commented Nov 28, 2014

Thanks, I am going to release updated and better version soon :)

@luked99
Copy link

luked99 commented Nov 28, 2014

Cool - I'm still struggling to get past the bit where it says that it can't
find "mount", which I think is something to do with binformats.

On 28 November 2014 at 15:41, Andrius Kairiukstis notifications@github.com
wrote:

Thanks, I am going to release updated and better version soon :)


Reply to this email directly or view it on GitHub
#1 (comment)
.

@luked99
Copy link

luked99 commented Nov 29, 2014

Or in fact you can probably just use this once you've downloaded the key:
$ apt-key add raspbian.public.key

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants