While testing a package I am developing and deploying using SetupHelper, I was testing the uninstall process and did a rogue command. The rogue command was supposed to remove a full qualified path and file. It was added to a string of other directories/files to eliminate. Sadly, without those variables filled properly, my command:
rm -rf /usr/local/etc/tinc $TARGETDIR/$TARGETFILE
was executed as:
rm -rf /usr/local/etc/tic /
So, I nuked the root FS and need a method of recovery. I did attach the USB cable to the header and saw the kernel trying to initiate /bin/sh (which is now gone). IF there is a SD card image or other recovery process... all I need to do is get the bits back into the Cerbo in the right spots. I had killed the process and was trying to tar up another cerbo and get it over but I lost connectivity before I could hail mary the fix.
So, since I plan to never to do this again (but probably will) do you have an end power user method to get this back.
Tim
Tags: