Ask the user to enter a new password for root user

This commit is contained in:
Jeremy Gardais 2019-04-03 15:56:24 +02:00
parent c40b0151cc
commit c4ce689763
Signed by: jegardai
GPG Key ID: E759BAA22501AF32
1 changed files with 23 additions and 0 deletions

23
debian/chroot.install vendored
View File

@ -12,6 +12,20 @@ fi
vgname="ovhsys"
## If the script should manage the partitions (delete, add,…)
manage_part=0
## Colors definition {{{
BLACK='\033[49;30m'
BLACKB='\033[49;90m'
RED='\033[0;31m'
REDB='\033[1;31m'
GREEN='\033[0;32m'
YELLOW='\033[0;33m'
BLUE='\033[94;49m'
MAGENTA='\033[0;35m'
CYAN='\033[36;49m'
WHITE='\033[0;37m'
BOLD='\033[1m'
RESET='\033[0m'
## }}}
## Package to exclude from debootstrap install
dbs_pkg_exclude="vim"
@ -169,3 +183,12 @@ rm -f -- "${tmp_list_lv}"
## }}}
# }}}
# Finish {{{
printf '%b\\n' "${REDB}Please change the root's password:${RESET}"
chroot /target passwd
printf '%b\\n' "${GREEN}The system is still available on /target but you can now try to reboot the hardware."
exit 0
# }}}