diff options
author | Waldemar Brodkorb <wbx@openadk.org> | 2019-09-12 12:13:47 +0200 |
---|---|---|
committer | Waldemar Brodkorb <wbx@openadk.org> | 2019-09-12 13:23:49 +0200 |
commit | c8fb7cd7f6b46b42d588eed80abd1fe6422b1896 (patch) | |
tree | 4be894b84e7d9513dc4ce84cc11ac9c48f23f7d1 /target/linux/patches/4.14.142/initramfs-nosizelimit.patch | |
parent | 364bdfb6058e001024617c6e335e5f3cd41538bf (diff) |
move kernel patches
Signed-off-by: Waldemar Brodkorb <wbx@openadk.org>
Diffstat (limited to 'target/linux/patches/4.14.142/initramfs-nosizelimit.patch')
-rw-r--r-- | target/linux/patches/4.14.142/initramfs-nosizelimit.patch | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/target/linux/patches/4.14.142/initramfs-nosizelimit.patch b/target/linux/patches/4.14.142/initramfs-nosizelimit.patch new file mode 100644 index 000000000..0e524c1d9 --- /dev/null +++ b/target/linux/patches/4.14.142/initramfs-nosizelimit.patch @@ -0,0 +1,21 @@ +diff -Nur linux-4.14.24.orig/init/do_mounts.c linux-4.14.24/init/do_mounts.c +--- linux-4.14.24.orig/init/do_mounts.c 2018-03-03 10:24:39.000000000 +0100 ++++ linux-4.14.24/init/do_mounts.c 2018-03-08 02:32:01.136927457 +0100 +@@ -604,6 +604,7 @@ + } + + static bool is_tmpfs; ++static char tmpfs_rootflags[] = "nr_blocks=0,nr_inodes=0"; + static struct dentry *rootfs_mount(struct file_system_type *fs_type, + int flags, const char *dev_name, void *data) + { +@@ -616,6 +617,9 @@ + if (IS_ENABLED(CONFIG_TMPFS) && is_tmpfs) + fill = shmem_fill_super; + ++ if (is_tmpfs) ++ data = tmpfs_rootflags; ++ + return mount_nodev(fs_type, flags, data, fill); + } + |