diff --git a/elements/source-repositories/README.md b/elements/source-repositories/README.md index fefa1bfef..cdde51c8e 100644 --- a/elements/source-repositories/README.md +++ b/elements/source-repositories/README.md @@ -38,3 +38,7 @@ it will be renamed to \ If mulitple elements register a source location with the same then source-repositories will exit with an error. Care should therefore be taken to only use elements together that download source to different locations. + +The repository paths built into the image are stored in +etc/dib-source-repositories, one repository per line. This permits later review +of the repositories (by users or by other elements). diff --git a/elements/source-repositories/extra-data.d/98-source-repositories b/elements/source-repositories/extra-data.d/98-source-repositories index 40c41792b..75b372f30 100755 --- a/elements/source-repositories/extra-data.d/98-source-repositories +++ b/elements/source-repositories/extra-data.d/98-source-repositories @@ -88,7 +88,9 @@ function get_repos_for_element(){ return 1 ;; esac - + # Capture the in-instance repository path for later review / other + # elements (like a pypi dependency cache). + echo "$REPOPATH" | sudo dd of=$TMP_MOUNT_PATH/etc/dib-source-repositories oflag=append conv=notrunc else echo "Couldn't parse '$line' as a source repository" return 1