Thomas Hipp
5353fb62ca
*: Improve comments and error handling
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 16:43:57 +01:00
Thomas Hipp
dd9e9cbd7e
main: Build images
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 10:15:19 +01:00
Thomas Hipp
c748c3849a
generators: Add generators
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 10:15:19 +01:00
Thomas Hipp
6b6a27a341
image: Create LXC images
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 10:15:19 +01:00
Thomas Hipp
30c6fc12e8
image: Create LXD images
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 10:15:19 +01:00
Thomas Hipp
487633143d
shared: Add Pack function
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-22 10:15:18 +01:00
Thomas Hipp
f6958ee378
Merge pull request #18 from stgraber/master
...
chroot: Fix mount logic and symlink handling
2018-02-22 08:56:08 +01:00
Stéphane Graber
6db9481221
Merge pull request #17 from monstermunchkin/issues/12
...
*: Remove init() code
2018-02-21 13:32:54 -05:00
Stéphane Graber
3ed3b15cf7
chroot: Fix mount logic and symlink handling
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-21 13:31:48 -05:00
Thomas Hipp
6db895de08
*: Remove init() code
...
Resolves #12 .
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-21 19:28:28 +01:00
Thomas Hipp
11ad0b830b
Merge pull request #11 from stgraber/master
...
Various fixes and tweaks
2018-02-20 16:50:50 +01:00
Stéphane Graber
44aa5d1482
chroot: Two step mounts to handle symlink targets
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 04:12:11 -05:00
Stéphane Graber
ac30318b95
chroot: Cleanup mount options
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 03:54:35 -05:00
Stéphane Graber
4e2b66ab8b
debootstrap: Drop trailing whiteline
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 03:40:11 -05:00
Stéphane Graber
4b370aef30
Make code style more consistent with LXD
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 03:00:19 -05:00
Stéphane Graber
558f700301
tests: Run deadcode and vet
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 03:00:19 -05:00
Stéphane Graber
b1a1ff8157
Fix go vet warning
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 03:00:16 -05:00
Stéphane Graber
12e47a72a6
Properly identify errors
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 02:18:38 -05:00
Stéphane Graber
2538b49e07
Move check for root to Go
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 02:14:23 -05:00
Stéphane Graber
ce823c03c1
Don't depend on external distrobuilder branch
...
Signed-off-by: Stéphane Graber <stgraber@ubuntu.com>
2018-02-20 02:08:10 -05:00
Stéphane Graber
d0af63649b
Merge pull request #9 from monstermunchkin/validation
...
Add source verification
2018-02-16 17:31:19 -05:00
Thomas Hipp
ed8a6d2643
update README.md
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-16 17:17:25 +01:00
Thomas Hipp
4b91f650a4
*: add keys and keyserver to source
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-16 17:17:25 +01:00
Stéphane Graber
54c24d178e
Merge pull request #10 from monstermunchkin/apt-flags
...
managers: update apt flags
2018-02-15 17:30:52 -05:00
Stéphane Graber
70eecb8265
Merge pull request #5 from monstermunchkin/fix-chroot
...
distrobuilder: fix and restructure chroot code
2018-02-15 17:29:57 -05:00
Thomas Hipp
a1ba76774f
managers: update apt flags
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-15 19:05:22 +01:00
Thomas Hipp
b81c696d6b
distrobuilder: bind mount /dev
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-15 18:36:17 +01:00
Thomas Hipp
a9d5584932
sources: Verify CentOS
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-15 18:25:08 +01:00
Thomas Hipp
85fbc517cc
sources: Verify Arch Linux
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-15 18:25:08 +01:00
Thomas Hipp
3b72f2ab97
sources: Verify Alpine Linux
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-15 18:25:07 +01:00
Thomas Hipp
328bb89569
sources: Verify Ubuntu
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-15 18:25:07 +01:00
Thomas Hipp
0460f8867c
shared: Add file verification
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-15 18:25:07 +01:00
Christian Brauner
b16fb338d8
Merge pull request #8 from monstermunchkin/master
...
distrobuilder: fix missing arch
2018-02-14 18:36:48 +01:00
Thomas Hipp
6e5708cc77
distrobuilder: fix missing arch
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-14 18:15:29 +01:00
Christian Brauner
c97d7cb555
Merge pull request #7 from monstermunchkin/master
...
shared: do not require release field
2018-02-14 10:51:31 +01:00
Thomas Hipp
b64123b426
shared: do not require release field
...
Resolves #4 .
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-14 10:36:03 +01:00
Thomas Hipp
0e9e3266be
distrobuilder: remove unmountFilesystems function
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-13 17:54:47 +01:00
Stéphane Graber
581c286fbf
Merge pull request #3 from monstermunchkin/master
...
Handle architecture names properly
2018-02-13 11:30:23 -05:00
Thomas Hipp
9fb9fadda0
shared: remove ubuntu architecture map
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-13 09:28:23 +01:00
Stéphane Graber
12054d5595
Merge pull request #6 from monstermunchkin/prefix-pacman
...
managers: add 'pacman' prefix to functions
2018-02-12 16:22:33 -05:00
Thomas Hipp
a84b4a65aa
managers: add 'pacman' prefix to functions
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-12 16:06:18 +01:00
Thomas Hipp
faecdadc73
distrobuilder: add missing slashes to mounts
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-12 15:39:56 +01:00
Thomas Hipp
f89cebdc88
distrobuilder: fix and restructure chroot code
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-12 12:02:17 +01:00
Thomas Hipp
6da9f1dd24
*: Only map required architectures
...
If neither mappings.architecture_map nor mappings.architectures are
provided, we use the provided image.arch.
Also, if there's no mapping for a valid arch, it will return the arch.
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-12 10:23:26 +01:00
Thomas Hipp
41892bdefb
*: use mappings to determine architecture
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-10 16:10:27 +01:00
Thomas Hipp
cb872c3637
sources: fix debootstrap condition
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-09 18:50:09 +01:00
Thomas Hipp
2424094b17
*: get correct arch
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-09 18:50:09 +01:00
Stéphane Graber
7c5b1e0b91
Merge pull request #2 from monstermunchkin/master
...
Definition updates
2018-02-09 11:10:35 -05:00
Thomas Hipp
efeef86fbc
Add travis.yml
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-09 15:16:41 +01:00
Thomas Hipp
442325801a
test: Add Definition tests
...
Signed-off-by: Thomas Hipp <thomas.hipp@canonical.com>
2018-02-09 15:16:41 +01:00