Add /etc/init.d and sort persistent list (#603)

Signed-off-by: Mauro Morales <mauro.morales@spectrocloud.com>
This commit is contained in:
Mauro Morales
2024-01-04 11:37:02 +01:00
committed by GitHub
parent 640402e376
commit e0ebad83e0
2 changed files with 48 additions and 46 deletions

View File

@@ -16,36 +16,37 @@ stages:
OVERLAY: "tmpfs:25%"
RW_PATHS: "/var /etc /srv"
PERSISTENT_STATE_PATHS: >-
/etc/systemd
/etc/cni
/etc/init.d
/etc/iscsi
/etc/kubernetes
/etc/modprobe.d
/etc/rancher
/etc/sysconfig
/etc/runlevels
/etc/ssh
/etc/ssl/certs
/etc/iscsi
/etc/sysconfig
/etc/systemd
/etc/zfs
/etc/cni
/etc/kubernetes
/home
/opt
/root
/snap
/var/snap
/usr/libexec
/var/log
/var/lib/containerd
/var/lib/extensions
/var/lib/rancher
/var/lib/kubelet
/var/lib/snapd
/var/lib/wicked
/var/lib/longhorn
/var/lib/cni
/var/lib/dbus
/usr/share/pki/trust
/usr/share/pki/trust/anchors
/var/lib/ca-certificates
/var/lib/cni
/var/lib/containerd
/var/lib/dbus
/var/lib/extensions
/var/lib/kubelet
/var/lib/longhorn
/var/lib/rancher
/var/lib/snapd
/var/lib/wicked
/var/log
/var/snap
PERSISTENT_STATE_BIND: "true"
- if: '[ -f "/run/cos/recovery_mode" ]'
# omit the persistent partition on recovery mode
@@ -61,33 +62,34 @@ stages:
OVERLAY: "tmpfs:25%"
RW_PATHS: "/var /etc /srv"
PERSISTENT_STATE_PATHS: >-
/etc/systemd
/etc/cni
/etc/init.d
/etc/iscsi
/etc/kubernetes
/etc/modprobe.d
/etc/rancher
/etc/sysconfig
/etc/runlevels
/etc/ssh
/etc/ssl/certs
/etc/iscsi
/etc/cni
/etc/kubernetes
/etc/sysconfig
/etc/systemd
/home
/opt
/root
/snap
/var/snap
/usr/libexec
/var/log
/var/lib/containerd
/var/lib/rancher
/var/lib/kubelet
/var/lib/snapd
/var/lib/wicked
/var/lib/longhorn
/var/lib/cni
/usr/share/pki/trust
/usr/share/pki/trust/anchors
/var/lib/ca-certificates
/var/lib/cni
/var/lib/containerd
/var/lib/kubelet
/var/lib/longhorn
/var/lib/rancher
/var/lib/snapd
/var/lib/wicked
/var/log
/var/snap
PERSISTENT_STATE_BIND: "true"
rootfs.after:
- if: '[ -r /run/cos/custom-layout.env ] && [ ! -f "/run/cos/recovery_mode" ] && [ ! -f /run/cos/live_mode ]'

View File

@@ -16,36 +16,36 @@ stages:
RW_PATHS: "/var /etc /srv"
OVERLAY: "tmpfs:25%"
PERSISTENT_STATE_PATHS: >-
/etc/systemd
/etc/cni
/etc/iscsi
/etc/kubernetes
/etc/modprobe.d
/etc/rancher
/etc/sysconfig
/etc/runlevels
/etc/ssh
/etc/ssl/certs
/etc/iscsi
/etc/sysconfig
/etc/systemd
/etc/zfs
/etc/cni
/etc/kubernetes
/home
/opt
/root
/snap
/var/snap
/usr/libexec
/var/log
/var/lib/containerd
/var/lib/extensions
/var/lib/rancher
/var/lib/kubelet
/var/lib/snapd
/var/lib/wicked
/var/lib/longhorn
/var/lib/cni
/var/lib/dbus
/usr/share/pki/trust
/usr/share/pki/trust/anchors
/var/lib/ca-certificates
/var/lib/cni
/var/lib/containerd
/var/lib/dbus
/var/lib/extensions
/var/lib/kubelet
/var/lib/longhorn
/var/lib/rancher
/var/lib/snapd
/var/lib/wicked
/var/log
/var/snap
- if: '[ -e "/run/cos/uki_install_mode" ]'
# omit everything on installer, just set the ephemeral paths
name: "Layout configuration for UKI installer"