Merge "Modify ESP configuring script of redfish document"
This commit is contained in:
commit
f5500996f8
@ -288,16 +288,15 @@ Then the following script can be used to build an ESP image:
|
|||||||
DEST=/path/to/esp.img
|
DEST=/path/to/esp.img
|
||||||
GRUB2=/path/to/grub.efi
|
GRUB2=/path/to/grub.efi
|
||||||
SHIM=/path/to/shim.efi
|
SHIM=/path/to/shim.efi
|
||||||
TEMP_MOUNT=$(mktemp -d)
|
|
||||||
|
|
||||||
dd if=/dev/zero of=$DEST bs=4096 count=1024
|
dd if=/dev/zero of=$DEST bs=4096 count=1024
|
||||||
mkfs.fat -s 4 -r 512 -S 4096 $DEST
|
mkfs.msdos -F 12 -n ESP_IMAGE $DEST
|
||||||
|
|
||||||
sudo mount $DEST $TEMP_MOUNT
|
# The following commands require mtools to be installed
|
||||||
sudo mkdir -p $DEST/EFI/BOOT
|
mmd -i $DEST EFI EFI/BOOT
|
||||||
sudo cp "$SHIM" $DEST/EFI/BOOT/BOOTX64.efi
|
mcopy -i $DEST -v $SHIM ::EFI/BOOT/BOOTX64.efi
|
||||||
sudo cp "$GRUB2" $DEST/EFI/BOOT/GRUBX64.efi
|
mcopy -i $DEST -v $GRUB2 ::EFI/BOOT/GRUBX64.efi
|
||||||
sudo umount $TEMP_MOUNT
|
mdir -i $DEST ::EFI/BOOT
|
||||||
|
|
||||||
.. note::
|
.. note::
|
||||||
If you use an architecture other than x86-64, you'll need to adjust the
|
If you use an architecture other than x86-64, you'll need to adjust the
|
||||||
|
Loading…
x
Reference in New Issue
Block a user