Skip to content

Commit ef89666

Browse files
committed
fixed some commands on Ubuntu guide
1 parent a188d3e commit ef89666

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

_posts/2024-12-11-Cobbler-v3.3.7-Ubuntu-Deployment-Guide.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -344,7 +344,7 @@ cobbler distro edit --name Ubuntu20-casper-x86_64 --kernel-options 'root=/dev/ra
344344
create a new autoinstall (`cloud-init`) template from the `cloud-init_user_data` file created above, and configure it as the autoinstallation template for the Ubuntu 20.04 Cobbler PROFILE
345345
346346
```shell
347-
sed ':a;N;$!ba;s, uri: http://\$http_server/cblr/links/\$distro\n# uri: http://us.archive.ubuntu.com/ubuntu,# uri: http://\$http_server/cblr/links/\$distro\n uri: http://us.archive.ubuntu.com/ubuntu,' /var/lib/cobbler/templates/cloud-init_user-data | tee /var/lib/cobbler/templates/Ubuntu20_cloud-init_user-data
347+
sed -z 's, uri: http://$http_server/cblr/links/$distro\n# uri: http://us.archive.ubuntu.com/ubuntu,# uri: http://$http_server/cblr/links/$distro\n uri: http://us.archive.ubuntu.com/ubuntu,' /var/lib/cobbler/templates/cloud-init_user-data | tee /var/lib/cobbler/templates/Ubuntu20_cloud-init_user-data
348348
cobbler profile edit --name Ubuntu20-casper-x86_64 --autoinstall Ubuntu20_cloud-init_user-data
349349
```
350350
@@ -369,6 +369,8 @@ cobbler sync
369369
370370
The **PXE Client** VM can now be powered on, and should automatically boot to PXE and install Ubuntu 20.04 to the VM HDD using the "Ubuntu20_cloud-init_user-data" preseed template created above.
371371

372+
- The resulting system will have the `root` super-user account disabled, and will only be accessible with the `ubuntu` user specified in the *cloud-init* config file.
373+
372374
## Ubuntu 22.04 PXE Deployment
373375

374376
Take similar steps as above to import and automatically deploy Ubuntu 22.04 LTS Server over PXE, using the original `cloud-init_user-data` autoinstall template created above.

0 commit comments

Comments
 (0)