From 1a167e371aab30fa194bd49b46df70278d97781c Mon Sep 17 00:00:00 2001 From: Juan RP Date: Wed, 24 Sep 2014 08:22:49 +0200 Subject: dracut/adduser.sh: set live.user shell to /bin/bash if exists. --- dracut/adduser.sh | 1 + 1 file changed, 1 insertion(+) (limited to 'dracut/adduser.sh') diff --git a/dracut/adduser.sh b/dracut/adduser.sh index 8fbbc9a..6d0142c 100644 --- a/dracut/adduser.sh +++ b/dracut/adduser.sh @@ -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. -- cgit 1.4.1