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 | e8b1811 | 2018-04-04 23:11:23 +0200 | [diff] [blame] | 30 | endif # BR2_PACKAGE_CZECHLIGHT_CFG_FS |