void-mklive/README.md

63 lines
2.3 KiB
Markdown
Raw Normal View History

# The Void Linux image/live/rootfs maker and installer
2013-08-22 15:35:31 +00:00
This repository contains utilities for Void Linux:
2014-04-23 09:30:05 +00:00
* installer (The Void Linux el-cheapo installer for x86)
* mklive (The Void Linux live image maker for x86)
2014-01-28 15:08:04 -01:00
2014-04-23 09:30:05 +00:00
* mkimage (The Void Linux image maker for ARM platforms)
2017-08-23 05:11:37 +00:00
* mkplatformfs (The Void Linux filesystem tool to produce a rootfs for a particular platform)
2014-04-23 09:30:05 +00:00
* mkrootfs (The Void Linux rootfs maker for ARM platforms)
2017-08-23 05:11:37 +00:00
* mknet (Script to generate netboot tarballs for Void)
## Dependencies
* Compression type for the initramfs image
* liblz4 (for lz4, xz) (default)
* xbps>=0.45
* qemu-user-static binaries (for mkrootfs)
* bash
## Usage
2014-04-23 09:30:05 +00:00
See the usage output:
2014-04-23 09:30:05 +00:00
$ ./mklive.sh -h
$ ./mkrootfs.sh -h
$ ./mkimage.sh -h
2014-06-25 16:10:09 +00:00
### Examples
2014-06-25 16:10:09 +00:00
Build a native live image keyboard set to 'fr':
2014-06-25 16:10:09 +00:00
2014-08-03 18:15:19 +00:00
# ./mklive.sh -k fr
2014-06-25 16:10:09 +00:00
2015-04-15 05:33:04 +00:00
Build an i686 (on x86\_64) live image with some additional packages:
2014-06-25 16:10:09 +00:00
2015-04-15 05:33:04 +00:00
# ./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
2014-06-25 16:10:09 +00:00
See the usage output for more information :-)
## Kernel Command-line Parameters
`void-mklive`-based live images support several kernel command-line arguments
that can change the behavior of the live system:
- `live.autologin` will skip the initial login screen on `tty1`.
- `live.user` will change the username of the non-root user from the default `anon`. The password remains `voidlinux`.
- `live.shell` sets the default shell for the non-root user in the live environment.
- `live.screenreader` enables the console screenreader `espeakup` in the live environment.
- `console` can be set to `ttyS0`, `hvc0`, or `hvsi0` to enable `agetty` on that serial console.
- `locale.LANG` will set the `LANG` environment variable. Defaults to `en_US.UTF-8`.
- `vconsole.keymap` will set the console keymap. Defaults to `us`.
### Examples:
- `live.autologin live.user=foo live.shell=/bin/bash` would create the user `foo` with the default shell `/bin/bash` on boot, and log them in automatically on `tty1`
- `live.shell=/bin/bash` would set the default shell for the `anon` user to `/bin/bash`
- `console=ttyS0 vconsole.keymap=cf` would enable `ttyS0` and set the keymap in the console to `cf`
- `locale.LANG=fr_CA.UTF-8` would set the live system's language to `fr_CA.UTF-8`