-
Notifications
You must be signed in to change notification settings - Fork 43
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Synchronize Desktop Beta and Installer images
Signed-off-by: Mark D Horn <mark.d.horn@intel.com>
- Loading branch information
Showing
5 changed files
with
41 additions
and
18 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
#!/bin/bash | ||
|
||
echo "Enabling clr-installer on boot for $1" | ||
systemctl --root=$1 enable clr-installer | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,14 @@ | ||
#!/bin/bash | ||
|
||
echo "Enabling clr-installer on boot for $1" | ||
systemctl --root=$1 enable clr-installer | ||
CHROOTPATH=$1 | ||
|
||
# Create a custom telemetry configuration to only log locally | ||
echo "Creating custom telemetry configuration for $1" | ||
mkdir -p $1/etc/telemetrics/ | ||
# Enable the installer on boot | ||
scripts/enable-installer-post.sh ${CHROOTPATH} | ||
|
||
cp $1/usr/share/defaults/telemetrics/telemetrics.conf \ | ||
$1/etc/telemetrics/telemetrics.conf | ||
# Force Telemetry to use local host server | ||
scripts/local-telemetry-post.sh ${CHROOTPATH} | ||
|
||
sed -i -e '/server=/s/clr.telemetry.intel.com/localhost/' \ | ||
-e '/spool_process_time/s/=900/=3600/' \ | ||
-e '/record_retention_enabled/s/=false/=true/' \ | ||
$1/etc/telemetrics/telemetrics.conf | ||
|
||
# Ensure telemetry is not enabled | ||
touch $1/etc/telemetrics/opt-out | ||
|
||
# Have the installer image wait 5 seconds before launch | ||
# Useful for users to change the boot command for debug | ||
echo "timeout 5" >> $1/boot/loader/loader.conf | ||
# Delay booting to give user a change to change boot params | ||
scripts/wait-to-boot-post.sh ${CHROOTPATH} | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
#!/bin/bash | ||
|
||
# Create a custom telemetry configuration to only log locally | ||
echo "Creating custom telemetry configuration for $1" | ||
mkdir -p $1/etc/telemetrics/ | ||
|
||
cp $1/usr/share/defaults/telemetrics/telemetrics.conf \ | ||
$1/etc/telemetrics/telemetrics.conf | ||
|
||
sed -i -e '/server=/s/clr.telemetry.intel.com/localhost/' \ | ||
-e '/spool_process_time/s/=900/=3600/' \ | ||
-e '/record_retention_enabled/s/=false/=true/' \ | ||
$1/etc/telemetrics/telemetrics.conf | ||
|
||
exit 0 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
#!/bin/bash | ||
|
||
# Have the installer image wait 5 seconds before launch | ||
# Useful for users to change the boot command for debug | ||
echo "timeout 5" >> $1/boot/loader/loader.conf | ||
|
||
exit 0 |