Explorar o código

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

Juan RP %!s(int64=10) %!d(string=hai) anos
pai
achega
1a167e371a
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      dracut/adduser.sh

+ 1 - 0
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.