6 Commits

Author SHA1 Message Date
Juan RP
a45a0d1448 Added a new dracut script to overwrite keymap/locale settings in NEWROOT. 2012-06-14 11:21:54 +02:00
Juan RP
7045698d74 gitignore: only ignore generated mklive.sh. 2012-06-14 11:21:39 +02:00
Juan RP
dce041a6fe Rename dracut files. 2012-06-14 10:57:54 +02:00
Juan RP
5f1c11eb55 README: s/vmklive/void-mklive/ 2012-06-12 17:09:49 +02:00
Juan RP
cf6dacddf2 README: tweaks. 2012-06-12 17:08:50 +02:00
Juan RP
42d58ca543 Makefile: post release bump. 2012-06-12 17:08:41 +02:00
6 changed files with 33 additions and 11 deletions

2
.gitignore vendored
View File

@@ -1 +1 @@
*.sh
void-mklive.sh

View File

@@ -1,4 +1,4 @@
VERSION = 0.9.5
VERSION = 0.9.6
SBINDIR ?= /usr/sbin
DRACUTMODDIR ?= /usr/lib/dracut/modules.d/01vmklive
@@ -9,10 +9,7 @@ install: all
install -d $(DESTDIR)$(SBINDIR)
install -m755 mklive.sh $(DESTDIR)$(SBINDIR)/void-mklive
install -d $(DESTDIR)$(DRACUTMODDIR)
install -m755 dracut/dracut-module.sh \
$(DESTDIR)$(DRACUTMODDIR)/module-setup.sh
install -m755 dracut/dracut-vmklive-adduser.sh \
$(DESTDIR)$(DRACUTMODDIR)/vmklive-adduser.sh
install -m755 dracut/*.sh $(DESTDIR)$(DRACUTMODDIR)
clean:
-rm -f mklive.sh

9
README
View File

@@ -4,20 +4,19 @@ This is a simple shell script to build a live image for the
Void linux distribution. The images contain the void-installer package
to be able to install Void linux to storage disks.
Usage: vmklive [options]
Usage: void-mklive [options]
Options:
-C file Path to configuration file (defaults to ~/.mklive.conf)
-c (gzip|bzip2|xz) Compression type for the squashfs/initramfs image.
-k version Kernel version to use.
-o outfile Output file name for the ISO image.
-r rootdir Rootfs directory.
-s splash Splash image file for isolinux.
-v volname ISO Volume name.
NOTE: If -k not specified it will use $(uname -r) by default.
NOTE: the first time it is executed a configuration file will be created at ~/mklive.conf.
NOTE: It's assumed that void-mklive is run in a Void Linux system.
* If -k not specified it will use $(uname -r) by default.
* The first time it is executed a config file will be created (~/mklive.conf).
* It's assumed that void-mklive is executed in a Void Linux system.
Take a look at the configuration file (~/mklive.conf) to tweak some
default parameters in the generated image.

View File

@@ -13,4 +13,5 @@ depends() {
install() {
inst chmod
inst_hook pre-pivot 01 "$moddir/vmklive-adduser.sh"
inst_hook pre-pivot 02 "$moddir/vmklive-conf.sh"
}

25
dracut/vmklive-conf.sh Normal file
View File

@@ -0,0 +1,25 @@
#!/bin/sh
# -*- mode: shell-script; indent-tabs-mode: nil; sh-basic-offset: 4; -*-
# ex: ts=8 sw=4 sts=4 et filetype=sh
KEYMAP=$(getarg vconsole.keymap)
FONT=$(getarg vconsole.font)
FONT_MAP=$(getarg vconsole.font.map)
FONT_UNIMAP=$(getarg vconsole.font.unimap)
LOCALE=$(getarg locale.LANG)
if [ -n "$KEYMAP" ]; then
sed -i -e "s|^KEYMAP=.*|KEYMAP=$KEYMAP|g" ${NEWROOT}/etc/vconsole.conf
fi
if [ -n "$FONT" ]; then
sed -i -e "s|^FONT=.*|FONT=$FONT|g" ${NEWROOT}/etc/vconsole.conf
fi
if [ -n "$FONT_MAP" ]; then
sed -i -e "s|^FONT_MAP=.*|FONT_MAP=$FONT_MAP|g" ${NEWROOT}/etc/vconsole.conf
fi
if [ -n "$FONT_UNIMAP" ]; then
sed -i -e "s|^FONT_UNIMAP=.*|FONT_UNIMAP=$FONT_UNIMAP|g" ${NEWROOT}/etc/vconsole.conf
fi
if [ -n "$LOCALE" ]; then
sed -i -e "s|^LANG=.*|LANG=$LOCALE|g" ${NEWROOT}/etc/locale.conf
fi