diff --git a/sonic_installer/bootloader/uboot.py b/sonic_installer/bootloader/uboot.py index 0490a48216..9e83f8edd7 100644 --- a/sonic_installer/bootloader/uboot.py +++ b/sonic_installer/bootloader/uboot.py @@ -89,7 +89,7 @@ def set_fips(self, image, enable): cmdline = out.strip() cmdline = re.sub('^linuxargs=', '', cmdline) cmdline = re.sub(r' sonic_fips=[^\s]', '', cmdline) + " sonic_fips=" + fips - run_command(['/usr/bin/fw_setenv', 'linuxargs'] + split(cmdline)) + run_command(['/usr/bin/fw_setenv', 'linuxargs', cmdline]) click.echo('Done') def get_fips(self, image):