# Ryanboot-P2PBitTorrent-Boot-Linux **Repository Path**: kill121/Ryanboot-P2PBitTorrent-Boot-Linux ## Basic Information - **Project Name**: Ryanboot-P2PBitTorrent-Boot-Linux - **Description**: Ryan BitTorrent/P2P Boot Linux by aria2 - **Primary Language**: Shell - **License**: GPL-3.0 - **Default Branch**: master - **Homepage**: None - **GVP Project**: No ## Statistics - **Stars**: 0 - **Forks**: 0 - **Created**: 2021-03-27 - **Last Updated**: 2021-03-27 ## Categories & Tags **Categories**: Uncategorized **Tags**: None ## README # RPBL Ryanboot P2P/BitTorrent Boot Linux ### Ryanboot P2P/BitTorrent Boot Linux by aria2c A modified initrd.img from "Debian Buster Live" for support the BT/P2P boot, should keep all parameter/function from official. i tried my best for the simplest coding and keep it clean. Tested on kvm. 改造一個initrd.img經網絡啟動pxe,並以p2p/bittorrent協議加載。官方功能/參數沒變。 盡最大程度簡化代碼。已在kvm測試。 ### Please see the uploaded 9990-mount-http.sh, i did : * 1.add remarked script for check the /proc/cmdline if fetch="*.iso.torrent" and use aria2c for P2P download iso.增加核心參數註解,當偵測到fetch後是*.iso.torrent時使用aria2c使用p2p下載iso。 * 2.put the aria2c to /bin.將aria2c放入bin。 * 3.finally change the ${url} ${extension} back to "iso" for below mounting.最後將${url}${extension}變量改回iso繼續官方腳本掛載處理。 ## btmod.sh * included howto mod the initrd & create ipxe.script.修改細節、編寫ipxe腳本在btmod.sh ### How to use (ipxe injection example): ### 範例(ipxe 注入): ``` :rpbl echo Debian Live booting... kernel vmlinuz-4.19.0-6-amd64 initrd=initrd.img-4.19.0-6-amd64 initrd=RPBL.img boot=live vga=normal components splash hostname=DebianLive username=user ip=dhcp hooks=filesystem fetch=https://cdimage.debian.org/debian-cd/current-live/amd64/bt-hybrid/debian-live-10.1.0-amd64-gnome.iso.torrent initrd initrd.img-4.19.0-6-amd64 initrd https://github.com/hkkitlee/P2P-Boot-Linux/raw/master/RPBL.img || initrd https://gitee.com/hkkitlee/P2P-Boot-Linux/raw/master/RPBL.img boot || goto failed ``` * initrd RPBL.img,fetch=http://xxx.iso.torrent ### Or repack initrd after modifed as per btmod.sh.重新修改後打包成一個initrd.img亦可,詳情可查看btmod.sh ## Restriction Note, since use the official mount iso function:限制: * 1.The iso name seed as XXX.iso, so the torrent must be XXX.iso.torrent * 2.P2P should only support iso file now(no squashfs now). * 3.WIRED Network is needed like from pxe. ## Main: * Ryanboot:[github](https://github.com/hkkitlee/Ryanboot) [gitee](https://gitee.com/hkkitlee/Ryanboot)