Answer:
To make it clear what the antecedent is for "it," you can rephrase the sentence as:
"When she removed the jacket and looked at the lining, the lining had a large hole."
This revision specifies that the hole is in the lining of the jacket, making the antecedent for "it" unambiguous.