Skip to content

Commit

Permalink
add_upgrade_boot: small changes from review
Browse files Browse the repository at this point in the history
  • Loading branch information
Michal Hecko committed Aug 13, 2024
1 parent 967af6b commit fe00561
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -306,14 +306,13 @@ def construct_cmdline_args_for_livemode():
# @Todo(mhecko): verify this during config scan
if len(network_fragments) == 1 or network_fragments[0] != 'ip':
msg = ('The livemode dracut_network configuration value is incorrect - it does not '
'have the form of a key-value cmdline arg: `{0}`.')
'have the form of a key=value cmdline arg: `{0}`.')
msg = msg.format(livemode_config.dracut_network)

api.current_logger().error(msg)
raise StopActorExecutionError('Livemode is not configured correctly.', details={'details': msg})

net_arg_value = network_fragments[1]
args['ip'] = net_arg_value
args['ip'] = network_fragments[1]
args['rd.needsnet'] = '1'

autostart_state = '1' if livemode_config.autostart_upgrade_after_reboot else '0'
Expand Down

0 comments on commit fe00561

Please sign in to comment.