Background
I made an Ubuntu 20.04 customized"customized" img via dd command from a USB disk drive.
UsingI use servaServa as PXE server likefollowing servaServa tutorial tutorial.
The official Ubuntu 20.04.4 ISO PXE bootboots successfully. But whenWhen I PXE boot my customized"customized" image it properly downloads vmlinuz and initrd but will initrd triggers a kernel panic.
Question
It is right wayIs it correct adding a Linux asset to make PXE boot sequence like copyServa's repository by copying all the filefiles from an image file on root(root partition folder) to NWA_PXE/{my customized image name}?
If this stepmethod is correct. Maybe could it be the initrd filetriggers the kernel panic because it lacked some kernel module like SMB module or CIFS module on boot?
This is inspired by this article: Boot custom Linux image using PXE
The error code is:
[ 1.437739] ---[ end Kernel panic - not syncing: Attempted to kill init! exit code=0x00000200 ]---
The ServaAsset.inf setting is:
[PXESERVA_MENU_ENTRY]
asset = customized img beta
platform = amd64
kernel_bios = /NWA_PXE/$HEAD_DIR$/casper/vmlinuz
append_bios = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/casper/initrd boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,sec=ntlmv2,vers=2.0,ro ip=dhcp ro ipv6.disable=1
kernel_efi64 = /NWA_PXE/$HEAD_DIR$/boot/vmlinuz-5.11.0-40-generic
append_efi64 = showmounts toram root=/dev/cifs initrd=/NWA_PXE/$HEAD_DIR$/boot/initrd.img-5.11.0-40-generic boot=casper netboot=cifs nfsroot=//$IP_BSRV$/NWA_PXE_SHARE/$HEAD_DIR$ NFSOPTS=-ouser=serva,pass=avres,sec=ntlm,vers=1.0,ro ip=dhcp ro ipv6.disable=1