Commit Graph

83 Commits

Author SHA1 Message Date
Thomas Trepl
165314a9c1 Automatic merge of trunk into multilib 2023-06-08 00:30:09 +02:00
Pierre Labastie
6256b16baf Kernel: IPV6 only appears if TCP/IP selected
Report by wen zhang.
Also fix formatting.
2023-06-07 08:25:45 +02:00
Thomas Trepl
fef648d8d4 Automatic merge of trunk into multilib 2023-03-22 00:30:13 +01:00
Xi Ruoyao
d186249a44
kernel: [revision="systemd"] Disable CONFIG_PSI_DEFAULT_DISABLED
systemd-oomd needs PSI so it does not make sense to disable it by
default.
2023-03-21 15:38:56 +08:00
Thomas Trepl
b5b704a30c Automatic merge of trunk into multilib 2023-03-12 11:36:30 +01:00
Bruce Dubbs
c6fa6912e1 Update a link 2023-03-11 23:11:16 -06:00
Douglas R. Reno
681e11a0b6 Typos from rhubarbpieguy 2023-03-11 19:04:09 -06:00
Thomas Trepl
31e6ccb2cb Automatic merge of trunk into multilib 2023-03-12 00:30:15 +01:00
Xi Ruoyao
57ccb5b97f
kernel: Fix a typo
"parition".
2023-03-11 22:05:26 +08:00
Bruce Dubbs
d94339982d Add kernel configureation introduction.
Add an <important> note as an introduction to configuring the kernel.
2023-03-10 18:46:52 -06:00
Thomas Trepl
db84777ce9 Automatic merge of trunk into multilib 2023-03-11 00:30:10 +01:00
Xi Ruoyao
0bf56aadbd
kernel: Some adjustments
- Mention NVME.
- Mention PAE (CONFIG_HIGHMEM64G) for 32-bit.
- Don't repeat the link to BLFS kernel config index twice on SysV.
  And don't display the long URL for it.
- Emphasis that BLFS UEFI kernel config is needed even if you'll use the
  UEFI bootloader of the host distro.
2023-03-10 18:53:48 +08:00
Xi Ruoyao
1026270951
Revert "kernel: Use <caution> for make defconfig and..."
This reverts commit d0a9bda4e6.

"Don't change anything enabled by defconfig" seems too strong.
2023-03-10 18:53:48 +08:00
Xi Ruoyao
34f1344072
Revert "Suggest make localmodconfig for kernel"
This reverts commit de679165f9.

localmodconfig does not work very well.  It can only *un*select things
already enabled as modules if the module is not loaded by the host.  It
won't select anything new, nor unselect unneeded things already set to
"y" instead of "m".

Maybe you think we can copy .config from a "mainstream" distro
(producing a highly modular kernel) and use "make localmodconfig", but
when we tested it with a Debian host kernel config, the resulted kernel
refuses to boot.

"make allmodconfig && make localmodconfig" does not work well either:
"allmodconfig" selects many things as y (these thing are not available
as a module) but "localmodconfig" fails to unselect them.
2023-03-10 18:53:48 +08:00
Thomas Trepl
2858f02052 Automatic merge of trunk into multilib 2023-03-09 00:30:10 +01:00
Pierre Labastie
de679165f9 Suggest make localmodconfig for kernel
This is less generic than defconfig, and you can then tell
not to tweak options...
2023-03-08 22:27:34 +01:00
Thomas Trepl
ce49ad6473 Automatic merge of trunk into multilib 2023-03-08 18:17:41 +01:00
Xi Ruoyao
d0a9bda4e6
kernel: Use <caution> for make defconfig and...
tell people not to messing the options enabled by defconfig up.

Yes, I messed them up and shot my own foot.
2023-03-09 01:14:15 +08:00
Xi Ruoyao
e0fb1098a4
kernel: Recommend to disable CONFIG_EXPERT
Let's not encourage users to try tricky things and shoot their own foot.

For systemd, if CONFIG_EXPERT is disable, CONFIG_FHANDLE will be enabled
automatically.  So there is no need to enable CONFIG_EXPERT and then set
CONFIG_FHANDLE manually.
2023-03-08 11:25:38 +08:00
Thomas Trepl
aad28944bc Automatic merge of trunk into multilib 2023-01-02 11:59:57 +01:00
Pierre Labastie
c7f74cdbb6 Typo 2023-01-02 08:02:24 +01:00
Thomas Trepl
41631283cb Automatic merge of trunk into multilib 2023-01-02 00:30:12 +01:00
David Bryant
8190ca0715 Clarify some things, correct grammatical & idiomatic errors. 2023-01-01 17:15:09 -06:00
Thomas Trepl (Moody)
c093e6b9d5 Automatic merge of trunk into multilib 2022-10-02 00:30:12 +02:00
Xi Ruoyao
f427ba2336
kernel: adjust the instruction for mounting /boot
LFS and the host may use different /boot configuration, so do not assume
they'll share a /boot partition (two different /boot partition or only one
with separate /boot are possible).
2022-09-25 15:16:23 +08:00
Xi Ruoyao
dbab2a4519
kernel: add CONFIG_FRAMEBUFFER_CONSOLE, and mention CONFIG_DRM_FBDEV_EMULATION
Is there anyone using a blind system with serial console now? :)
2022-09-22 12:34:27 +08:00
Bruce Dubbs
16cd09633e Adjust instructions for /dev/shm when creating virtual filesystems.
Some host create /dev/shm as a tmpfs.  Some have is as
a symlink to a location in another directory.  This
change handles both cases.

