[Gentoo] Gentoo Handbook: Installation (5) Configuring the Linux kernel

2022. 6. 24. 15:46·💻 Study/Linux 리눅스
728x90

(manual 이 아닌) genkernel을 사용해 자동으로 Linux kernel을 빌드하고 설치해보자.

Installing the sources

적절한 kernel 소스를 선택하고 설치한다.

(chroot) root # emerge --ask sys-kernel/gentoo-sources

먼저, 모든 설치된 kernel 목록을 확인하자

(chroot) root # eselect kernel list
Available kernel symlink targets:
  [1]   linux-5.15.19-gentoo
한 개뿐이다. 의심하지 마라. 한 개 설치했으면 한 개만 있다.

linux라 불리는 symbolic link를 생성한다.

(chroot) root # eselect kernel set 1
(chroot) root # ls -l /usr/src/linux
lrwxrwxrwx    1 root   root    12 Oct 13 11:04 /usr/src/linux -> linux-5.15.19-gentoo
📌 Manual Configuration이 아닌 Alternative: Using genkernel 로 넘어간다.

Alternative: Using genkernel

먼저, sys-kernel/genkernel을 설치한다. (emerge)

(chroot) root # emerge --ask sys-kernel/genkernel

다음으로, /etc/fstab 파일을 수정하여

(chroot) root #nano -w /etc/fstab

/boot 디렉토리의 mountpoint를 설정한다.

/dev/sda1       /boot    ext4    defaults        0 2

(각 구분은 tab으로 해준다. 0과 2 사이는 띄어쓰기)

이제, kernel source를 컴파일 한다.

(chroot) root # genkernel all
(chroot) root # ls /boot/vmlinu* /boot/initramfs*

Kernel modules

모듈 설정하는 과정인데, 안해도 된다.

728x90
저작자표시 (새창열림)

'💻 Study > Linux 리눅스' 카테고리의 다른 글

[Gentoo] Gentoo Handbook: Installation (7) Installing tools  (0) 2022.07.12
[Gentoo] Gentoo Handbook: Installation (6) Configuring the system  (0) 2022.06.29
[Gentoo] Gentoo Handbook: Installation (4) Installing base system  (0) 2022.05.18
[Gentoo] Gentoo Handbook: Installation (3) Installing stage 3  (0) 2022.05.17
[Gentoo] Gentoo Handbook: Installation (2) Preparing the disks  (0) 2022.03.07
'💻 Study/Linux 리눅스' 카테고리의 다른 글
  • [Gentoo] Gentoo Handbook: Installation (7) Installing tools
  • [Gentoo] Gentoo Handbook: Installation (6) Configuring the system
  • [Gentoo] Gentoo Handbook: Installation (4) Installing base system
  • [Gentoo] Gentoo Handbook: Installation (3) Installing stage 3
soyang.
soyang.
AI/Agent/개발 지식 Archive.
  • soyang.
    소소한 코딩일지
    soyang.
  • 전체
    오늘
    어제
  • 링크

    • Github 🐾
    • 포트폴리오 📓 (리뉴얼중)
    • LinkedIn 👩🏻‍💼
  • 공지사항

    • 소소한 코딩일지
  • 블로그 메뉴

    • 방명록
    • 분류 전체보기 (181)
      • 🚩 목표 & 회고 (9)
      • 📓 Papers (10)
      • 🧇 Algorithm (44)
        • 이론 (1)
        • LeetCode (2)
        • 프로그래머스 (30)
        • 백준 (11)
      • 💻 Study (47)
        • 🤖 AI 인공지능 (3)
        • Python 파이썬 (3)
        • Docker 도커 (4)
        • 웹 (20)
        • 안드로이드 (2)
        • JAVA 자바 (1)
        • Firebase (3)
        • Linux 리눅스 (10)
      • 🍪 Projects (2)
      • 🎒 학교 (44)
        • 대학원 도비 (2)
        • 21 동계 모각코: 슈붕팥붕 (13)
        • 21 하계 모각코: 와팬호 (13)
        • 20 동계 모각코: 와팬호 (13)
      • 활동들 (16)
        • 인프런 대학생 LEAF 2기 (9)
        • 2021 Silicon Valley Online .. (7)
  • 태그

    노마드코더
    인프런대학생Leaf
    코딩테스트
    Gentoo
    모각코
    공부
    Artificial Intelligence
    백준
    programmers
    React
    Linux
    error
    알고리즘스터디
    Ai
    리액트
    Python
    프로그래머스
    목표
    알고리즘
    Algorithm
  • 최근 댓글

  • hELLO· Designed By정상우.v4.10.3
soyang.
[Gentoo] Gentoo Handbook: Installation (5) Configuring the Linux kernel
상단으로

티스토리툴바