dracut/adduser.sh: set live.user shell to /bin/bash if exists.

This commit is contained in:
Juan RP 2014-09-24 08:22:49 +02:00
parent 7d89972c57
commit 1a167e371a
1 changed files with 1 additions and 0 deletions

View File

@ -9,6 +9,7 @@ echo void-live > ${NEWROOT}/etc/hostname
USERNAME=$(getarg live.user)
USERSHELL=$(getarg live.shell)
[ -z "$USERNAME" ] && USERNAME=anon
[ -x $NEWROOT/bin/bash -a -z "$USERSHELL" ] && USERSHELL=/bin/bash
[ -z "$USERSHELL" ] && USERSHELL=/bin/sh
# Create /etc/default/live.conf to store USER.