The Southern States were fighting to keep slavery and they would agree to a ceasefire and to join the union if the north alllowed a constitutional amendment making this clear.
However, people like Abraham Lincoln and Andrew Jackson famously said northern aggression towards the south wasn't about slavery.
So the issue seems to be obviously oversimplified in these internet and media debates.