I have seen that script online, but it is not the same as on the most recent version of the Cubietruck Vanilla image.
https://paste.teknik.io/2664
But I managed to find what I was looking for:
# if we have boot script
if [ -f /boot/boot.cmd ]; then
sed -e 's,root=\/dev\/mmcblk0p.,root=/dev/'"$DESTPART"',g' -i /boot/boot.cmd
mkimage -C none -A arm -T script -d /boot/boot.cmd /boot/boot.scr
fi
Which basically translates to "in /boot/boot.cmd set root=/dev/sda" (and then update the image)
If I understand correctly, the hardware could (theoretically) read a bootloader from NAND, right?
Couldn't I then just copy the SD-card image onto NAND?