Загрузка данных


sudo mkdir -p /boot/ec-legacy/grub

sudo cp ~/thinkpad-ec/patched.x230.img /boot/ec-legacy/
sudo cp /usr/lib/syslinux/bios/memdisk /boot/ec-legacy/

sudo tee /boot/ec-legacy/grub/grub.cfg >/dev/null <<'EOF'
set timeout=-1

menuentry "X230 EC battery patch" {
    insmod part_gpt
    insmod fat
    search --no-floppy --file --set=root /ec-legacy/patched.x230.img
    linux16 /ec-legacy/memdisk
    initrd16 /ec-legacy/patched.x230.img
}
EOF



sudo grub-install --target=i386-pc \
  --boot-directory=/boot/ec-legacy /dev/sda