Commit Graph

376 Commits

Author SHA1 Message Date
Stéphane Graber
16b07d36ce
Bump Go to 1.11
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-10-03 12:10:29 -04:00
Simos Xenitellis
1de48a34ea doc: Added usage instructions in Readme.md
Signed-off-by: Simos Xenitellis <simos.lists@googlemail.com>
2018-10-03 15:32:40 +03:00
Stéphane Graber
7274ea2140
Fix bad root permissions in Alpine
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-07-07 11:22:06 -04:00
Thomas Hipp
9f4fc08d4b
Merge pull request #109 from monstermunchkin/fix/examples
examples: arch -> architecture
2018-07-06 13:06:48 +02:00
Christian Brauner
8c0a25cf1f
Merge pull request #108 from monstermunchkin/issues/102
centos: Fix checksum file name
2018-07-06 12:35:42 +02:00
Thomas Hipp
b1821dc52f
examples: arch -> architecture
Fix architecture key in examples.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-07-06 12:20:25 +02:00
Thomas Hipp
9d48f5d607
centos: Fix checksum file name
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-07-06 12:12:35 +02:00
Stéphane Graber
2021dc995b
Merge pull request #106 from monstermunchkin/fix/use-testify
tests: Use testify
2018-07-03 12:15:30 -04:00
Thomas Hipp
cdac765d15
tests: Use testify
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-07-03 11:46:54 +02:00
Stéphane Graber
375d44646d
Merge pull request #105 from monstermunchkin/fix/various
definition: Add Source.SkipVerification
2018-07-03 01:22:30 -04:00
Thomas Hipp
fb39a671f7
definition: Add Source.SkipVerification
This allows for the source verification to be skipped if needed.

Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-07-02 17:37:31 +02:00
Thomas Hipp
91598f1fa2
definition: Fix SetValue function
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-07-02 16:50:33 +02:00
Stéphane Graber
f5b0b800f7
Merge pull request #104 from monstermunchkin/issues/102
doc,sources: Fix CentOS 6
2018-06-29 22:38:43 -04:00
Thomas Hipp
e5acd73f81
doc,sources: Fix CentOS 6
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-06-29 18:32:30 +02:00
Christian Brauner
8b02e9aa01
Merge pull request #103 from monstermunchkin/issues/102
Fix CentOS 7
2018-06-29 15:09:03 +02:00
Thomas Hipp
8348c1b343
doc: Fix CentOS 7 post-unpack
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-06-29 14:48:35 +02:00
Thomas Hipp
3bbb4ebf36
sources: Mount CentOS iso read-only
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-06-29 09:49:55 +02:00
Stéphane Graber
530409ba08
Merge pull request #101 from monstermunchkin/master
generators: Append empty line to template files
2018-06-28 12:32:38 -04:00
Thomas Hipp
209ebeec86
generators: Append empty line to template files
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-06-28 18:29:10 +02:00
Christian Brauner
334b658b99
Merge pull request #100 from stgraber/master
Add support for Alpine edge
2018-06-28 06:57:08 +02:00
Stéphane Graber
2e3d2075ed
Add support for Alpine edge
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-06-27 19:25:51 -04:00
Stéphane Graber
d2a6c71626
Merge pull request #99 from marcosps/hide_help_missing_deboostrap
main.go: Do not show help message if downloader.Run fails
2018-06-09 18:17:37 -04:00
Marcos Paulo de Souza
8b59f5f342 main.go: Silence usage message when PreRunBuild fails
When we reach PreRunBuild, and something does wrong, like debootstrap
not being installed while trying to download a debian rootfs, the usage
message is shown, so disabling the usage message with SilenceUsage
attribute seems the right thing to do here.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2018-06-08 20:05:22 -03:00
Stéphane Graber
ee5a0d8b06
Merge pull request #98 from SuprDewd/archlinux-sysv-init
Add systemd-sysvcompat as archlinux dependency
2018-06-06 13:35:35 -04:00
Bjarki Ágúst Guðmundsson
642b5b9c59 Add systemd-sysvcompat as archlinux dependency
Provides /sbin/init which was previously missing

