核心後使用 wget 或 TFTP PXE 啟動 pmagic

核心後使用 wget 或 TFTP PXE 啟動 pmagic

我希望透過 PXE 啟動parted magic。

我讀過這篇關於該主題的文章:https://partedmagic.com/pxe/
其中指出您可以加載整個 iso,準備 squashfs 文件並將其加載為 ramdisk,或者您可以加載內核,然後讓 busybox 以各種方式下載文件,包括 http/s 和 TFTP。它還指出,此方法可能比使用 BIOS/UEFI 網路開機載入程式的 TFTP 用戶端更快。

我嘗試過以 iso 方式加載 memdisk 內核,效果很好。我還成功地使用了「使用 TFTP 下載引導程式中的所有檔案」方式,並載入了腳本建立的打包檔案。

label                   pmagic_fast
        menu label      Parted Magic Fast
        linux           pmagic/bzImage
        initrd          pmagic/initrd.img,pmagic/fu.img,pmagic/m.img,pmagic/files.cgz
        append          edd=on vga=normal

label                   pmagic_full
        menu label      Parted Magic Full
        linux           pmagic/memdisk
        initrd          pmagic/pmagic_2021_08_30.iso
        append          iso

因為無論如何我都使用TFTP,所以我想使用載入linux核心後下載東西的方法。我正在使用自訂選單vesamenu.c32。菜單運行良好。相關條目是

label                   pmagic_fast_tftp
        menu label      Parted Magic Fast Test TFTP
        linux           pmagic/bzImage
        initrd          pmagic/initrd.img,pmagic/fu.img,pmagic/m.img
        append          edd=on vga=normal netsrc=tftp neturl="192.168.1.5:/pmagic/pmodules"

它在文章中指出您必須提供netsrcneturl作為內核參數。我把它們放在我認為屬於它們的地方,但我不確定。他們沒有提供完整的範例。

PMAGIC_2021_08_30.SQFS在裡面/srv/tftp/pmagic/pmodules/,TFTP是透過/srv/tftp/dnsmasq提供的,因為我無論如何都在使用dnsmasq,因為pihole。

由於這個不行,我還嘗試了文章中提到的wget方法。

label                   pmagic_fast_wget1
        menu label      Parted Magic Fast Test WGET1
        linux           pmagic/bzImage
        initrd          pmagic/initrd.img,pmagic/fu.img,pmagic/m.img
        append          edd=on vga=normal netsrc=wget neturl="https://192.168.1.5:/pmagic/pmodules"

label                   pmagic_fast_wget2
        menu label      Parted Magic Fast Test WGET2
        linux           pmagic/bzImage
        initrd          pmagic/initrd.img,pmagic/fu.img,pmagic/m.img
        append          edd=on vga=normal wget="https://192.168.1.5:/pmagic/pmodules"

然而,這些選項都不起作用。這可能是因為我在伺服器上使用自製的憑證。

pmagic 版本是 2021_08_30。測試機(ASRock Killer SLI x370)上的 UEFI 是最新版本。

答案1

我設法讓它通過以下配置工作:

  • linux pmagic/bzImage.img改為kernel pmagic/bzImage.img
  • append edd=on vga=normal netsrc=wget neturl="https://192.168.1.5:/pmagic/pmodules"改為append edd=on vga=normal netsrc=wget neturl="https://192.168.1.5:/pmagic/pmodules" netargs="-U netboot --no-check-certificate"
label                   pmagic_fast     
        menu label      Parted Magic Fast     
        kernel          pmagic/bzImage
        initrd          pmagic/initrd.img,pmagic/fu.img,pmagic/m.img
        append          edd=on vga=normal netsrc=wget neturl="https://192.168.1.5/pmagic/pmodules/" netargs="-U netboot --no-check-certificate"

相關內容