Inspectors have uncovered structural faults at up to eight Edinburgh schools after the unprecedented closure of 17 across the city.

The 17 schools were closed to pupils on Monday after construction problems were identified at Oxgangs and St Peter's primaries.

The council has now said it aims to have all primary and special school pupils back in school by Monday next week.

STV News understands faults have been found with between four and eight schools, all of which were completely built under PPP.

Politicians have clashed over the use of PFI/PPP contracts, with Scotland's largest teaching union calling for an urgent review.

It has emerged that the building firm at the centre of the crisis, Miller Construction, was investigated over building standards in Glasgow in 2012.

Glasgow council threatened it could take  legal action over the issue, after serious structural faults were found at Lourdes Primary.

Edinburgh City Council chief executive Andrew Kerr has confirmed faults have now been found at Craigmount and Gracemount High Schools.

The schools, which have rolls of 1200 and 623 respectively, will need to be closed for repairs.

Mr Kerr told STV News: "We have been carrying out checks over the weekend and we have found similar problems at Gracemount and Craigmount High.

"We are waiting for a full report but repairs will need to be carried out. Further inspections are taking place this morning."

Edinburgh School Partnership (ESP) has accepted full financial responsibility and has described the standard of building work as "completely unacceptable".

It has also emerged the Scottish Parliament has been offered as temporary accommodation as the council grapples to find space for thousands of pupils.

It announced late on Friday that the buildings required detailed surveys.

Parents have been told to make childcare arrangements for the week. The closures affect a total of 7688 primary and secondary pupils, with nursery children also affected.

On Monday evening, the council released a statement saying all primary and special needs pupils will be back in school by Monday next week.

It said: "The Council has drawn up contingency plans to ensure all primary and special school pupils will be back in schools by Monday of next week.

"In some cases alternative arrangements could be in place by Wednesday. This is subject to the Council getting access to the closed schools whilst the surveys are ongoing.

"Significant work has also gone on today to ensure the 2,000 S4, S5 and S6 pupils affected by recent school closures will be accommodated in high schools in Edinburgh. This will ensure they are fully supported in readiness for their exams.

"S4, S5 and S6 pupils from Firrhill, Drummond and Royal High Schools will be able to return to their own schools on Wednesday. These three schools only had partial refurbishments as part of the PPP1 project."

The statement continued: "We will update parents as arrangements are finalised for individual schools."

The closures were announced after remedial works at storm-damaged Oxgangs Primary revealed serious structural issues with the building's walls.

It prompted concerns that all the schools built by Miller Construction under the same PFI contract - managed by Edinburgh Schools Partnership (ESP) - could be compromised.

Detailed structural surveys, arranged by ESP, have been carried at all affected schools over the weekend. Further checks were taking place on the buildings on Monday.

The city council has said Edinburgh taxpayers will not have to foot the bill and said the health and safety of children and staff was the main priority.

Local authorities across the country have been asked to review the condition of their school estate.

Inverclyde Council said it was due to carry out inspections throughout the week on four schools constructed by Miller, and a further school building which was refurbished by the firm.

A spokeswoman said: "While the early indications have been that the situation in Edinburgh is not expected to exist in our schools, we are clear that we require assurances through inspections that this is the case."

In 2012 it was reported that Glasgow council was looking into taking legal action against Miller Construction over Lourdes Primary School.

The school was closed to pupils after structural faults were found in the building.

Glasgow City Council said three of its PFI schools were built by Miller. It said it had carried out checks after the Oxgangs incident and further surveys were scheduled this week. However, it said it had no current concerns and expected schools to reopen on Monday after the holidays.

Dundee, Renfrewshire, North Lanarkshire, South Lanarkshire, East Ayrshire, West Dunbartonshire, East Renfrewshire, Scottish Borders, Falkirk and West Lothian all confirmed they were carrying out checks but did not have any PFI schools built by Miller, while Fife, Moray, and Aberdeen also confirmed they were carrying out inspections on their schools.