I was developing a tool that I wanted to be deployable by a user headless and without resorting to the command line. In the end, the tool did not work as well has I hoped but, what did work quite well was the deployment solution.
All it does is use an initrd to configure either Arch or Raspbian to autorun a /boot/setup.sh script on boot. The script can be anything you want.
From the user's perspective all that needs to be done is:
(a) drop the initrd.img file and a setup.sh into the Windows-visible FAT partition (eg after burning one of the standard Arch or Raspbian images - not NOOBS)
(b) add a line at the end of config.txt (eg using a Windows text editor) saying:
Code: Select all
initramfs initrd.img followkernelAs an example, here is a setup.sh that resizes the root partition to fill the SD card and configures wifi (change the variables at the start of the script to suit).
http://www.mediafire.com/view/g8jrsk576b7w6rn/setup.sh
If any of you want to use this, bear in mind:
(i) the initrd init script comments out the initramfs line in config.txt (so it only runs once)
(ii) your setup.sh should have a means of ensuring that once it is done it will not be run on every reboot - see the reset_autostart function in the sample setup.sh.
(iii) the thing is set up such that setup.sh logs to /boot/log.txt
Here is the initrd file
http://www.mediafire.com/download/3046r ... initrd.img
If any of you are interested, I created the initrd with Arch's mkinitcpio tool - makes things very easy indeed. Here is the script I used to create the initrd.
http://www.mediafire.com/view/6c51bav78 ... einitrd.sh
Have fun