Unable to open initramfs
|
2019-05-10, 08:38
(This post was last modified: 2019-05-10 08:45 by daferret.)
Post: #1
|
|||
|
|||
Unable to open initramfs
Hi, I'm having trouble with the initramfs I am using when booting in UEFI. The initramfs works when in legacy but when trying to run on UEFI the system it "failed to open file". Additional info for context: My goal is just to load the ramdisk image and not load to any storage device because I intend to test all storage devices by running destructive tools against them, hope that makes sense :-)
Here are the events leading up to failure: 1) Boot into ipxe with embed script: #!ipxe echo Will keep trying to get a valid DHCP address before loading the image echo via http://x.x.x.x/ipxe/ipxe-usbnic.script :retry ifstat ifconf -c dhcp || goto retry chain http://x.x.x.x/api/ipxe/ipxe-usbnic.script 2) Loads the following from the ipxe-usbnic.script #!ipxe set mfg_data http://x.x.x.x/data set mfg_releases http://x.x.x.x/releases menu item uut_os Boot the UUT Ramdisk Based OS (the default) choose --default uut_os --timeout 10000 target && goto ${target} :uut_os set default_uut_os ${mfg_data}/uut-os/default kernel ${default_uut_os}/vmlinuz console=ttyS0,11520 fastboot initrd=${default_uut_os}/initramfs.gz mfg_setup=${mfg_releases}/mfg/default/admin/uut_os/setup-after-boot.sh initrd ${default_uut_os}/initramfs.gz boot :shell shell :exit exit It looks like it's able to download the images, but when trying to unpack the initramfs.gz it fails. Do I need to modify anything for UEFI? Thanks...any hints would be greatly appreciated. |
|||
2019-05-10, 08:56
Post: #2
|
|||
|
|||
RE: Unable to open initramfs
(2019-05-10 08:38)daferret Wrote: set default_uut_os ${mfg_data}/uut-os/default You need to differ between initrd to download the file which can use full path to find it. When it is downloaded however there is no path information, this can be seen by using imgstat. what you need is to change your kernel line to only have initrd=initramfs.gz that is without the ${default_uut_os}/ part Use GitHub Discussions VRAM bin |
|||
2019-05-10, 09:27
(This post was last modified: 2019-05-10 09:31 by daferret.)
Post: #3
|
|||
|
|||
RE: Unable to open initramfs
(2019-05-10 08:56)NiKiZe Wrote:(2019-05-10 08:38)daferret Wrote: set default_uut_os ${mfg_data}/uut-os/default Cool...thanks...will try it out and let you know how it goes! |
|||
2019-05-10, 18:20
Post: #4
|
|||
|
|||
RE: Unable to open initramfs
(2019-05-10 08:56)NiKiZe Wrote:(2019-05-10 08:38)daferret Wrote: set default_uut_os ${mfg_data}/uut-os/default Worked like a charm! Thanks again! |
|||
« Next Oldest | Next Newest »
|
User(s) browsing this thread: 1 Guest(s)