From 152a69f23cabb0cf54759b45d7342fa34aadb7a1 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Mon, 6 Feb 2012 11:06:57 +0100 Subject: [PATCH] xbps-casper: support for starting the void-installer rather than autologin. --- srcpkgs/xbps-casper/files/bin/casper-login | 7 +++++-- srcpkgs/xbps-casper/files/casper.conf | 5 ++++- srcpkgs/xbps-casper/template | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/srcpkgs/xbps-casper/files/bin/casper-login b/srcpkgs/xbps-casper/files/bin/casper-login index e6a41732cb9..a412e8df87b 100755 --- a/srcpkgs/xbps-casper/files/bin/casper-login +++ b/srcpkgs/xbps-casper/files/bin/casper-login @@ -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 diff --git a/srcpkgs/xbps-casper/files/casper.conf b/srcpkgs/xbps-casper/files/casper.conf index 55a6a7eb808..2d7ee32d2c3 100644 --- a/srcpkgs/xbps-casper/files/casper.conf +++ b/srcpkgs/xbps-casper/files/casper.conf @@ -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 diff --git a/srcpkgs/xbps-casper/template b/srcpkgs/xbps-casper/template index f4162325e9d..3e216ca7201 100644 --- a/srcpkgs/xbps-casper/template +++ b/srcpkgs/xbps-casper/template @@ -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"