← Back to team overview

curtin-dev team mailing list archive

Re: [Merge] ~mwhudson/curtin:no-explicit-update-initramfs into curtin:master

 


Diff comments:

> diff --git a/curtin/commands/curthooks.py b/curtin/commands/curthooks.py
> index 5939ab0..3960a53 100644
> --- a/curtin/commands/curthooks.py
> +++ b/curtin/commands/curthooks.py
> @@ -2100,22 +2100,23 @@ def builtin_curthooks(cfg, target, state):
>      ):
>          configure_kernel_crash_dumps(cfg, pathlib.Path(target))
>  
> -    with events.ReportEventStack(
> -            name=stack_prefix + '/updating-initramfs-configuration',

I lean toward keeping the old event name here, this "updating-initramfs-configuration".  If we do so I think the resulting diff is even smaller, just removing the update_initramfs(target, all_kernels=True) call to add the call to              reconfigure_kernel(target) and keep your improved comment.  Thoughts?

> -            reporting_enabled=True, level="INFO",
> -            description="updating initramfs configuration"):
> -        if osfamily == DISTROS.debian:
> -            # re-enable update_initramfs
> -            enable_update_initramfs(cfg, target, machine)
> -            update_initramfs(target, all_kernels=True)
> -        elif osfamily == DISTROS.redhat:
> +    if osfamily == DISTROS.redhat:
> +        with events.ReportEventStack(
> +                name=stack_prefix + '/updating-initramfs-configuration',
> +                reporting_enabled=True, level="INFO",
> +                description="updating initramfs configuration"):
>              redhat_update_initramfs(target, cfg)
>  
> -    with events.ReportEventStack(
> -            name=stack_prefix + '/kernel-postinstall',
> -            reporting_enabled=True, level="INFO",
> -            description="running kernel postinstall hooks"):
> -        if osfamily == DISTROS.debian:
> +    if osfamily == DISTROS.debian:
> +        # The kernel postinstall hooks finally create the initrd,
> +        # among other things to prepare for boot into the target
> +        # system (e.g. running zipl on s390x)
> +        with events.ReportEventStack(
> +                name=stack_prefix + '/kernel-postinstall',
> +                reporting_enabled=True, level="INFO",
> +                description="running kernel postinstall hooks"):
> +            # re-enable update_initramfs
> +            enable_update_initramfs(cfg, target, machine)
>              reconfigure_kernel(target)
>  
>      with events.ReportEventStack(


-- 
https://code.launchpad.net/~mwhudson/curtin/+git/curtin/+merge/482866
Your team curtin developers is requested to review the proposed merge of ~mwhudson/curtin:no-explicit-update-initramfs into curtin:master.



References