dracut/adduser.sh: set live.user shell to /bin/bash if exists.
This commit is contained in:
parent
7d89972c57
commit
1a167e371a
|
@ -9,6 +9,7 @@ echo void-live > ${NEWROOT}/etc/hostname
|
||||||
USERNAME=$(getarg live.user)
|
USERNAME=$(getarg live.user)
|
||||||
USERSHELL=$(getarg live.shell)
|
USERSHELL=$(getarg live.shell)
|
||||||
[ -z "$USERNAME" ] && USERNAME=anon
|
[ -z "$USERNAME" ] && USERNAME=anon
|
||||||
|
[ -x $NEWROOT/bin/bash -a -z "$USERSHELL" ] && USERSHELL=/bin/bash
|
||||||
[ -z "$USERSHELL" ] && USERSHELL=/bin/sh
|
[ -z "$USERSHELL" ] && USERSHELL=/bin/sh
|
||||||
|
|
||||||
# Create /etc/default/live.conf to store USER.
|
# Create /etc/default/live.conf to store USER.
|
||||||
|
|
Loading…
Reference in New Issue