The change to the sysV bootscripts now creates /dev/shm
as a separate tmpfs from /run.  This makes LFS sysV and
systemd versions treat /dev/shm the same.
2022-09-20 12:20:58 -05:00
Thomas Trepl (Moody)
c49c1fb77f Automatic merge of trunk into multilib 2022-09-12 00:30:10 +02:00
Xi Ruoyao
e5aa02fe17
kernel: enable ASLR and SSP
It does not make too much sense to protect the userspace with PIE+ASLR
and SSP but leave the kernel alone...
2022-09-11 12:09:18 +08:00
Xi Ruoyao
a710d35e1f
Revert "linux kernel: disable CONFIG_USERFAULTFD to avoid CVE-2022-2590 for now"
This reverts commit 098f4de336.

CVE-2022-2590 is fixed in Linux >= 5.19.6.
2022-09-11 12:01:31 +08:00
Thomas Trepl (Moody)
b92cf89b16 Automatic merge of trunk into multilib 2022-08-27 00:30:11 +02:00
Xi Ruoyao
5353a1948f
grub: add a note about filesystem UUID and partition UUID usage
Text only change.
2022-08-26 20:30:29 +08:00
Thomas Trepl (Moody)
d8c9a43f29 Automatic merge of trunk into multilib 2022-08-26 00:30:10 +02:00
Xi Ruoyao
feed7fea36
linux kernel: reword description for CONFIG_X86_X2APIC 2022-08-25 01:05:55 +08:00
Xi Ruoyao
098f4de336
linux kernel: disable CONFIG_USERFAULTFD to avoid CVE-2022-2590 for now 2022-08-24 16:42:49 +08:00
Xi Ruoyao
83b86449a1
linux kernel: enable CONFIG_X86_X2APIC
It's recommended for CVE-2022-21233 mitigation.  And, if the BIOS has
enabled x2APIC but CONFIG_X86_X2APIC=n, the kernel will panic on boot.

If x2APIC is disabled or not available, the kernel with
CONFIG_X86_X2APIC=y can still boot normally.

No need to tag anything again because interrupt handling cannot affect
userspace.
2022-08-24 16:42:48 +08:00
Thomas Trepl (Moody)
588c7a0492 Merge upstream 2022-05-11 09:22:07 +02:00
Xi Ruoyao
ed2bec7dd6
kernel: disable CONFIG_WERROR
The help of this options says:

"However, if you have a new compiler with ..., you may need to disable
this config option in order to successfully build the kernel."

As we are having state-of-art GCC-12, and Linux-5.18 release candidate
FTBFS with GCC-12 and CONFIG_WERROR=y [1], and <rant>the kernel developers
are making stupid and meaningless discussion instead of fixing the building
failure</rant> [2], I don't think enabling this option makes any sense
building LFS.

[1]:https://lkml.org/lkml/2022/4/14/1676
[2]:https://lkml.org/lkml/2022/4/21/254
2022-05-09 16:32:19 +08:00
Thomas Trepl (Moody)
65ac2fdf48 Automatic merge of trunk into multilib 2022-04-22 05:45:10 +02:00
Xi Ruoyao
e286d8db14
decorate the references to root and lfs user
The references already correctly decorated are not changed because "if
it's not broken don't fix it".
2022-04-21 14:12:43 +08:00
Thomas Trepl (Moody)
acd14bc9f5 Automatic merge of trunk into multilib 2022-03-23 05:45:10 +01:00
Pierre Labastie
6ad4730862 Fix kernel config to mount the devtmpfs before boot
Also make the order and the layout the same as in menu.
2022-03-22 22:03:33 +01:00
Thomas Trepl (Moody)
53beb36860 Automatic merge of trunk into multilib 2022-02-28 05:45:10 +01:00
Douglas R. Reno
68550bbdee Kernel (systemd): Add CONFIG_MEMCG as required (systemd-oomd). 2022-02-27 16:10:44 -06:00
Douglas R. Reno
18d4d6d2d7 Do a minor reword in networkd.xml and move Firmware Drivers to the
Device Drivers section in the systemd kernel configuration.
2022-02-26 23:18:28 -06:00
Thomas Trepl (Moody)
aa95507be6 Automatic merge of trunk into multilib 2022-01-14 05:45:10 +01:00
Douglas R. Reno
c8df034e5f Fix CVE-2021-3997 in systemd. 2022-01-13 15:16:37 -06:00
Thomas Trepl (Moody)
bb2febd46a Automatic merge of trunk into multilib 2022-01-04 05:45:10 +01:00
Douglas R. Reno
d21ec2fcbb systemd: Add CONFIG_PSI to the kernel configuration to get systemd-oomd
to work.

Note that it just skips bringing systemd-oomd up when not present, and
does not fail the startup process.
2022-01-03 12:03:45 -06:00
Thomas Trepl (Moody)
0fd2370f61 Automatic merge of trunk into multilib 2022-01-01 05:45:10 +01:00