Replace Recovery Partition
From Android Wiki
Flashing edited recovery partition to your G1
A user on XDA-Developers has created a replacement recovery image that can be flashed onto the recovery partition that will block OTA updates from being applied, but will still allow custom signed updates to be flashed
1: download the replacement recovery image and unzip it to your sd card.
2: place it in your G1 and open a root console