bin

bin
git clone git://git.zepp.club/bin.git
Log | Files | Refs | README | LICENSE

efi (300B)


      1 #!/bin/sh
      2 
      3 efibootmgr -b 0000 -B
      4 efibootmgr -b 0001 -B
      5 efibootmgr -b 0002 -B
      6 
      7 mkdir -p /boot/efi/linux
      8 cp -f arch/x86/boot/bzImage /boot/efi/linux/bzImage.efi 
      9 
     10 efibootmgr --create \
     11     --disk /dev/sda \
     12     --part 1 \
     13     --label "Linux" \
     14     --loader "\efi\linux\bzImage.efi" -u "root=/dev/sda2"