WANTED: A trigger/hook that causes Powerwash.

34 views
Skip to first unread message

Ted

unread,
May 27, 2023, 9:13:40 PM5/27/23
to ChromiumOS Development
I think, the powerwash button might generate a file on STATE partition, before restart CROS.
Then CROS/upstart check existence of the file, then start Powerwash.
What is the file name and path? I have business with the trigger/hook? file.
Please.

Bin

unread,
May 29, 2023, 1:18:25 PM5/29/23
to ChromiumOS Development, Ted
I wanna make a hook that recognize & executed by starting/finishing of Powerwash.
The powerwash doc mentions  /mnt/stateful_partition/factory_install_reset file. ( https://www.chromium.org/chromium-os/chromiumos-design-docs/powerwash/  )
But the file looks not related with Powerwash from the Reset button in settings UI.

dragon788

unread,
May 30, 2023, 10:19:35 AM5/30/23
to Bin, ChromiumOS Development
A power wash by definition wipes all traces that existed on the system before the power wash. The only way you might be able to tell and it isn't guaranteed is by looking at the state of the NVRAM variables. I think there is a reason most of the code checks suggest only checking if developer mode is enabled and not much beyond that because most of the values are valid for any system.

It isn't something that you could trigger from userland (requires sudo), but deleting the user STATE partition triggers a Chrome OS repair which I believe is equivalent to a power wash.

--
--
Chromium OS Developers mailing list: chromiu...@chromium.org
View archives, change email options, or unsubscribe:
https://groups.google.com/a/chromium.org/group/chromium-os-dev
---
To unsubscribe from this group and stop receiving emails from it, send an email to chromium-os-d...@chromium.org.
Reply all
Reply to author
Forward
0 new messages