Dried beans, hardtack and bacon were common food items issued 'dry' or 'raw' and cooked by the individual soldier or by the squad - pooling rations and messing together.
They'd supplement these rations with items purchased from the sutler - if one was available and they had money - from farmers, and through foraging.
Vaya,
Scouts Out!