| 1 | 56a57,75 |
|---|
| 2 | > # Mount every local repository in the chroot's sources.list file that doesn't |
|---|
| 3 | > # exist in the chroot file system. |
|---|
| 4 | > |
|---|
| 5 | > # All the local repositories mentioned in chroot's sources.list file |
|---|
| 6 | > |
|---|
| 7 | > for local_repo in $local_repos; do |
|---|
| 8 | > |
|---|
| 9 | > # If the directory doesn't exist in the chroot file system |
|---|
| 10 | > if [ ! -e "$WHERE$local_repo" ]; then |
|---|
| 11 | > |
|---|
| 12 | > # If the directory does exist in the exterior file system |
|---|
| 13 | > if [ -d "$local_repo" ]; then |
|---|
| 14 | > |
|---|
| 15 | > # Make a mount dir and mount the exterior repository dir to it |
|---|
| 16 | > try_mount_repo "$WHERE" "$local_repo" |
|---|
| 17 | > fi |
|---|
| 18 | > fi |
|---|
| 19 | > done |
|---|
| 20 | > |
|---|