Skip to content

broadcom/onie: builds fail to install due to missing mokutil bin since secureboot merge #14316

@ITJamie

Description

@ITJamie

Description

self-build onie install on accton device failing from builds based on latest master due to missing mokutil, built without secureboot

Steps to reproduce the issue:

build an unsigned broadcom build from master with secureboot disabled. mokutil is not included, however the install script is calling mokutil here:

secure_boot_state=$(mokutil --sb-state)

Describe the results you received:

install fails as it attempts to add a boot entry

install log

ONIE: OS Install Mode ...
Platform  : x86_64-accton_as7326_56x-r0
Version   : 2020.08.00.02
Build Date: 2020-11-16T10:42+08:00
Info: Mounting kernel filesystems... done.
Info: Mounting ONIE-BOOT on /mnt/onie-boot ...
Info: Mounting EFI System on /boot/efi ...
Info: BIOS mode: UEFI
Info: Making NOS install boot mode persistent.
Info: Using eth0 MAC address: e0:01:a6:23:c4:80
Info: eth0:  Checking link... up.
Info: Trying DHCPv4 on interface: eth0
ONIE: Using DHCPv4 addr: eth0: <<>>
Starting: klogd... done.
Starting: dropbear ssh daemon... done.
Starting: telnetd... done.
discover: installer mode detected.  Running installer.
Starting: discover... done.

Please press Enter to activate this console. Info: eth0:  Checking link... up.
Info: Trying DHCPv4 on interface: eth0
ONIE: Using DHCPv4 addr: eth0: <<>>
ONIE: Starting ONIE Service Discovery
EXT4-fs (sda4): couldn't mount as ext3 due to feature incompatibilities
Info: Attempting file://dev/sda4/onie-installer-x86_64-accton_as7326_56x-r0 ...
Info: Attempting file://dev/sda4/onie-installer-x86_64-accton_as7326_56x-r0.bin ...
Info: Attempting file://dev/sda4/onie-installer-x86_64-accton_as7326_56x ...
Info: Attempting file://dev/sda4/onie-installer-x86_64-accton_as7326_56x.bin ...
Info: Attempting file://dev/sda4/onie-installer-accton_as7326_56x ...
Info: Attempting file://dev/sda4/onie-installer-accton_as7326_56x.bin ...
Info: Attempting file://dev/sda4/onie-installer-x86_64-bcm ...
Info: Attempting file://dev/sda4/onie-installer-x86_64-bcm.bin ...
Info: Attempting file://dev/sda4/onie-installer-x86_64 ...
Info: Attempting file://dev/sda4/onie-installer-x86_64.bin ...
Info: Attempting file://dev/sda4/onie-installer ...
Info: Attempting file://dev/sda4/onie-installer.bin ...
Info: Attempting http://onie-server/onie-installer-x86_64-accton_as7326_56x-r0 ...
Info: Attempting http://onie-server/onie-installer-x86_64-accton_as7326_56x-r0.bin ...
Info: Attempting http://onie-server/onie-installer-x86_64-accton_as7326_56x ...
Info: Attempting http://onie-server/onie-installer-x86_64-accton_as7326_56x.bin ...
ONIE: Executing installer: http://onie-server/onie-installer-x86_64-accton_as7326_56x.bin
Verifying image checksum ... OK.
Preparing image archive ... OK.
Installing SONiC in ONIE
ONIE Installer: platform: x86_64-broadcom-r0
onie_platform: x86_64-accton_as7326_56x-r0
deleting partition 4 ...
Filesystem           1K-blocks      Used Available Use% Mounted on
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
Partition #1 is in use.
Partition #2 is in use.
Partition #3 is in use.
Partition #4 is available
Creating new SONiC-OS partition /dev/sda4 ...
Could not create partition 4 from 1050624 to 0
Unable to set partition 4's name to 'SONiC-OS'!
Error encountered; not saving changes.
Warning: The first trial of creating partition failed, trying the largest aligned available block of sectors on the disk
Warning: The kernel is still using the old partition table.
The new table will be used at the next reboot.
The operation has completed successfully.
mke2fs 1.42.13 (17-May-2015)
Discarding device blocks: done
Creating filesystem with 15499264 4k blocks and 3882384 inodes
Filesystem UUID: fd694ddc-1e49-4a2e-957e-e6f658053aa4
Superblock backups stored on blocks:
        32768, 98304, 163840, 229376, 294912, 819200, 884736, 1605632, 2654208,
        4096000, 7962624, 11239424

Allocating group tables: done
Writing inode tables: done
Creating journal (32768 blocks): done
Writing superblocks and filesystem accounting information: done

Installing SONiC to /tmp/tmp.SkBQxK/image-master.0-935f5dc
Archive:  fs.zip
   creating: boot/
  inflating: boot/System.map-5.10.0-18-2-amd64
  inflating: boot/vmlinuz-5.10.0-18-2-amd64
  inflating: boot/initrd.img-5.10.0-18-2-amd64
  inflating: boot/config-5.10.0-18-2-amd64
  inflating: fs.squashfs
ONIE_IMAGE_PART_SIZE=32768
EXTRA_CMDLINE_LINUX=
Success: Support tarball created: /tmp/onie-support-accton_as7326_56x.tar.bz2
/tmp/tmp.wSvxDo/installer/install.sh: line 246: mokutil: not found
Failure: Unable to install image: http://onie-server/onie-installer-x86_64-accton_as7326_56x.bin

Metadata

Metadata

Assignees

No one assigned

    Labels

    NVIDIATriagedthis issue has been triaged

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions