openwrt-6.x/package/base-files/files/lib/preinit
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
..
02_default_set_state
02_sysinfo
10_indicate_failsafe
10_indicate_preinit base-files: Do not break on non-eth ports 2023-05-09 22:54:38 +02:00
30_failsafe_wait
40_run_failsafe_hook
50_indicate_regular_preinit
70_initramfs_test
80_mount_root base-files: add support for rootfs mount options from cmdline 2024-01-15 16:44:29 +01:00
99_10_failsafe_login
99_10_run_init