File tree Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Expand file tree Collapse file tree 1 file changed +7
-2
lines changed Original file line number Diff line number Diff line change @@ -90,6 +90,7 @@ for rd in ${GRUB_EARLY_INITRD_LINUX_STOCK[@]} \
90
90
if [ -e " $KERNEL_DIR " /" $rd " ] ; then
91
91
INITRD_EARLY=" ${INITRD_EARLY} ${KERNEL_DIR} /${rd} "
92
92
fi
93
+ INITRD_EARLY=" ${INITRD_EARLY## [ ]} "
93
94
done
94
95
# Returns the default page size suffix.
95
96
# WARN $arch is the output of `uname -m`, which is not exactly the same as
@@ -297,14 +298,18 @@ get_initrd() {
297
298
initrd.img-" $1 " \
298
299
initrd-" $1 " .gz ; do
299
300
if [ -e " $KERNEL_DIR /$rd " ] ; then
300
- info " $( gettext_printf " Initial ramdisk image for kernel %s: %s " " $1 " " ${GRUB_KERNEL_DIR}${rd} " ) "
301
+ info " $( gettext_printf " Initial ramdisk image for kernel '%s': '%s' " " $1 " " ${GRUB_KERNEL_DIR}${rd} " ) "
301
302
ret=" ${ret} ${GRUB_KERNEL_DIR}${rd} "
302
303
break
303
304
else
304
305
continue
305
306
fi
306
307
done
307
- printf " %s" " $ret "
308
+ if [ -n " $ret " ] ; then
309
+ printf " %s" " $ret "
310
+ else
311
+ info " $( gettext_printf " No initial ramdisk image found for kernel '%s'" " $1 " ) "
312
+ fi
308
313
}
309
314
310
315
process_kernels () {
You can’t perform that action at this time.
0 commit comments