blob: 40e64090711346ad8df62a2a5d1286b167fc6f6d [file] [log] [blame]
Jan Kundráte8b18112018-04-04 23:11:23 +02001config BR2_PACKAGE_CZECHLIGHT_CFG_FS
Tomáš Pecka68a22862022-05-30 15:52:29 +02002 bool "Prepare persistent /cfg partition and /etc overlay. Install required YANG models."
Jan Kundrát960274e2018-04-09 11:20:56 +02003 depends on BR2_INIT_SYSTEMD
Tomáš Pecka68a22862022-05-30 15:52:29 +02004 depends on BR2_PACKAGE_NETOPEER2
Jan Kundráte8b18112018-04-04 23:11:23 +02005 help
Jan Kundrát960274e2018-04-09 11:20:56 +02006 This is required for RAUC to work properly. It creates a blank FS
7 image, configures systemd to mount it, and ensures that its contents
8 get restored to /etc at boot. The /etc is set up as a RW overlay on
9 top of a read-only rootfs.
Tomáš Pecka68a22862022-05-30 15:52:29 +020010 This takes care of installing YANG files used by czechlight system
11 daemons into sysrepo.
Jan Kundráte8b18112018-04-04 23:11:23 +020012
13if BR2_PACKAGE_CZECHLIGHT_CFG_FS
14
15config CZECHLIGHT_CFG_FS_SIZE
16 string "exact size"
17 default "128M"
18 help
19 Size of the /cfg filesystem image. This must be big enough to
20 accommodate all configuration, but small enough to fit within the
21 corresponding partition.
22
Jan Kundrátff8479a2018-04-09 12:01:19 +020023if BR2_PACKAGE_SYSREPO
24
25config CZECHLIGHT_CFG_FS_PERSIST_SYSREPO
26 bool "Persist sysrepo configuration into /cfg"
27 default Y
28 help
29 Save sysrepo's YANG files into /cfg upon changes
30
31endif # BR2_PACKAGE_SYSREPO
32
Jan Kundrát2f100fc2020-11-02 22:10:16 +010033if BR2_PACKAGE_NETOPEER2
Jan Kundrátd7e9cea2018-05-24 18:02:46 +020034
35config CZECHLIGHT_CFG_FS_PERSIST_KEYS
36 bool "Persist host keys for OpenSSH and Netopeer2"
37 default Y
38 help
Jan Kundrát2f100fc2020-11-02 22:10:16 +010039 Save OpenSSH's key material and netopeer2's SSH keys into /cfg
Jan Kundrátd7e9cea2018-05-24 18:02:46 +020040
Jan Kundrát2f100fc2020-11-02 22:10:16 +010041endif # BR2_PACKAGE_NETOPEER2
Jan Kundrátd7e9cea2018-05-24 18:02:46 +020042
Tomáš Pecka73720dd2021-02-16 20:06:02 +010043if BR2_PACKAGE_SYSTEMD
44
45config CZECHLIGHT_CFG_FS_PERSIST_NETWORK
46 bool "Persist network configuration for eth1"
47 default Y
48 help
49 Save network configuration file for eth1 into /cfg
50
51endif # BR2_PACKAGE_SYSTEMD
52
Jan Kundráte8b18112018-04-04 23:11:23 +020053endif # BR2_PACKAGE_CZECHLIGHT_CFG_FS