Jan Kundrát | e8b1811 | 2018-04-04 23:11:23 +0200 | [diff] [blame] | 1 | config BR2_PACKAGE_CZECHLIGHT_CFG_FS |
Jan Kundrát | 960274e | 2018-04-09 11:20:56 +0200 | [diff] [blame] | 2 | bool "Prepare persistent /cfg partition and /etc overlay" |
| 3 | depends on BR2_INIT_SYSTEMD |
Jan Kundrát | e8b1811 | 2018-04-04 23:11:23 +0200 | [diff] [blame] | 4 | help |
Jan Kundrát | 960274e | 2018-04-09 11:20:56 +0200 | [diff] [blame] | 5 | This is required for RAUC to work properly. It creates a blank FS |
| 6 | image, configures systemd to mount it, and ensures that its contents |
| 7 | get restored to /etc at boot. The /etc is set up as a RW overlay on |
| 8 | top of a read-only rootfs. |
Jan Kundrát | e8b1811 | 2018-04-04 23:11:23 +0200 | [diff] [blame] | 9 | |
| 10 | if BR2_PACKAGE_CZECHLIGHT_CFG_FS |
| 11 | |
| 12 | config CZECHLIGHT_CFG_FS_SIZE |
| 13 | string "exact size" |
| 14 | default "128M" |
| 15 | help |
| 16 | Size of the /cfg filesystem image. This must be big enough to |
| 17 | accommodate all configuration, but small enough to fit within the |
| 18 | corresponding partition. |
| 19 | |
Jan Kundrát | ff8479a | 2018-04-09 12:01:19 +0200 | [diff] [blame] | 20 | if BR2_PACKAGE_SYSREPO |
| 21 | |
| 22 | config CZECHLIGHT_CFG_FS_PERSIST_SYSREPO |
| 23 | bool "Persist sysrepo configuration into /cfg" |
| 24 | default Y |
| 25 | help |
| 26 | Save sysrepo's YANG files into /cfg upon changes |
| 27 | |
| 28 | endif # BR2_PACKAGE_SYSREPO |
| 29 | |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 30 | if BR2_PACKAGE_NETOPEER2 |
Jan Kundrát | d7e9cea | 2018-05-24 18:02:46 +0200 | [diff] [blame] | 31 | |
| 32 | config CZECHLIGHT_CFG_FS_PERSIST_KEYS |
| 33 | bool "Persist host keys for OpenSSH and Netopeer2" |
| 34 | default Y |
| 35 | help |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 36 | 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] | 37 | |
Jan Kundrát | 2f100fc | 2020-11-02 22:10:16 +0100 | [diff] [blame] | 38 | endif # BR2_PACKAGE_NETOPEER2 |
Jan Kundrát | d7e9cea | 2018-05-24 18:02:46 +0200 | [diff] [blame] | 39 | |
Tomáš Pecka | 73720dd | 2021-02-16 20:06:02 +0100 | [diff] [blame] | 40 | if BR2_PACKAGE_SYSTEMD |
| 41 | |
| 42 | config CZECHLIGHT_CFG_FS_PERSIST_NETWORK |
| 43 | bool "Persist network configuration for eth1" |
| 44 | default Y |
| 45 | help |
| 46 | Save network configuration file for eth1 into /cfg |
| 47 | |
| 48 | endif # BR2_PACKAGE_SYSTEMD |
| 49 | |
Jan Kundrát | e8b1811 | 2018-04-04 23:11:23 +0200 | [diff] [blame] | 50 | endif # BR2_PACKAGE_CZECHLIGHT_CFG_FS |