From de2becc9ffc405703828dbc111c69ef2c11b9141 Mon Sep 17 00:00:00 2001 From: Ralf Haferkamp Date: Thu, 23 Jan 2014 15:29:17 +0100 Subject: [PATCH] Fix kernel/initrd extraction for SUSE based distros Change-Id: Ib4c8ddfe3592242ce684676e9dcb6428466ca66e --- elements/baremetal/cleanup.d/99-extract-kernel-and-ramdisk | 3 +++ 1 file changed, 3 insertions(+) diff --git a/elements/baremetal/cleanup.d/99-extract-kernel-and-ramdisk b/elements/baremetal/cleanup.d/99-extract-kernel-and-ramdisk index 8d2a2b15f..764741b00 100755 --- a/elements/baremetal/cleanup.d/99-extract-kernel-and-ramdisk +++ b/elements/baremetal/cleanup.d/99-extract-kernel-and-ramdisk @@ -47,6 +47,9 @@ if [ -f $TARGET_ROOT/etc/redhat-release ]; then elif [ -f $TARGET_ROOT/etc/debian_version ]; then KERNEL=$(basename `ls -1rv $BOOTDIR/vmlinuz*generic | head -1`) RAMDISK=$(basename `ls -1rv $BOOTDIR/initrd*generic | head -1`) +elif [ -f $TARGET_ROOT/etc/SuSE-release ]; then + KERNEL=$(basename `ls -1rv $BOOTDIR/vmlinuz`) + RAMDISK=$(basename `ls -1rv $BOOTDIR/initrd`) else echo "ERROR: Unable to detect operating system" exit 1