mirror of
https://github.com/nchevsky/systemrescue-zfs.git
synced 2026-02-06 15:54:13 +01:00
Merge branch 'rootshell' into 'master'
Add rootshell boot option Closes #77 See merge request fdupoux/sysresccd-src!8
This commit is contained in:
commit
143b06ed7d
|
|
@ -12,6 +12,12 @@ do
|
|||
SETKMAP=$(echo "${curopt}" | cut -f2 -d=)
|
||||
localectl set-keymap ${SETKMAP}
|
||||
;;
|
||||
# Configure root login shell if requested in the boot command line
|
||||
rootshell\=*)
|
||||
echo "Found option '${curopt}' on the boot command line"
|
||||
ROOTSHELL=$(echo "${curopt}" | cut -f2 -d=)
|
||||
chsh --shell ${ROOTSHELL} root
|
||||
;;
|
||||
# Set the system root password from a clear password
|
||||
rootpass\=*)
|
||||
SSHPASS1=$(echo "${curopt}" | cut -f2 -d=)
|
||||
|
|
|
|||
Loading…
Reference in a new issue