Commit 29f13862 authored by Rafael Monnerat's avatar Rafael Monnerat

[slapos-quick-install] By pass some modules (which are nor present on all hardwares)

parent cc5f27fa
......@@ -78,9 +78,7 @@ if [ ! -f /etc/opt/slapos/slapos.cfg ]; then
fi
cat > /usr/local/sbin/slapos-tweak << EOF
#!/bin/bash
set -e
#!/bin/sh -e
mkdir -v -p -m 0755 `grep ^certificate_repository_path /etc/opt/slapos/slapos.cfg | sed 's/^certificate_repository_path.*= *//'`
......@@ -123,17 +121,21 @@ modprobe kvm_intel
sleep 1
chmod 666 /dev/kvm
# By pass if some of the followed modules are not available.
# This is usually needed or preferred for a specific hardware/distribution.
set +e
# Set power saving
modprobe acpi_cpufreq > /dev/null 2>&1
# Set hardware monitoring tools (for Shuttle xh61 machines)
modprobe coretemp > /dev/null 2>&1
modprobe f71882fg > /dev/null 2>&1
set -e
# Activate KSM (shared memory for KVM)
echo 1 > /sys/kernel/mm/ksm/run
slapos node format --now
slapos node format -v -c --now
EOF
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment