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

Debian Template: rely on existing tool for base image creation #1055

Open
adrelanos opened this Issue Jul 7, 2015 · 5 comments

Comments

Projects
None yet
7 participants
@adrelanos
Member

adrelanos commented Jul 7, 2015

Creation of Debian base (raw) images is non-trivial. That's usually done by people dedicating maintenance to separate projects. Such as grml-debootstrap [bash] installable from official Debian repositories or image-bootstrap [python] [it's developer is more active and really cares about doing-things-right(tm)] [hopefully one day in Debian]. [image-bootstrap might even one day get Fedora base image creation support. (https://github.com/hartwork/image-bootstrap/issues/14)]

You are basically re-inventing the wheel here. Going through the learning process that for example grml-deboostrap went through.

I am wondering if we should use such a dedicated tool for the Debian base image creation. It would most likely solve issues such as #1033. And if not, we could dumb down issues to pure Debian issues and consult developers such as @mika, @hartwork @grml community, Debian community, etc. that are experienced with Debian base image creation.

What me made this argument:

If these tools don't work for us yet, we should reports bugs/feature requests and contribute patches upstream. I made good experiences with these upstreams. If all cords break, we'll still be better off using a temporary fork until patches are merged upstream.

@nrgaway

This comment has been minimized.

Show comment
Hide comment
@nrgaway

nrgaway Jul 7, 2015

Sounds awesome! I remember look at at that package long time ago when playing around with encrypting the Whonix partitions.

The basic Debian install is pretty much standard; install base, a few required packages, and some configurations like keyboard and locale. Then add on Qubes.

Will this be able to handle Ubuntu install as well?

nrgaway commented Jul 7, 2015

Sounds awesome! I remember look at at that package long time ago when playing around with encrypting the Whonix partitions.

The basic Debian install is pretty much standard; install base, a few required packages, and some configurations like keyboard and locale. Then add on Qubes.

Will this be able to handle Ubuntu install as well?

@hartwork

This comment has been minimized.

Show comment
Hide comment
@hartwork

hartwork Jul 7, 2015

Hi! image-bootstrap does support Ubuntu, yes. This is what I run to install (a rather minimal Ubuntu) trusty to a (>=2GB) loop device:

sudo http_proxy=http://127.0.0.1:8123/ image-bootstrap \
  --hostname uv --password .... --verbose --debug \
  ubuntu --release trusty SOME_LOOP_DEVICE

hartwork commented Jul 7, 2015

Hi! image-bootstrap does support Ubuntu, yes. This is what I run to install (a rather minimal Ubuntu) trusty to a (>=2GB) loop device:

sudo http_proxy=http://127.0.0.1:8123/ image-bootstrap \
  --hostname uv --password .... --verbose --debug \
  ubuntu --release trusty SOME_LOOP_DEVICE
@mika

This comment has been minimized.

Show comment
Hide comment
@mika

mika Jul 8, 2015

Hi, with my grml-debootstrap hat on: if there should be something specific missing in grml-debootstrap please let me/us know.

mika commented Jul 8, 2015

Hi, with my grml-debootstrap hat on: if there should be something specific missing in grml-debootstrap please let me/us know.

@nrgaway nrgaway self-assigned this Jul 14, 2015

@nrgaway nrgaway added the enhancement label Jul 14, 2015

@adrelanos adrelanos changed the title from rely on existing tool for Debian base image creation to Debian Template: rely on existing tool for base image creation Jul 14, 2015

@marmarek

This comment has been minimized.

Show comment
Hide comment
@marmarek

marmarek Jul 18, 2015

Member

One possible issue with grml-debootstrap is that we currently use Fedora as distribution used to build Qubes templates. There is debootrap package available, but not grml-debootstrap. So builder-debian plugin needs to handle it somehow.
But generally reusing existing code is a good idea :)

Member

marmarek commented Jul 18, 2015

One possible issue with grml-debootstrap is that we currently use Fedora as distribution used to build Qubes templates. There is debootrap package available, but not grml-debootstrap. So builder-debian plugin needs to handle it somehow.
But generally reusing existing code is a good idea :)

@adrelanos

This comment has been minimized.

Show comment
Hide comment
@adrelanos

adrelanos Jul 19, 2015

Member

Depends when this gets implemented and when Fedora gets thrown out. (The plan is to throw out Fedora anyhow. Source: #1054 (comment))
The earlier it's thrown out, the better. You also would not have to figure out how to upgrade dom0 from Fedora 20 to Fedora 21 then.
No idea how much work throwing out Fedora is, though. Just wanted to mention this.

Member

adrelanos commented Jul 19, 2015

Depends when this gets implemented and when Fedora gets thrown out. (The plan is to throw out Fedora anyhow. Source: #1054 (comment))
The earlier it's thrown out, the better. You also would not have to figure out how to upgrade dom0 from Fedora 20 to Fedora 21 then.
No idea how much work throwing out Fedora is, though. Just wanted to mention this.

@marmarek marmarek added the C: Debian label Aug 6, 2015

@marmarek marmarek added this to the Far in the future milestone Oct 8, 2015

@marmarek marmarek added the help wanted label Oct 8, 2015

@rootkovska rootkovska removed the C: label Jun 30, 2016

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment