about summary refs log tree commit diff
path: root/dracut
diff options
context:
space:
mode:
authorJuan RP <xtraeme@gmail.com>2014-09-24 08:22:49 +0200
committerJuan RP <xtraeme@gmail.com>2014-09-24 08:22:49 +0200
commit1a167e371aab30fa194bd49b46df70278d97781c (patch)
tree614ef49176bd1d64331bb040ca0445dd44e7e648 /dracut
parent7d89972c5756677c62d02d5f4030a97029188c0e (diff)
downloadhrmpf-1a167e371aab30fa194bd49b46df70278d97781c.tar.gz
hrmpf-1a167e371aab30fa194bd49b46df70278d97781c.tar.xz
hrmpf-1a167e371aab30fa194bd49b46df70278d97781c.zip
dracut/adduser.sh: set live.user shell to /bin/bash if exists.
Diffstat (limited to 'dracut')
-rw-r--r--dracut/adduser.sh1
1 files changed, 1 insertions, 0 deletions
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.