90-loaderentry.install   90-loaderentry.install 
skipping to change at line 50 skipping to change at line 50
PRETTY_NAME="Linux $KERNEL_VERSION" PRETTY_NAME="Linux $KERNEL_VERSION"
fi fi
declare -a BOOT_OPTIONS declare -a BOOT_OPTIONS
if [[ -f /etc/kernel/cmdline ]]; then if [[ -f /etc/kernel/cmdline ]]; then
readarray -t BOOT_OPTIONS < /etc/kernel/cmdline readarray -t BOOT_OPTIONS < /etc/kernel/cmdline
fi fi
if ! [[ ${BOOT_OPTIONS[*]} ]]; then if ! [[ ${BOOT_OPTIONS[*]} ]]; then
readarray -t line < /proc/cmdline read -ar line < /proc/cmdline
for i in ${line[*]}; do for i in "${line[@]}"; do
if [[ "${i#initrd=*}" == "$i" ]]; then [[ "${i#initrd=*}" != "$i" ]] && continue
BOOT_OPTIONS[${#BOOT_OPTIONS[@]}]="$i" BOOT_OPTIONS[${#BOOT_OPTIONS[@]}]="$i"
fi
done done
fi fi
if ! [[ ${BOOT_OPTIONS[*]} ]]; then if ! [[ ${BOOT_OPTIONS[*]} ]]; then
echo "Could not determine the kernel command line parameters." >&2 echo "Could not determine the kernel command line parameters." >&2
echo "Please specify the kernel command line in /etc/kernel/cmdline!" > &2 echo "Please specify the kernel command line in /etc/kernel/cmdline!" > &2
exit 1 exit 1
fi fi
cp "$KERNEL_IMAGE" "$BOOT_DIR_ABS/linux" && cp "$KERNEL_IMAGE" "$BOOT_DIR_ABS/linux" &&
 End of changes. 1 change blocks. 
5 lines changed or deleted 4 lines changed or added

This html diff was produced by rfcdiff 1.41. The latest version is available from http://tools.ietf.org/tools/rfcdiff/