File tree Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Expand file tree Collapse file tree 2 files changed +4
-8
lines changed Original file line number Diff line number Diff line change 62
62
# Make an ESP in a file.
63
63
espfilename=$( mktemp /tmp/efiboot.XXXXXX)
64
64
if [ -f " ${BASEBITSDIR} /boot/loader_ia32.efi" ]; then
65
- make_esp_file ${espfilename} ${fat32min} ${BASEBITSDIR} /boot/loader.efi bootx64 \
66
- ${BASEBITSDIR} /boot/loader_ia32.efi bootia32
67
- else
68
- make_esp_file ${espfilename} ${fat32min} ${BASEBITSDIR} /boot/loader.efi
65
+ extra_args=" ${BASEBITSDIR} /boot/loader_ia32.efi bootia32"
69
66
fi
67
+ make_esp_file ${espfilename} ${fat32min} ${BASEBITSDIR} /boot/loader.efi bootx64 ${extra_args}
70
68
71
69
${MKIMG} -s mbr \
72
70
-b ${BASEBITSDIR} /boot/mbr \
Original file line number Diff line number Diff line change @@ -54,11 +54,9 @@ if [ "$1" = "-b" ]; then
54
54
# ESP file size in KB.
55
55
espsize=" 2048"
56
56
if [ -f " ${BASEBITSDIR} /boot/loader_ia32.efi" ]; then
57
- make_esp_file ${espfilename} ${espsize} ${BASEBITSDIR} /boot/loader.efi bootx64 \
58
- ${BASEBITSDIR} /boot/loader_ia32.efi bootia32
59
- else
60
- make_esp_file ${espfilename} ${espsize} ${BASEBITSDIR} /boot/loader.efi
57
+ extra_args=" ${BASEBITSDIR} /boot/loader_ia32.efi bootia32"
61
58
fi
59
+ make_esp_file ${espfilename} ${espsize} ${BASEBITSDIR} /boot/loader.efi bootx64 ${extra_args}
62
60
bootable=" $bootable -o bootimage=i386;${espfilename} -o no-emul-boot -o platformid=efi"
63
61
64
62
shift
You can’t perform that action at this time.
0 commit comments