xbps-casper: support for starting the void-installer rather than autologin.

This commit is contained in:
Juan RP 2012-02-06 11:06:57 +01:00
parent 9cfb7aa680
commit 152a69f23c
3 changed files with 10 additions and 4 deletions

View file

@ -2,5 +2,8 @@
USERNAME=root
[ -f /etc/casper.conf ] && . /etc/casper.conf
exec /bin/login -f $USERNAME
if [ -n "$AUTOINSTALLER" ]; then
exec /usr/sbin/void-installer
else
exec /bin/login -f $USERNAME
fi

View file

@ -1,8 +1,11 @@
# This file should go in /etc/casper.conf
# Supported variables are:
# USERNAME, USERFULLNAME, HOST, BUILD_SYSTEM
# USERNAME, USERFULLNAME, HOST, BUILD_SYSTEM, AUTOINSTALLER
export USERNAME="anon"
export USERFULLNAME="Anonymous live session user"
export HOST="xbps-live"
export BUILD_SYSTEM="XBPS"
# If enabled the Void Linux installer will be executed by getty.
# Comment it out to disable and enable user autologin.
export AUTOINSTALLER=1

View file

@ -1,6 +1,6 @@
# Template file for 'xbps-casper'
pkgname=xbps-casper
_localver=0.24 # XBPS package version
_localver=0.25 # XBPS package version
_distver=1.236 # This should match the upstream (Ubuntu) version
version=${_localver}.${_distver}
short_desc="Run a live preinstalled system from read-only media"