customized alpine images
Go to file
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
example Set up Travis CI to build example image 2017-08-30 00:53:42 +02:00
.editorconfig Prepare project 2017-08-29 20:01:51 +02:00
.travis.yml Set up Travis CI to build example image 2017-08-30 00:53:42 +02:00
alpine-make-vm-image Do not discard blocks on NBD image when creating FS 2017-10-11 20:50:10 +02:00
LICENSE Prepare project 2017-08-29 20:01:51 +02:00
README.adoc Release version 0.1.0 2017-09-09 00:10:52 +02:00

= Make Alpine Linux VM Image
:script-name: alpine-make-vm-image
:script-sha1: 0d4df35c02186d5d739a3312a2cc204fe712e10f
:gh-name: jirutka/{script-name}
:version: 0.1.0

ifdef::env-github[]
image:https://travis-ci.org/{gh-name}.svg?branch=master["Build Status", link="https://travis-ci.org/{gh-name}"]
endif::env-github[]

This project provides script for making customizable Alpine Linux disk image for virtual machines.


== Requirements

* Alpine Linux (you can use https://github.com/alpinelinux/alpine-chroot-install[alpine-chroot-install] to easily install Alpine on any Linux system)
* POSIX-sh compatible shell (e.g. Busybox ash, dash, Bash, ZSH)
* qemu-img, qemu-nbd, and syslinux (automatically installed by the script)
* e2fsprogs (for ext4), btrfs-progs (for Btrfs), or xfsprogs (for XFS) (automatically installed by the script)


== Usage

Read documentation in link:{script-name}[{script-name}].
See link:.travis.yml[.travis.yml] for Travis example.

You can copy link:{script-name}[{script-name}] into your repository or download it on demand, e.g.:

[source, sh, subs="+attributes"]
wget https://raw.githubusercontent.com/{gh-name}/v{version}/{script-name} \
    && echo '{script-sha1}  {script-name}' | sha1sum -c \
    || exit 1


== License

This project is licensed under http://opensource.org/licenses/MIT/[MIT License].
For the full text of the license, see the link:LICENSE[LICENSE] file.