[External] how to wipe /var /etc during upgrading
Yang Zhang
yang.zhang.wz at gmail.com
Thu Jun 5 11:13:40 AEST 2025
On Tue, Jun 3, 2025 at 7:45 PM Jian Zhang <zhangjian.3032 at bytedance.com>
wrote:
> 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
>
>
Thanks for your feedback! I will try it.
--
best regards
yang
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.ozlabs.org/pipermail/openbmc/attachments/20250605/a05b2e57/attachment.htm>
More information about the openbmc
mailing list