• genkernel on gentoo

    From Benny Pedersen@2:230/0 to All on Fri Oct 5 20:50:40 2018
    Hello All!

    i have now for the first time started with no .config in /usr/src/linux for this kernel version, it took long to build, but it worked :)

    only left is to find a way to tell genkernel.conf to add LOG target to make shorewall work, it start with a error that this is missing in my current kernel, wish i did know how to add this to genkernel.conf for adding this so it
    will have this enabled for all future gentoo kernel

    ----- genkernel.conf begins -----
    # Configuration file for genkernel

    # ===============LINODE MODULES===============
    # Include modules necessary for booting on Linode platform
    MODULES_KVM="virtio virtio_ring virtio_scsi virtio_net virtio_pci ata_generic ata_piix"

    ----- genkernel.conf ends -----

    so how do i know module name for LOG target ?

    is it just grep from lsmod, or find name in .config ?


    Regards Benny

    ... there can only be one way of life, and it works :)

    --- Msged/LNX 6.1.2 (Linux/4.18.12-gentoo (x86_64))
    * Origin: I will always keep a PC running CPM 3.0 (2:230/0)
  • From Alexey Vissarionov@2:5020/545 to Benny Pedersen on Sat Oct 6 11:44:00 2018
    Good ${greeting_time}, Benny!

    05 Oct 2018 20:50:40, you wrote to All:

    so how do i know module name for LOG target ?
    is it just grep from lsmod, or find name in .config ?

    gremlin@nb:~ > zcat /proc/config.gz | grep '_NF.*LOG'
    CONFIG_NF_LOG_COMMON=y
    # CONFIG_NF_LOG_NETDEV is not set
    CONFIG_NETFILTER_XT_TARGET_NFLOG=y
    # CONFIG_NF_LOG_ARP is not set
    CONFIG_NF_LOG_IPV4=y
    CONFIG_NF_LOG_IPV6=y


    --
    Alexey V. Vissarionov aka Gremlin from Kremlin
    gremlin.ru!gremlin; +vii-cmiii-cmlxxvii-mmxlviii

    ... that's why I really dislike fools.
    --- /bin/vi
    * Origin: http://openwall.com/Owl (2:5020/545)
  • From Benny Pedersen@2:230/0 to Alexey Vissarionov on Sun Oct 7 10:41:40 2018
    Hello Alexey!

    06 Oct 2018 11:44, Alexey Vissarionov wrote to Benny Pedersen:

    so how do i know module name for LOG target ?
    is it just grep from lsmod, or find name in .config ?

    gremlin@nb:~ > zcat /proc/config.gz | grep '_NF.*LOG' CONFIG_NF_LOG_COMMON=y
    # CONFIG_NF_LOG_NETDEV is not set
    CONFIG_NETFILTER_XT_TARGET_NFLOG=y
    # CONFIG_NF_LOG_ARP is not set
    CONFIG_NF_LOG_IPV4=y
    CONFIG_NF_LOG_IPV6=y

    missed 2 last ones

    save the pipes with

    zgrep NF.*LOG /proc/config.gz

    ----- config begins -----
    CONFIG_LOG_BUF_SHIFT=17
    CONFIG_LOG_CPU_MAX_BUF_SHIFT=12
    CONFIG_PRINTK_SAFE_LOG_BUF_SHIFT=13
    # CONFIG_X86_MCELOG_LEGACY is not set
    # CONFIG_ACPI_EXTLOG is not set
    CONFIG_NETFILTER_NETLINK_LOG=y
    CONFIG_NF_LOG_COMMON=y
    CONFIG_NF_LOG_NETDEV=y
    CONFIG_NFT_LOG=y
    CONFIG_NETFILTER_XT_TARGET_LOG=y
    CONFIG_NETFILTER_XT_TARGET_NFLOG=y
    CONFIG_NF_LOG_ARP=y
    CONFIG_NF_LOG_IPV4=y
    CONFIG_NF_LOG_IPV6=y
    CONFIG_NF_LOG_BRIDGE=y
    CONFIG_BRIDGE_EBT_LOG=y
    CONFIG_BRIDGE_EBT_NFLOG=y
    CONFIG_SCSI_LOGGING=y
    # CONFIG_SCSI_BUSLOGIC is not set
    # CONFIG_SCSI_QLOGIC_1280 is not set
    # CONFIG_DM_LOG_USERSPACE is not set
    # CONFIG_DM_LOG_WRITES is not set
    # CONFIG_FUSION_LOGGING is not set
    CONFIG_NET_VENDOR_QLOGIC=y
    CONFIG_MOUSE_PS2_LOGIPS2PP=y
    # CONFIG_JOYSTICK_ANALOG is not set
    # CONFIG_DRM_ANALOGIX_ANX78XX is not set
    # CONFIG_LOGO is not set
    CONFIG_XEN_MCE_LOG=y
    CONFIG_CONSOLE_LOGLEVEL_DEFAULT=7
    CONFIG_MESSAGE_LOGLEVEL_DEFAULT=4
    ----- config ends -----


    Regards Benny

    ... there can only be one way of life, and it works :)

    --- Msged/LNX 6.1.2 (Linux/4.18.8-x86_64-linode117 (x86_64))
    * Origin: I will always keep a PC running CPM 3.0 (2:230/0)