[External] how to wipe /var /etc during upgrading
Jian Zhang
zhangjian.3032 at bytedance.com
Tue Jun 3 21:45:33 AEST 2025
Hi Yang;
The simplest way is to execute:
~# > /run/initramfs/whitelist && reboot,
For the main logic, please refer to the vars `do_save` and `whitelist`
https://github.com/openbmc/openbmc/blob/1da9f898e1ec4d24d2e9229c56dd2495e505e485/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-init.sh#L320
https://github.com/openbmc/openbmc/blob/1da9f898e1ec4d24d2e9229c56dd2495e505e485/meta-phosphor/recipes-phosphor/initrdscripts/files/obmc-update.sh#L183C1-L184C1
Jian.
> From: "Yang Zhang"<yang.zhang.wz at gmail.com>
> Date: Tue, Jun 3, 2025, 19:22
> Subject: [External] how to wipe /var /etc during upgrading
> To: <openbmc at lists.ozlabs.org>
> Hi all
>
>
> I used scp image-bmc to /run/initramfs to upgrade the BMC, but found that the configurations under /etc still exist after the upgrade. How can I upgrade /etc together during the process?
>
> --
> best regards
> yang
More information about the openbmc
mailing list