openwrt/package/base-files/files/lib
Christian Marangi 0b23d3608c
base-files: add support for rootfs mount options from cmdline
Add support for configuring rootfs mount options from cmdline.

Rootfs mount options can be passed by declaring in the kernel
cmdline as much options as needed prefixed with "rootfs_mount_options."

An example usage is with rootfs with F2FS filesystem to enable
compress_algorithm to reduce flash wear by compressing the files before
writing to flash.

Example usage:
"... rootfs_mount_options.compress_algorithm=zstd ..."

To pass multiple options:
"... rootfs_mount_options.compress_algorithm=zstd rootfs_mount_options.noinline_data ..."

Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
2024-01-15 16:44:29 +01:00
..
functions base-files: ipcalc.sh: Add tests for unroutable, etc 2023-12-12 12:30:35 -07:00
preinit base-files: add support for rootfs mount options from cmdline 2024-01-15 16:44:29 +01:00
upgrade base-files: sysupgrade: Add 2 sec sleep into process KILL loop 2023-09-12 14:52:50 +02:00
functions.sh base-files: execute package's "postinst" after executing uci-defaults 2023-12-27 16:01:30 +01:00