diff options
author | Lennart Poettering <lennart@poettering.net> | 2015-01-21 13:43:55 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2015-01-21 13:44:29 +0100 |
commit | 8af3cf74df03f7528f9e2605ec7896a5daf0f711 (patch) | |
tree | ac5a1c8c4d1997a45b5967a796373bb877bd6a54 /src/import/import.c | |
parent | ccf23ad5faf228d450d263d7291156a948b61af2 (diff) |
import: support downloading bzip2-encoded images
This way, we can import CoreOS images unmodified.
Diffstat (limited to 'src/import/import.c')
-rw-r--r-- | src/import/import.c | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/src/import/import.c b/src/import/import.c index 0c215c6484..b3ebb35357 100644 --- a/src/import/import.c +++ b/src/import/import.c @@ -52,9 +52,11 @@ static int strip_tar_suffixes(const char *name, char **ret) { e = endswith(name, ".tar"); if (!e) + e = endswith(name, ".tar.xz"); + if (!e) e = endswith(name, ".tar.gz"); if (!e) - e = endswith(name, ".tar.xz"); + e = endswith(name, ".tar.bz2"); if (!e) e = endswith(name, ".tgz"); if (!e) @@ -162,6 +164,7 @@ static int strip_raw_suffixes(const char *p, char **ret) { static const char suffixes[] = ".xz\0" ".gz\0" + ".bz2\0" ".raw\0" ".qcow2\0" ".img\0" |