Install installs distribution with default rootfs file names
(ctx context.Context, wsl wsllib.WslLib, reg wsllib.WslReg, name string, rootPath string, sha256Sum string, showProgress bool)
| 79 | |
| 80 | // Install installs distribution with default rootfs file names |
| 81 | func Install(ctx context.Context, wsl wsllib.WslLib, reg wsllib.WslReg, name string, rootPath string, sha256Sum string, showProgress bool) error { |
| 82 | return installWithDeps(ctx, wsl, reg, name, rootPath, sha256Sum, showProgress, defaultInstallDeps()) |
| 83 | } |
| 84 | |
| 85 | func installWithDeps(ctx context.Context, wsl wsllib.WslLib, reg wsllib.WslReg, name string, rootPath string, sha256Sum string, showProgress bool, deps installDeps) error { |
| 86 | ctx = normalizeContext(ctx) |