public inbox for cip-dev@lists.cip-project.org
 help / color / mirror / Atom feed
* [cip-dev][isar-cip-core][RFC v2 0/6] Add factory-reset
@ 2025-05-06 12:07 Quirin Gylstorff
  2025-05-06 12:07 ` [cip-dev][isar-cip-core][RFC v2 1/6] add factory-reset initramfs hook Quirin Gylstorff
                   ` (6 more replies)
  0 siblings, 7 replies; 14+ messages in thread
From: Quirin Gylstorff @ 2025-05-06 12:07 UTC (permalink / raw)
  To: cip-dev, jan.kiszka

From: Quirin Gylstorff <quirin.gylstorff@siemens.com>


This adds an new hooks for factory-reset to the
initramfs. This hook will

- format the disk.
- In case of a encrypted disk factory reset the TPM is cleared(all keys
  are deleted)

In case of an encrypted file system the marker hook needs to be stored
in a readable location, e.g. one of the boot partitions or the efi
partition.

Changes v2:
 - make marker check a separate script
 - change data-reset to factory-reset hook

Quirin Gylstorff (6):
  add factory-reset initramfs hook
  add factory-reset-helper to set the marker file
  encrypt-data.yml: Add factory-reset information to encrypt-data
  cip-core-image: add factory-reset helper
  add factory-reset to initramfs
  Add settings for factory-reset with a separate home partition

 kas/opt/encrypt-data.yml                      |  3 +
 kas/opt/separate-home-partition.yml           |  3 +
 recipes-core/images/cip-core-image.bb         |  2 +-
 .../cip-core-initramfs/cip-core-initramfs.bb  |  1 +
 .../files/detect-marker-file                  | 33 +++++++++
 .../initramfs-factory-reset-hook/files/hook   |  7 ++
 .../files/local-top-complete                  | 67 +++++++++++++++++++
 .../files/reset-env.tmpl                      |  4 ++
 .../initramfs-factory-reset-hook_0.1.bb       | 52 ++++++++++++++
 .../factory-reset-helper_0.1.bb               | 34 ++++++++++
 .../files/set-factory-reset-marker.sh.tmpl    | 28 ++++++++
 11 files changed, 233 insertions(+), 1 deletion(-)
 create mode 100644 recipes-initramfs/initramfs-factory-reset-hook/files/detect-marker-file
 create mode 100644 recipes-initramfs/initramfs-factory-reset-hook/files/hook
 create mode 100644 recipes-initramfs/initramfs-factory-reset-hook/files/local-top-complete
 create mode 100644 recipes-initramfs/initramfs-factory-reset-hook/files/reset-env.tmpl
 create mode 100644 recipes-initramfs/initramfs-factory-reset-hook/initramfs-factory-reset-hook_0.1.bb
 create mode 100644 recipes-support/factory-reset-helper/factory-reset-helper_0.1.bb
 create mode 100644 recipes-support/factory-reset-helper/files/set-factory-reset-marker.sh.tmpl

-- 
2.47.0



^ permalink raw reply	[flat|nested] 14+ messages in thread

end of thread, other threads:[~2025-05-15 16:37 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2025-05-06 12:07 [cip-dev][isar-cip-core][RFC v2 0/6] Add factory-reset Quirin Gylstorff
2025-05-06 12:07 ` [cip-dev][isar-cip-core][RFC v2 1/6] add factory-reset initramfs hook Quirin Gylstorff
2025-05-07  8:10   ` [cip-dev][isar-cip-core][PATCH v3 " Quirin Gylstorff
2025-05-08 12:50     ` Jan Kiszka
2025-05-06 12:07 ` [cip-dev][isar-cip-core][RFC v2 2/6] add factory-reset-helper to set the marker file Quirin Gylstorff
2025-05-08 12:51   ` Jan Kiszka
2025-05-09  8:01     ` Quirin Gylstorff
2025-05-06 12:07 ` [cip-dev][isar-cip-core][RFC v2 3/6] encrypt-data.yml: Add factory-reset information to encrypt-data Quirin Gylstorff
2025-05-08 12:53   ` Jan Kiszka
2025-05-06 12:07 ` [cip-dev][isar-cip-core][RFC v2 4/6] cip-core-image: add factory-reset helper Quirin Gylstorff
2025-05-06 12:07 ` [cip-dev][isar-cip-core][RFC v2 5/6] add factory-reset to initramfs Quirin Gylstorff
2025-05-06 12:07 ` [cip-dev][isar-cip-core][RFC v2 6/6] Add settings for factory-reset with a separate home partition Quirin Gylstorff
2025-05-15 13:12 ` [cip-dev][isar-cip-core][RFC v2 0/6] Add factory-reset Quirin Gylstorff
2025-05-15 16:37   ` Jan Kiszka

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox