Uživatelské nástroje

Nástroje pro tento web


linux:boot-pres-internet

Toto je starší verze dokumentu!


Boot přes internet

BFO

netboot.xyz

https://netboot.xyz

jako root

# cd /boot
# wget https://boot.netboot.xyz/ipxe/netboot.xyz.lkrn
# wget https://boot.netboot.xyz/ipxe/netboot.xyz.efi
# chown root:root netboot.xyz.*
# chmod 0755 netboot.xyz.*

Parametr u příkazu search musí ukazovat na GUID aktuálního oddílu /boot. Ten zjistíme pomocí příkazů:

$ lsblk
$ blkid /dev/<oddil>

a poté upravíme /etc/grub.d/40_custom

40_custom
#!/usr/bin/sh
exec tail -n +3 $0
# This file provides an easy way to add custom menu entries.  Simply type the
# menu entries you want to add after this comment.  Be careful not to change
# the 'exec tail' line above.
 
# netboot.xyz
menuentry 'netboot.xyz' $menuentry_id_option 'netboot-xyz' {
    search --no-floppy --fs-uuid --set=root <GUID /boot oddilu>
    if [ "${grub_platform}" == "efi" ]; then
        chainloader /netboot.xyz.efi
    else
        linux16 /netboot.xyz.lkrn
    fi
}

a updatneme Grub 2 konfiguraci.

linux/boot-pres-internet.1677529589.txt.gz · Poslední úprava: 2023/02/27 20:26 autor: nost23