KERNEL ::boot/amd64/debian/10/install.amd/vmlinuzĪPPEND vga=788 initrd=::boot/amd64/debian/10/install.amd/gtk/initrd.gz - quietĪPPEND vga=788 initrd=::boot/amd64/debian/10/install.amd/initrd.gz - quiet Inside the pxelinux.cfg directory we create a file called default and paste the following configuration inside it: MENU TITLE PXE Boot Menu inside our tftp root, ( /mnt/data/netboot in our case), we create the pxelinux.cfg directory: $ mkdir /mnt/data/netboot/pxelinux.cfg Now that we have the distribution files in place, we can create the boot menu. In the next step we will see how to create a boot menu using the syslinux syntax. Once the files are copied, we can unmount the ISO: $ sudo umount /media I like to use rsync to copy them: $ sudo rsync -av /media/ /mnt/data/netboot/boot/amd64/debian/10 Once the ISO is mounted, its files will be accessible under /media. To mount the ISO we run: $ sudo mount -o loop -t iso9660 /mnt/data/isos/debian-10.4.0-amd64-netinst.iso /media At this point we must mount the distribution ISO and copy the files into the destination directory. This path choice is arbitrary, so feel free to create your own. We create the appropriate path inside /mnt/data/netboot/boot, naming directories after the architecture, name and version of the system we want to provide in our menu (in this case amd64 – Debian 10): $ mkdir -p /mnt/data/netboot/boot/amd64/debian/10 For convenience, I will suppose a previously verified ISO (take a look at our article about checking the integrity and the signature of a distribution image with gpg if you want to know how to verify the integrity and signature of a distribution image) to be available on the Rpi filesystem in the /mnt/data/isos directory. In this tutorial, just as an example, we will work with a Debian netinstall image. ![]() Let’s call it boot: $ mkdir /mnt/data/netboot/boot usr/lib/SYSLINUX.EFI/efi64/syslinux.efi \Īt this point we need to create the directory that will host the distributions we want to make available in our boot menu. We want to be able to support the boot of clients in BIOS and EFI mode, therefore the first thing we need to do is to create two directories named after those architectures inside /mnt/data/netboot: $ mkdir /mnt/data/netboot/.c32 \ For the sake of this tutorial, the root of the whole setup will be the /mnt/data/netboot directory, which will be also used as the tftp root (defined inside the dnsmasq configuration file) all the needed files will be stored inside it. Once the needed packages are installed, we can proceed and setup the file structure. To install the packages on the Raspberry Pi OS, we can run: $ sudo apt-get update
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |