# list of geninitrd modules which need setup routine after commandline args parsing
GENINITRD_MODS=""
COMPRESS=yes
+LILO_MICROCODE=yes
STRIP=/usr/bin/strip
target=""
kernel=""
mv -f "$tmp" "$target"
}
+# prepend file to image
+prepend_file_to_image() {
+ local file="$1" target="$2" tmp
+ tmp=$(mktemp "$target".XXXXXX) || die "mktemp failed"
+
+ cat "$file" "$target" > "$tmp" || return $?
+
+ mv -f "$tmp" "$target"
+}
+
if [ -r /etc/sysconfig/geninitrd ]; then
. /etc/sysconfig/geninitrd
fi
cp -a "$IMAGE" "$target"
fi
+# microcode support for lilo
+if ! is_no "$LILO_MICROCODE"; then
+ if [ -x /sbin/lilo -a -f "/boot/intel-ucode.img" ]; then
+ verbose "Prepending $target with microcode image /boot/intel-ucode.img for LILO"
+ prepend_file_to_image "/boot/intel-ucode.img" "$target"
+ fi
+fi
+
# XXX. check if bootsplash can output data to tmp dir not directly to initramfs image.
initrd_gen_bootsplash "$target"
# Default is to use initramfs for >= 2.5.0.
#INITRDFS=initramfs
+# Should we prepend cpu microcode when lilo is installed
+#LILO_MICROCODE=no
+
## Use udev to create /dev?
USE_UDEV=yes