Commit graph

65 commits

Author SHA1 Message Date
Jakub Jirutka
c50b9100a1 Fix incorrect usage of $@
"$@" works differently on ash and dash. `foo="$@"` assigns only the
first item (according to IFS) to the variable on dash.
2017-10-11 20:50:40 +02:00
Jakub Jirutka
fb0ad9b107 Fix error when cleanup is called before nbd_dev is set 2017-10-11 20:50:40 +02:00
Jakub Jirutka
5059118e8c Use "readlink -f" if realpath command is not available 2017-10-11 20:50:40 +02:00
Jakub Jirutka
b71a6e448b Add support for downloading apk-tools if not available on host 2017-10-11 20:50:40 +02:00
Jakub Jirutka
fa87e36f9c Run "extlinux --install" inside chroot, not on host 2017-10-11 20:50:40 +02:00
Jakub Jirutka
61790283f5 Install packages on host system only if it's Alpine 2017-10-11 20:50:40 +02:00
Jakub Jirutka
ac501b16fa Make attach_image() more robust 2017-10-11 20:50:40 +02:00
Jakub Jirutka
d9070c4379 Do not discard blocks on NBD image when creating FS
It's useless for NBD image and probably causes the following error:

    > Formatting image to ext4
    mke2fs 1.43.4 (31-Jan-2017)
    Discarding device blocks:    4096/1310720               failed - I/O error
2017-10-11 20:50:10 +02:00
Jakub Jirutka
3f25533136 Release version 0.1.0 2017-09-09 00:10:52 +02:00
Jakub Jirutka
b706b24fe5 Allow to redefine APK variable and add APK_OPTS 2017-09-08 23:57:20 +02:00
Jakub Jirutka
e5b6e1baa0 Readme: Add content 2017-08-30 00:54:42 +02:00
Jakub Jirutka
3a558beef6 Set up Travis CI to build example image 2017-08-30 00:53:42 +02:00
Jakub Jirutka
91ed2961c6 Add alpine-make-vm-image script 2017-08-30 00:36:39 +02:00
Jakub Jirutka
3f4031272f Prepare project 2017-08-29 20:01:51 +02:00
Jakub Jirutka
36ea253ea9 Initial commit 2017-08-29 20:01:41 +02:00