base-files: add support for rootfs mount options from cmdline
authorChristian Marangi <ansuelsmth@gmail.com>
Sat, 16 Sep 2023 15:16:04 +0000 (17:16 +0200)
committerChristian Marangi <ansuelsmth@gmail.com>
Mon, 15 Jan 2024 15:44:29 +0000 (16:44 +0100)
commit0b23d3608c1f01f9dc4d042b0217ee0291c0fd70
tree3a03ab5e4f09023ed6f29c204b77478aed9ea3f1
parentba9c1b131432b6afbe96521eba949ba53df3ee95
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>
package/base-files/files/lib/preinit/80_mount_root