xbps-casper: support for starting the void-installer rather than autologin.
This commit is contained in:
parent
9cfb7aa680
commit
152a69f23c
3 changed files with 10 additions and 4 deletions
|
@ -2,5 +2,8 @@
|
||||||
|
|
||||||
USERNAME=root
|
USERNAME=root
|
||||||
[ -f /etc/casper.conf ] && . /etc/casper.conf
|
[ -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
|
||||||
|
|
|
@ -1,8 +1,11 @@
|
||||||
# This file should go in /etc/casper.conf
|
# This file should go in /etc/casper.conf
|
||||||
# Supported variables are:
|
# Supported variables are:
|
||||||
# USERNAME, USERFULLNAME, HOST, BUILD_SYSTEM
|
# USERNAME, USERFULLNAME, HOST, BUILD_SYSTEM, AUTOINSTALLER
|
||||||
|
|
||||||
export USERNAME="anon"
|
export USERNAME="anon"
|
||||||
export USERFULLNAME="Anonymous live session user"
|
export USERFULLNAME="Anonymous live session user"
|
||||||
export HOST="xbps-live"
|
export HOST="xbps-live"
|
||||||
export BUILD_SYSTEM="XBPS"
|
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
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
# Template file for 'xbps-casper'
|
# Template file for 'xbps-casper'
|
||||||
pkgname=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
|
_distver=1.236 # This should match the upstream (Ubuntu) version
|
||||||
version=${_localver}.${_distver}
|
version=${_localver}.${_distver}
|
||||||
short_desc="Run a live preinstalled system from read-only media"
|
short_desc="Run a live preinstalled system from read-only media"
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue