Requires "kdump support" patch for ovirt-node
Signed-off-by: Alan Pevec <apevec at redhat.com>
---
common-blacklist.ks | 2 +-
common-pkgs.ks | 2 ++
ovirt-node-image.ks | 10 +++++++++-
3 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/common-blacklist.ks b/common-blacklist.ks
index 2452237..af7fa07 100644
--- a/common-blacklist.ks
+++ b/common-blacklist.ks
@@ -10,7 +10,7 @@ echo "Removing excess RPMs"
RPMS="system-config-firewall-tui system-config-network-tui rhpl \
rpm-python dbus-python kudzu newt-python newt libsemanage-python"
-RPMS="$RPMS kpartx mkinitrd isomd5sum dmraid checkpolicy"
+RPMS="$RPMS mkinitrd isomd5sum dmraid checkpolicy"
# Remove additional RPMs forcefully
RPMS="$RPMS gamin pm-utils kbd usermode vbetool ConsoleKit hdparm \
diff --git a/common-pkgs.ks b/common-pkgs.ks
index cc507cf..f53131f 100644
--- a/common-pkgs.ks
+++ b/common-pkgs.ks
@@ -68,3 +68,5 @@ isomd5sum
irqbalance
cpuspeed
acpid
+# kdump
+kexec-tools
diff --git a/ovirt-node-image.ks b/ovirt-node-image.ks
index 802b6a5..894de79 100644
--- a/ovirt-node-image.ks
+++ b/ovirt-node-image.ks
@@ -30,6 +30,14 @@ mkdir -p /config
mkdir -p /data
mkdir -p /liveos
echo "/dev/HostVG/Config /config ext3 defaults,noauto 0 0" >>
/etc/fstab
+
+# kdump configuration
+augtool <<\EOF
+set /files/etc/sysconfig/kdump/KDUMP_BOOTDIR /boot-kdump
+save
+EOF
+mkdir -p /boot-kdump
+
%end
%post
@@ -63,7 +71,7 @@ sed -i -e 's/ quiet//'
$LIVE_ROOT/isolinux/isolinux.cfg
awk '
BEGIN {
# append additional default boot parameters
- add_boot_params="check"
+ add_boot_params="check crashkernel=128M at 16M"
}
/^label linux0/ { linux0=1 }
linux0==1 && $1=="append" {
--
1.6.0.6