update boot and recovery flags