Phosphor code updater

Vijay Khemka vijaykhemka at fb.com
Wed Sep 18 03:45:39 AEST 2019



On 9/16/19, 7:45 PM, "Lei YU" <mine260309 at gmail.com> wrote:

    On Tue, Sep 17, 2019 at 10:34 AM Vijay Khemka <vijaykhemka at fb.com> wrote:
    >
    > Hi Brad,
    >
    > I looked into code updater from phosphor-software-manager as you suggested last week. As per current implementation, it is copying all 4 partition uboot, kernel, rootfs and rwfs. I wanted to make some modification to allow user to choose whether to upgrade rwfs or not. This way, all persistent storage can be retained after upgrade as well.
    
    By default, image-rwfs is an empty image with size 0, and thus it will NOT be
    updated to rwfs partition. So by default rwfs is preserved during code update.
Then how will we get a clean install. If we want to have complete factory reset with empty rw.

Also how can we add machine name to manifest file which can be used to verify if the image is being built for same target.

    
    >
    >
    >
    > In my proposal, I will add another property named FactoryImageInstall which can be set as 1. ”true” means whole image would be installed including rwfs and 2. “false” means everything will be installed except rwfs partition. This way, old rwfs partition will be retained. This property will be under  xyz.openbmc_project.Software.Activation  interface.
    >
    >
    >
    > Please provide your opinion. I will send patch soon.
    >
    >
    >
    > Regards
    >
    > -Vijay
    



More information about the openbmc mailing list