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

debootstrap and --allow-unauthenticated on Ubuntu 14.04 fails #5

Closed
bdellegrazie opened this issue Mar 24, 2015 · 0 comments · Fixed by #6
Closed

debootstrap and --allow-unauthenticated on Ubuntu 14.04 fails #5

bdellegrazie opened this issue Mar 24, 2015 · 0 comments · Fixed by #6

Comments

@bdellegrazie
Copy link

Hi,

When using Ubuntu 14.04 LTS as the host, debootstrap doesn't support the --allow-unauthenticated option (looks like that's available in later versions).

the create stage results in:
Exec[create_pbuilder_trusty]/returns: E: unrecognized or invalid option --allow-unauthenticated

this is a direct result of the DEBOOTSTRAPOPTS[3]="--allow-unauthenticated" at the end of the pbuilderrc.erb template.

Unfortunately there is no way to override either the option or the template due as its the last file in the configuration processing order (according to pbuilder documentation)

Can I suggest an improvement in the following way:
Change DEBOOTSTRAPOPTS[0..3] to be something like:
DEBOOTSTRAPOPTS=("${DEBOOTSTRAPOPTS[@]}" "--variant=buildd" "--arch=$ARCH")

This way --allow-unauthenticated can be supplied from /etc/pbuilderrc

Alternatively provide a mechanism for replacing the template.

I'm happy to produce a pull request for this - in fact, I may do this anyway.

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

Successfully merging a pull request may close this issue.

1 participant