aboutsummaryrefslogtreecommitdiff
path: root/utils/uvol/files/common.sh
Commit message (Collapse)AuthorAge
* uvol: replace with re-write in ucodeDaniel Golle2022-03-31
| | | | | | | | | | | | | | | | | | | | | | | | | Replace previous Shell draft-quality implementation of uvol with a rewrite in ucode[1]. While the new code is slightly larger, it performs much better (as we no longer fork() for parsing strings like in Shell with grep, sed and friends). Before: time uvol list -j [ ... ] real 0m 0.82s user 0m 0.13s sys 0m 0.10s After: time uvol list -j [ ... ] real 0m 0.47s user 0m 0.05s sys 0m 0.05s [1]: https://github.com/jow-/ucode Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: clean up paths and fix delayed startupDaniel Golle2022-02-18
| | | | | | | | | | | | | | * Winchester discs can take a long time to spin up which results in blockd also taking a while to complete to start. * Make sure uvol only gets started once blockd is ready. * Clean up paths (use '/tmp/run/uvol' everywhere instead of relying on the '/var' -> '/tmp' symlink) * Create 'apk' folder when initializing .meta volume. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: update to 0.6Daniel Golle2021-12-20
| | | | | | | | | | | | | | | | | | * auto-created meta volume Automatically create volume '.meta' sized 0.01% of the total space managed by uvol, the minimum size being 4 MiB. This volume should be used to keep metadata about stored volumes, such as container runtime configuration (in /var/run/uvol/.meta/uxc) or the database of installed container packages. * configurable LVM volume group Allow setting volume group to be used by uvol using UCI. This is useful on devices which do not boot off the device which should be used for uvol and hence cannot make use of autopart and physical volume detection based on kernel cmdline. Use option vg_name in uvol section of fstab UCI config package. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: move uxc persistent config volume to /var/run/uxcDaniel Golle2021-08-30
| | | | | | | | As /var/state is used for UCI state, move persistent config for uxc from /var/state/uxc to /var/run/uxc. uxc itself has already been changed to look for it there. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: update to version 0.4Daniel Golle2021-08-15
| | | | | | | | | | Create UCI fstab mount sections for existing volumes on firstboot. Introduce special handling for volumes with non-[:alnum:] prefix: - do not create UCI sections for these 'hidden' volumes - create UCI section for '.uxc' special volume with target /var/state/uxc to be used for uxc config. Signed-off-by: Daniel Golle <daniel@makrotopia.org>
* uvol: update to version 0.3Daniel Golle2021-07-25
* genrate UCI fstab configs for each volume before first 'up' * remove UCI section on volume remove * use autofs automounter for read-only volumes * try umount on 'down' * emulate hotplug events for UBI volume up/down * more robust error paths Signed-off-by: Daniel Golle <daniel@makrotopia.org>