Signed-off-by: Bjarki Ágúst Guðmundsson <bjarki@syndis.is>
2018-06-06 11:40:36 +00:00
Thomas Hipp
a15b067886
Merge pull request #95 from stgraber/master
Split source.Suite and source.SameAs
2018-05-22 16:38:18 +02:00
Stéphane Graber
ea0135df5a
Split source.Suite and source.SameAs
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-05-22 10:29:06 -04:00
Christian Brauner
a99312edee
Merge pull request #97 from monstermunchkin/fix/gpg-tests
tests: Fix flaky GPG tests
2018-05-22 11:45:03 +02:00
Thomas Hipp
31d4cc34c7
tests: Fix flaky GPG tests
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-05-22 08:47:16 +02:00
Thomas Hipp
d41b04c927
Merge pull request #94 from mjrider/add-dump-template-generator
Template generator to add templates to lxd image
2018-05-22 08:42:27 +02:00
Robbert Müller
251f2bc532
Revert "Added example for cloud-init with debian"
The example is in debian-cloud-init

This reverts commit 7267cd8a4e.

Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-19 14:05:09 +02:00
Robbert Müller
0e9f2c29f7
Fixed default handling for when
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-19 14:01:44 +02:00
Robbert Müller
aa2a36b8de
Renamed DefinitionTemplateSettings to DefinitionFileTemplate
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-19 13:39:37 +02:00
Robbert Müller
cdd6c0ad68
Fixed comment
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-19 13:38:38 +02:00
Robbert Müller
77735dbe97
Reorder imports
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-19 13:37:59 +02:00
Robbert Müller
7267cd8a4e
Added example for cloud-init with debian
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-16 19:06:58 +02:00
Robbert Müller
269cf6e086
Added basic testcase
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-15 21:17:08 +02:00
Robbert Müller
3d740e81a7
rename settings to template
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-15 21:17:07 +02:00
Robbert Müller
b366c2f18a
Rename dump-template to template
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-15 21:17:06 +02:00
Robbert Müller
00b7960175
Added properties and when for template settings
Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-15 21:17:05 +02:00
Robbert Müller
5caea3a384
add dump-template generator to add templates to the image
This generator tries to follow to dump generator but for templates.

Changes:
- added name field `files: []` for the name of the template.
  .tpl is appended automaticly
- added dump-template to the generator code/definition

Signed-off-by: Robbert Müller <spam.me@grols.ch>
2018-05-15 21:17:04 +02:00
Stéphane Graber
a23731c1b8
Merge pull request #93 from monstermunchkin/master
Add Linux Mint example
2018-05-09 15:50:48 -04:00
Thomas Hipp
3b512eea39
doc: Add example for Linux Mint
Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
2018-05-09 14:08:02 +02:00
Thomas Hipp
5ad5059cbc
debootstrap: Add option to ignore image.release
Signed-off-by: Thomas Hipp <thomashipp@gmail.com>
2018-05-09 12:29:44 +02:00
Stéphane Graber
406fd5fe7d
Fix unpriv LXC config
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-04-28 15:28:39 -04:00
Stéphane Graber
36540bbe7d
Prefix all paths in excludes with ./
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-04-27 15:46:47 -04:00
Christian Brauner
4e1a0fb31b
Merge pull request #90 from marcosps/root_check
main.go: Check for root user as the first thing in main
2018-04-10 10:27:00 +02:00
Marcos Paulo de Souza
76f0be5e0c main.go: Check flagCacheDir inside PersistentPreRun
Without this change, the user will see erros like

distrobuilder help
Failed to create cache directory: mkdir /var/cache/distrobuilder.685166231: permission denied

Because the cache dir is created without checking for root user. By
moving the check after the uid validation, the problem is gone.

Signed-off-by: Marcos Paulo de Souza <marcos.souza.org@gmail.com>
2018-04-09 21:17:21 -03:00
Christian Brauner
70f3864502
Merge pull request #89 from bobsaintcool/fix/readme_link_typo
<fix/typo: Fix a typo a code documentation>
2018-04-07 15:30:24 +02:00
Quentin Bourgeois
79c9c38d1f <fix/typo: Fix a typo a code documentation>
Link to Ubuntu YAML example was suffixed by an '.md' which does not
reflect content of the examples directory.

Signed-off-by: Quentin Bourgeois <quentin@bourgeois.eu>
2018-04-07 13:13:46 +00:00