unixabg / cryptmypi

Project to assist users in building an encrypted raspberry pi
GNU General Public License v3.0
61 stars 21 forks source link

add error checking #19

Closed superuser5 closed 4 years ago

superuser5 commented 4 years ago

As I had multiple failures building the sdcard on native kali and with stable wifi, i would like to recommend to add error checking:

Example:

echo "Installing tools" apt-get install -y cryptsetup >> $LOGFILE 2>&1 ERROR=$? if [ $ERROR -ne 0 ]; then echoerror "Could not install tools (Error Code: $ERROR)." fi

unixabg commented 4 years ago

Greetings, Thank you for the submission. I think it better to have a full diagnostic build log when something is not working. So something like the following is recommended for now:

sudo ./cryptmypi.sh examples/pios-encrypted-basic | tee pios-encrypted-basic_build-log.txt

Closing issue.