sd: use GetUndoAction()

Change-Id: I4129fdedcf99b711447aa3dd9fab3dec1bb5ad59