The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 807 - File: showthread.php PHP 7.3.15 (Linux)
File Line Function
/showthread.php 807 errorHandler->error





Post Reply 
 
Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
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.
Find all posts by this user
Quote this message in a reply
Post Reply 


Messages In This Thread
Unable to open initramfs - daferret - 2019-05-10 08:38



User(s) browsing this thread: 1 Guest(s)