TODO: this is a temporary workaround until #13053 lands.
(mounts []mount.Mount)
| 765 | |
| 766 | // TODO: this is a temporary workaround until #13053 lands. |
| 767 | func bindToOverlay(mounts []mount.Mount) []mount.Mount { |
| 768 | if len(mounts) != 1 || mounts[0].Type != "bind" { |
| 769 | return mounts |
| 770 | } |
| 771 | |
| 772 | m := mount.Mount{ |
| 773 | Type: "overlay", |
| 774 | Source: "overlay", |
| 775 | } |
| 776 | for _, o := range mounts[0].Options { |
| 777 | if o != "rbind" { |
| 778 | m.Options = append(m.Options, o) |
| 779 | } |
| 780 | } |
| 781 | m.Options = append(m.Options, "upperdir="+mounts[0].Source) |
| 782 | |
| 783 | return []mount.Mount{m} |
| 784 | } |
no outgoing calls
searching dependent graphs…