lkml.org 
[lkml]   [2020]   [Apr]   [14]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
    /
    Date
    From
    SubjectRe: [PATCH v2 0/3] support setting sysctl parameters from kernel command line
    Hi Vlastimil,

    On Tue, 14 Apr 2020 13:32:19 +0200
    Vlastimil Babka <vbabka@suse.cz> wrote:

    > This series adds support for something that seems like many people always
    > wanted but nobody added it yet, so here's the ability to set sysctl parameters
    > via kernel command line options in the form of sysctl.vm.something=1

    Sounds good. And would you consider to use the bootconfig instead of (or
    in addition to) the kernel command line, because it is too short to describe
    the sysctl options?

    With the bootconfig, you can describe the sysctl parameters in an
    independent file as same as /etc/sysctl.conf. It is easy to convert
    form sysctl.conf to bootconfig because bootconfig format is simply
    enhanced structured sysctl.conf :). What we just need is;

    (echo "sysctl {"; cat "/etc/sysctl.conf"; echo "}") >> sysctl.bconf
    bootconfig -a sysctl.bconf /boot/initrd.img

    Even with only your patch, since bootconfig can pass the options which
    start with "kernel." prefix to kernel command line, so;

    (echo "kernel.sysctl {"; cat "/etc/sysctl.conf"; echo "}") >> sysctl.bconf
    bootconfig -a sysctl.bconf /boot/initrd.img

    should work.

    Thank you,


    --
    Masami Hiramatsu <mhiramat@kernel.org>

    \
     
     \ /
      Last update: 2020-04-15 05:25    [W:2.943 / U:23.696 seconds]
    ©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site