Gostaria de saber se este é o seu problema?
Encontrei este tópico do fórum do CentOS intitulado:
trecho do problema
I'm attempting to mount an encrypted drive during the execution of the rc.local file. It prompts for a password, but upon the second keypress, it appears to be receiving a crlf (or whatever) and attempts to unlock the drive - failing, since I wasn't silly enough to encrypt it with a two character passcode.
A resposta aparente é desabilitar plymouth
primeiro.
You cannot run interactive scripts from rc.local unless you first run 'plymouth quit'.
O que é o Plymouth?
trecho de Freedesktop.org
Plymouth is an application that runs very early in the boot process (even before the root filesystem is mounted!) that provides a graphical boot animation while the boot process happens in the background.
It is designed to work on systems with DRM modesetting drivers. The idea is that early on in the boot process the native mode for the computer is set, plymouth uses that mode, and that mode stays throughout the entire boot process up to and after X starts. Ideally, the goal is to get rid of all flicker during startup.
Resolvendo seu problema
Então, acredito que tudo o que você precisa fazer é antes de executar o comando read
para usar o comando rc.local
:
plymouth quit