rhtyd commented on a change in pull request #2799: systemvmtemplate: new 4.11.2
template and fixes
URL: https://github.com/apache/cloudstack/pull/2799#discussion_r210568252
##########
File path: systemvm/debian/opt/cloud/bin/setup/cloud-early-config
##########
@@ -224,11 +209,11 @@ start() {
config_guest
get_boot_params
- get_systemvm_type
patch
sync
sysctl -p
+ export TYPE=$(grep -Po 'type=\K[a-zA-Z]*' $CMDLINE)
Review comment:
this is about 10x-20x faster (based on `time` output) than the for-loop
before which is why I'm using it.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services