OpenNetworkLinux
OpenNetworkLinux copied to clipboard
Specify onie img file
ONIE with secureboot will have <initrd.img-5.4.86-onie.sig> and <initrd.img-5.4.86-onie>. The community code doesn't specify to use the <initrd.img-5.4.86-onie> which will impact the ONL installation. Could we modify the pat to <onie/initrd.img*-onie> make it specifically to use the one without sig?
def _g(d): pat = os.path.join(d, "onie/initrd.img*") l = glob.glob(pat) if l: return l[0] return None
From <packages/base/all/vendor-config-onl/src/python/onl/install/ShellApp.py> line 109.
@sonoble Could you please help check this issue?Thank you.
Hello, this appears to be secure grub in ONIE : https://github.com/opencomputeproject/onie/blob/master/build-config/make/grub.make I see the issue as we would not pick up the actual initrd, but just a signature file. I will go ahead and see if we do this anywhere else as the kernel is signed also:
` /mnt/onie-boot/onie/initrd.img-5.4.86-onie.sig,
/mnt/onie-boot/onie/vmlinuz-5.4.86-onie.sig,
/mnt/onie-boot/grub/grub_sb.cfg.sig`
Hello, this appears to be secure grub in ONIE : https://github.com/opencomputeproject/onie/blob/master/build-config/make/grub.make I see the issue as we would not pick up the actual initrd, but just a signature file. I will go ahead and see if we do this anywhere else as the kernel is signed also:
` /mnt/onie-boot/onie/initrd.img-5.4.86-onie.sig,
/mnt/onie-boot/onie/vmlinuz-5.4.86-onie.sig,
/mnt/onie-boot/grub/grub_sb.cfg.sig`
Hello. What do you think the way if we add "-onie" to make it specifically point to the file without .sig?
@sonoble Kindly ask is there any update? What's you opinion about the solution I commented above? Thank you.
@sonoble Hi Steven. Any update from you?