|
@@ -152,7 +152,7 @@ else
|
|
|
fi
|
|
|
|
|
|
if (( usegrub )); then
|
|
|
- tar -xOzf "$src" usr/share/grub-bin/core.img >"$T/core.img"
|
|
|
+ tar -xOzf "$src" usr/lib/grub/core.img >"$T/core.img"
|
|
|
integer coreimgsz=$($statcmd "$T/core.img")
|
|
|
if (( coreimgsz < 1024 )); then
|
|
|
print -u2 core.img is probably too small: $coreimgsz
|
|
@@ -275,7 +275,7 @@ if (( usegrub )); then
|
|
|
) >boot/grub/grub.cfg
|
|
|
set -A grubfiles
|
|
|
ngrubfiles=0
|
|
|
- for a in usr/lib/grub/*-pc/{*.mod,efiemu??.o,command.lst,moddep.lst,fs.lst,handler.lst,parttool.lst}; do
|
|
|
+ for a in usr/lib/grub/*-pc/{*.mod,*.lst}; do
|
|
|
[[ -e $a ]] && grubfiles[ngrubfiles++]=$a
|
|
|
done
|
|
|
cp "${grubfiles[@]}" boot/grub/
|