Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[2.0] Cherry-pick credscan failure caused by unattended installer image config #2908

Merged
merged 2 commits into from
Apr 27, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion toolkit/docs/building/building.md
Original file line number Diff line number Diff line change
Expand Up @@ -209,7 +209,7 @@ sudo make iso CONFIG_FILE=./imageconfigs/full.json REBUILD_TOOLS=y
To create an unattended ISO installer (no interactive UI) use `UNATTENDED_INSTALLER=y` and run with a [`CONFIG_FILE`](https://github.com/microsoft/CBL-MarinerDemo#image-config-file) that only specifies a _single_ SystemConfig.

```bash
# Build the standard ISO with unattended installer that installs onto the default Gen1 HyperV VM
# Build the standard ISO with unattended installer that installs onto the default Gen1 HyperV VM. Needs to cloud-init provision the user once unattended installation finishes.
sudo make iso -j$(nproc) CONFIG_FILE=./imageconfigs/core-legacy-unattended-hyperv.json REBUILD_TOOLS=y UNATTENDED_INSTALLER=y
```

Expand Down
10 changes: 1 addition & 9 deletions toolkit/imageconfigs/core-legacy-unattended-hyperv.json
Original file line number Diff line number Diff line change
Expand Up @@ -47,15 +47,7 @@
"KernelOptions": {
"default": "kernel"
},
"Hostname": "cbl-mariner",
"Users": [
{
"Name": "root",
"Password": "$6$20m6y6nwlU1K$hKgyNYjVSKPJOTFaAzAf/fwACUV/dZ1NPy5cGNkhvRzKJiKDBKofuvDpdl81Jak4ep756DnZmVm7JfGRMO/n90",
"PasswordHashed": true,
"_comment": "The password is 'p@ssw0rd', this should be regenerated with 'openssl passwd -6 -salt <YOUR_SALT> <YOUR_PASSWORD>', or use the json key 'SSHPubKeyPaths' to use an SSH key for login"
}
]
"Hostname": "cbl-mariner"
}
]
}