Not two years -- twelve months.
Those willing to enlist were assigned to one of the six U.S. 'volunteer' regiments stationed on the western frontier. Of course members were eligible for Federal pensions.
Copies of service records for 'Galvanized Yankees' is available here. Dee Brown's book of the same title is available in a paperback edition.