c97a67c04f
This commit adds a packer configuration to build an AWS AMI. The AMI works in that it is a bootable void image that if it could be imported to AWS it would be bootable and would work. Unfortunately, AWS is doing really naive string parsing on files in /boot rather than checking that the contents are actually what they claim to be so the import task fails. NOTICE: AWS is the only cloud that this has been observed happening on. We can run as a vendor supported distro in GCP and in Azure clouds, and so if you need Void on an enterprise cloud those are the providers to look at. If you're interested in a hobbyist cloud, Void runs critical infrastructure in DigitalOcean and it is a fully supported environment. We could probably masquerade the kernel as something that would pass the string parsing, because it appears that this parsing layer exists only in the vm import service and not actually in any of the functional parts of EC2, but that would require using a different mechanism to install Void, and the ROI on supporting a single cloud in this way just isn't there. This import mechanism also appears to only work on amd64 architectures, so it can't even support the newer graviton instance types. |
||
---|---|---|
data | ||
dracut | ||
grub | ||
hooks | ||
isolinux | ||
keys | ||
packer | ||
pxelinux.cfg | ||
.dockerignore | ||
.gitignore | ||
COPYING | ||
Dockerfile | ||
Makefile | ||
README.md | ||
build-x86-images.sh.in | ||
installer.sh.in | ||
lib.sh.in | ||
mkimage.sh.in | ||
mklive.sh.in | ||
mknet.sh.in | ||
mkplatformfs.sh.in | ||
mkrootfs.sh.in | ||
release.sh.in |
README.md
The Void Linux image/live/rootfs maker and installer
This repository contains utilities for Void Linux:
-
installer (The Void Linux el-cheapo installer for x86)
-
mklive (The Void Linux live image maker for x86)
-
mkimage (The Void Linux image maker for ARM platforms)
-
mkplatformfs (The Void Linux filesystem tool to produce a rootfs for a particular platform)
-
mkrootfs (The Void Linux rootfs maker for ARM platforms)
-
mknet (Script to generate netboot tarballs for Void)
Build Dependencies
- make
Dependencies
- Compression type for the initramfs image
- liblz4 (for lz4, xz) (default)
- xbps>=0.45
- qemu-user-static binaries (for mkrootfs)
Usage
Type
$ make
and then see the usage output:
$ ./mklive.sh -h
$ ./mkrootfs.sh -h
$ ./mkimage.sh -h
Examples
Build a native live image keyboard set to 'fr':
# ./mklive.sh -k fr
Build an i686 (on x86_64) live image with some additional packages:
# ./mklive.sh -a i686 -p 'vim rtorrent'
Build an x86_64 musl live image with packages stored in a local repository:
# ./mklive.sh -a x86_64-musl -r /path/to/host/binpkgs
See the usage output for more information :-)