Background
I made an Ubuntu 20.04 "customized" img via dd command from a USB disk drive.
I use Serva as PXE server following Serva tutorial.
The official Ubuntu 20.04.4 ISO PXE boots successfully. When I PXE boot my "customized" image it properly downloads vmlinuz and initrd but initrd triggers a kernel panic.
Question
Is it correct adding a Linux asset to Serva's repository by copying all the files from an image file (root partition folder) to NWA_PXE/{my customized image name}?
If this method is correct could it be the initrd triggers the kernel panic because it lacked some kernel module like SMB or CIFS 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