mirror of
https://github.com/clearlinux/clr-installer.git
synced 2026-09-04 04:31:31 +00:00
This patch sets the systemd-boot's timeout to 5 so the user may have the opportunity to change the kernel arguments. Signed-off-by: Leandro Dorileo <leandro.maciel.dorileo@intel.com>
23 lines
625 B
Bash
Executable File
23 lines
625 B
Bash
Executable File
#!/bin/bash
|
|
|
|
make install DESTDIR=$1
|
|
|
|
echo "Enabling clr-installer on boot for $1"
|
|
systemctl --root=$1 enable clr-installer
|
|
|
|
# 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
|
|
|
|
echo "timeout 5" >> $1/boot/loader/loader.conf
|
|
|
|
make clean
|