diff --git a/scripts/inner_chroot_script.sh b/scripts/inner_chroot_script.sh index 923a2dd..c26386d 100755 --- a/scripts/inner_chroot_script.sh +++ b/scripts/inner_chroot_script.sh @@ -68,7 +68,9 @@ layman -d sabayon rm -rf /var/lib/layman/sabayon # Reset users' password -echo "root:" | chpasswd +# chpasswd doesn't work anymore +root_zeropass="root::$(cat /etc/shadow | grep "root:" | cut -d":" -f3-)" +sed -i "s/^root:.*/${root_zeropass}/" /etc/shadow # protect /var/tmp touch /var/tmp/.keep