build lfs-12.2-systemd on ubuntu 24.04

Building LFS-12.2-systemd on Ubuntu 24.04

Here are my system specifications:

  • OS: Ubuntu 24.04.2 LTS (Noble Numbat)
  • LFS Version: 12.2-systemd, published on September 1st, 2024
  • CPU: i7-6700

Tips for Compiling

  • Error: make[2]: autogen: No such file or directory
    Solution: Install autogen with sudo apt-get install autogen and try again.

  • Error: Makefile: "2585:" do-check Error 2 while running make check, caused by runtest
    Solution: Install dejagnu with sudo apt-get install dejagnu and try again.

Tip for Chapter 10.4: Using GRUB to Set Up the Boot Process

GRUB 2.x is included with the Ubuntu installation. You can append the following to /etc/grub.d/40_custom:

menuentry "GNU/Linux, Linux 6.10.5-lfs-12.2-systemd" {
        linux   /boot/vmlinuz-6.10.5-lfs-12.2-systemd root=/dev/sda3 ro
}
  • Replace 6.10.5 with your compiled kernel version.
  • Replace sda3 with the partition where you mounted the LFS root. If your disk is an M.2 SSD, it may look something like nvme0n1p1.

You may also need to modify file /etc/default/grub:

  • Comment out GRUB_TIMEOUT_STYLE=hidden.
  • Set GRUB_TIMEOUT=5 to see the GRUB selection menu after reboot.
#GRUB_TIMEOUT_STYLE=hidden
GRUB_TIMEOUT=5

Trouble with the Network/Downloading source code?

You can obtain all the source files in a single zipped file from here. Verify the checksum and proceed at your own risk.

posted @ 2025-02-19 00:25  隔壁老王python  阅读(61)  评论(0)    收藏  举报