extract files from a RaspiOS.img into the tftpboot and nfsroot directory for RPi pxe-boot
50K+
extract files from a RaspiOS.img into the tftpboot and nfsroot directory for RPi pxe-boot
GitHub - 3x3cut0r/raspberrypi-netboot - https://github.com/3x3cut0r/docker/tree/main/raspberrypi-netboot
DockerHub - 3x3cut0r/raspberrypi-netboot - https://hub.docker.com/r/3x3cut0r/raspberrypi-netboot
Example 1 - without mounting a custom RaspiOS.img
(image will be downloaded from given url)
docker container run --rm \
--privileged \
--name raspberrypi-netboot \
-e IMG="https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-01-12/2021-01-11-raspios-buster-armhf-lite.zip" \
-e NFS_IP=192.168.0.200 \
-e NFS_ROOT=/nfsroot/raspberrypi \
-e NFS_VERSION=4 \
-v /path/to/some/folder/nfsroot:/netboot/nfsroot \
-v /path/to/some/folder/tftpboot:/netboot/tftpboot \
3x3cut0r/raspberrypi-netboot:latest
Example 2 - with mounting a custom RaspiOS.img
download your image from https://downloads.raspberrypi.org
(this will perform a lot faster !!!)
docker container run --rm \
--privileged \
--name raspberrypi-netboot \
-e NFS_IP=192.168.0.200 \
-e NFS_ROOT=/nfsroot/raspberrypi \
-e NFS_VERSION=4 \
-v /path/to/your/2021-01-11-raspios-buster-armhf-lite.zip:/netboot/raspios.zip \
-v /path/to/some/folder/nfsroot:/netboot/nfsroot \
-v /path/to/some/folder/tftpboot:/netboot/tftpboot \
3x3cut0r/raspberrypi-netboot:latest
version: '3'
services:
raspberrypi-netboot:
privileged: true
image: 3x3cut0r/raspberrypi-netboot
environment:
IMG: "https://downloads.raspberrypi.org/raspios_lite_armhf/images/raspios_lite_armhf-2021-01-12/2021-01-11-raspios-buster-armhf-lite.zip"
NFS_IP=192.168.0.200
NFS_ROOT=/nfsroot/raspberrypi
NFS_VERSION=4
volumes:
- /path/to/some/folder/nfsroot:/netboot/nfsroot
- /path/to/some/folder/tftpboot:/netboot/tftpboot
NFS_IP - NFS-Server IP-Address to be written in the boot/cmdline.txtNFS_ROOT - NFS-Root-Directory to be written in the boot/cmdline.txt and /etc/fstabNFS_VERSION - NFS-Version to be written in the boot/cmdline.txt/netboot/nfsroot - nfsroot directory. should be mapped or copied to your nfs-servers nfsroot directory/netboot/tftpboot - tftpboot directory. should be mapped or copied to your tftp-servers tftproot directory. - This project is licensed under the GNU General Public License - see the gpl-3.0 for details.
Content type
Image
Digest
sha256:ca4f0cd26…
Size
6.8 MB
Last updated
5 days ago
docker pull 3x3cut0r/raspberrypi-netboot