Also, from the other end, the single biggest predictor of whether Confederate men volunteered to fight was whether they came from a family that owned slaves
Vituperative Erb
Nearly 180,000 Black men served in the Union Army. Another 19,000 in the Navy. Black soldiers accounted for roughly 10% of Union military deaths. A large portion of each were formerly enslaved.
I imagine they gave a damn about slavery.