Jan Kundrát | e8b1811 | 2018-04-04 23:11:23 +0200 | [diff] [blame] | 1 | config BR2_PACKAGE_CZECHLIGHT_CFG_FS |
Tomáš Pecka | 68a2286 | 2022-05-30 15:52:29 +0200 | [diff] [blame] | 2 | bool "Prepare persistent /cfg partition and /etc overlay. Install required YANG models." |
Jan Kundrát | 960274e | 2018-04-09 11:20:56 +0200 | [diff] [blame] | 3 | depends on BR2_INIT_SYSTEMD |
Tomáš Pecka | 68a2286 | 2022-05-30 15:52:29 +0200 | [diff] [blame] | 4 | depends on BR2_PACKAGE_NETOPEER2 |
Jan Kundrát | e8b1811 | 2018-04-04 23:11:23 +0200 | [diff] [blame] | 5 | help |
Jan Kundrát | 960274e | 2018-04-09 11:20:56 +0200 | [diff] [blame] | 6 | 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áš Pecka | 68a2286 | 2022-05-30 15:52:29 +0200 | [diff] [blame] | 10 | This takes care of installing YANG files used by czechlight system |
| 11 | daemons into sysrepo. |
Jan Kundrát | e8b1811 | 2018-04-04 23:11:23 +0200 | [diff] [blame] | 12 | |
| 13 | if BR2_PACKAGE_CZECHLIGHT_CFG_FS |
| 14 | |
| 15 | config 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át | ff8479a | 2018-04-09 12:01:19 +0200 | [diff] [blame] | 23 | if BR2_PACKAGE_SYSREPO |
| 24 | |
| 25 | config 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 | |
| 31 | endif # BR2_PACKAGE_SYSREPO |
| 32 | |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 33 | if BR2_PACKAGE_NETOPEER2 |
Jan Kundrát | d7e9cea | 2018-05-24 18:02:46 +0200 | [diff] [blame] | 34 | |
| 35 | config CZECHLIGHT_CFG_FS_PERSIST_KEYS |
| 36 | bool "Persist host keys for OpenSSH and Netopeer2" |
| 37 | default Y |
| 38 | help |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 39 | Save OpenSSH's key material and netopeer2's SSH keys into /cfg |
Jan Kundrát | d7e9cea | 2018-05-24 18:02:46 +0200 | [diff] [blame] | 40 | |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 41 | endif # BR2_PACKAGE_NETOPEER2 |
Jan Kundrát | d7e9cea | 2018-05-24 18:02:46 +0200 | [diff] [blame] | 42 | |
Tomáš Pecka | 73720dd | 2021-02-16 20:06:02 +0100 | [diff] [blame] | 43 | if BR2_PACKAGE_SYSTEMD |
| 44 | |
| 45 | config 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 | |
| 51 | endif # BR2_PACKAGE_SYSTEMD |
| 52 | |
Jan Kundrát | e8b1811 | 2018-04-04 23:11:23 +0200 | [diff] [blame] | 53 | endif # BR2_PACKAGE_CZECHLIGHT_CFG_FS |