Allow pausing before failure reboot.
This commit is contained in:
		@@ -520,9 +520,10 @@ cleanup() {
 | 
				
			|||||||
    if [[ -z ${DONE} ]]; then
 | 
					    if [[ -z ${DONE} ]]; then
 | 
				
			||||||
        case ${install_option} in
 | 
					        case ${install_option} in
 | 
				
			||||||
            on)
 | 
					            on)
 | 
				
			||||||
                echo "A fatal error occurred; rebooting in 10 seconds."
 | 
					                echo "A fatal error occurred; rebooting in 10 seconds. Press any key to spawn a shell."
 | 
				
			||||||
                sleep 10
 | 
					                if ! read -t 10; then
 | 
				
			||||||
                reboot
 | 
					                    reboot
 | 
				
			||||||
 | 
					                fi
 | 
				
			||||||
            ;;
 | 
					            ;;
 | 
				
			||||||
            *)
 | 
					            *)
 | 
				
			||||||
                # noop
 | 
					                # noop
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user