mbox series

[isar-cip-core,RFC,0/4] Make /home partition optional

Message ID 20250211085125.22154-1-Quirin.Gylstorff@siemens.com (mailing list archive)
Headers show
Series Make /home partition optional | expand

Message

Quirin Gylstorff Feb. 11, 2025, 8:49 a.m. UTC
From: Quirin Gylstorff <quirin.gylstorff@siemens.com>

This proposal would move /home to the /var/home and provided an symbolic
link to /home. All home directories created during user generation are
stored in /usr/share and are copied via systemd.tmpfiles to the correct
partition.

This allows to delete all content of the /home directory if necessary.

This move could interfere with existing installation and is therefore
optional in isar-cip-core.

Does somebody know of downstream layers which directly is the WKS files
from isar-cip-core?

Quirin Gylstorff (4):
  read-only-rootfs: Make IMMUTABLE_DATA_DIR configurable
  read-only-rootfs: add home partition with a variable
  add move-homedir-var package
  Move content of home to IMMUTABLE_DATA_DIR

 classes/read-only-rootfs.bbclass              | 16 ++++++++++++-
 kas/opt/home-to-var.yml                       | 21 ++++++++++++++++
 .../files/immutable-rootfs.tmpfiles           |  2 --
 .../files/immutable-rootfs.tmpfiles.tmpl      |  2 ++
 .../immutable-rootfs/immutable-rootfs_0.1.bb  |  6 ++++-
 .../files/move-homedir-var.tmpfiles.tmpl      |  3 +++
 recipes-core/move-homedir-var/files/postinst  | 20 ++++++++++++++++
 .../move-homedir-var/move-homedir-var_0.1.bb  | 24 +++++++++++++++++++
 wic/bbb-efibootguard.wks.in                   |  4 ++--
 wic/hihope-rzg2m-efibootguard.wks.in          |  5 ++--
 wic/qemu-arm64-efibootguard-secureboot.wks.in |  4 ++--
 wic/qemu-arm64-efibootguard.wks.in            |  4 ++--
 wic/qemu-riscv64-efibootguard.wks.in          |  4 ++--
 wic/x86-uefi-efibootguard-secureboot.wks.in   |  4 ++--
 wic/x86-uefi-efibootguard.wks.in              |  5 ++--
 15 files changed, 104 insertions(+), 20 deletions(-)
 create mode 100644 kas/opt/home-to-var.yml
 delete mode 100644 recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles
 create mode 100644 recipes-core/immutable-rootfs/files/immutable-rootfs.tmpfiles.tmpl
 create mode 100644 recipes-core/move-homedir-var/files/move-homedir-var.tmpfiles.tmpl
 create mode 100644 recipes-core/move-homedir-var/files/postinst
 create mode 100644 recipes-core/move-homedir-var/move-homedir-var_0.1.bb