Forums

Skip to content

Advanced search
  • Quick links
    • Unanswered topics
    • Active topics
    • Search
  • FAQ
  • Login
  • Register
  • Board index International Gentoo Users Deutsches Forum (German) Deutsche Dokumentation
  • Search

genkernel-next systemd grub2

Dokumentation, Tipps und Tricks.
Post Reply
  • Print view
Advanced search
1 post • Page 1 of 1
Author
Message
Marlo
Veteran
Veteran
Posts: 1591
Joined: Sat Jul 26, 2003 1:41 pm

genkernel-next systemd grub2

  • Quote

Post by Marlo » Wed Sep 14, 2016 7:55 am

Ziel ist es, einen neuen Kernel und die dazu gehörige /boot/grub/grub.cfg mit nur vier
Befehlen zu erstellen

Mit dem neuen sys-apps/systemd-226-r2:0/2::gentoo hat sich die Erfordernis nach
genkernel-next ergeben. Gleichzeitig gab es eine Änderung bei grub2, die einiges
Kopfschmerzen bereitete.

Das Wichtigste vorweg. Grub:2 muss jetzt mit dem USE=multislot compiliert werde. Nur
dadurch erhält man die Befehle grub2*. Ohne multislot gibt es dann nur .z.B. grub-mkconfig,
welches die Datei /boot/grub/grub.conf ergänzt, aber eben nicht die Datei
/boot/grub/grub.cfg erstellt. Dies macht nur grub2-mkconfig.
Siehe auch https://gentoo.org/support/news-items/2 ... fault.html


Dazu muss Grub2 mit multislot gebaut werden
tux ~ # cat /etc/portage/package.use/package.use wrote: sys-boot/grub multislot
eingegeben werden.

Die Datei /etc default/grub enthält diese Einträge
tux ~ # cat /etc/default/grub wrote: GRUB_DISTRIBUTOR="Gentoo"
GRUB_DEFAULT=0
GRUB_HIDDEN_TIMEOUT=0
GRUB_HIDDEN_TIMEOUT_QUIET=true
GRUB_TIMEOUT=10
GRUB_SAVEDEFAULT=true
GRUB_DEFAULT=saved
GRUB_DEVICE=/dev/ram0
GRUB_CMDLINE_LINUX_DEFAULT="${GRUB_CMDLINE_LINUX}real_root=/dev/sda3 rootfstype=ext4 init=/usr/lib/systemd/systemd resume=/dev/sda2 real_resume=/dev/sda2"
GRUB_TERMINAL_OUTPUT=gfxterm
GRUB_GFXPAYLOAD_LINUX=keep
GRUB_BACKGROUND="/boot/grub/default-splash.png"
und genkernel.conf (von Genkernel-next)
tux ~ # cat /etc/genkernel.conf wrote: INSTALL="yes"
OLDCONFIG="yes"
MENUCONFIG="yes"
NCONFIG="no"
CLEAN="yes"
MRPROPER="no"
MOUNTBOOT="yes"
SYMLINK="yes"
SAVE_CONFIG="yes"
USECOLOR="yes"
CLEAR_CACHE_DIR="yes"
POSTCLEAR="1"
MAKEOPTS="-j7"
LVM="no"
LUKS="no"
GPG="no"
DMRAID="no"
BUSYBOX="yes"
UDEV="yes"
MDADM="no"
ISCSI="no"
E2FSPROGS="yes"
FIRMWARE="yes"
FIRMWARE_DIR="/lib/firmware"
FIRMWARE_FILES="radeon/JUNIPER_me.bin radeon/JUNIPER_pfp.bin radeon/JUNIPER_rlc.bin radeon/JUNIPER_smc.bin radeon/CYPRESS_uvd.bin rtl_nic/rtl8168e-1.fw dvb-fe-tda10071.fw"
BOOTLOADER="grub2"
TMPDIR="/var/tmp/genkernel"
BOOTDIR="/boot"
GK_SHARE="${GK_SHARE:-/usr/share/genkernel}"
CACHE_DIR="/var/cache/genkernel"
DISTDIR="/var/lib/genkernel/src"
LOGFILE="/var/log/genkernel.log"
LOGLEVEL=5
DEFAULT_KERNEL_SOURCE="/usr/src/linux"
KNAME="genkernel"
ALLRAMDISKMODULES="1"
COMPRESS_INITRD_TYPE="best"
REAL_ROOT="/dev/sda3"
Die einzelnen Angaben in den beiden configs müssen natürlich an das jeweilige System angepasst werden.

Mit den Befehlen:

Code: Select all

eselect kernel list

eselect kernel set

zcat /proc/config.gz > /usr/src/linux/.config

genkernel all
wird der neue Kernel einschließlich der /boot/grub/grub.cfg neu gebaut.
Einfacher geht es nicht.
------------------------------------------------------------------
http://radio.garden/
Top
Post Reply
  • Print view
1 post • Page 1 of 1

Return to “Deutsche Dokumentation”

Jump to
  • Assistance
  • ↳   News & Announcements
  • ↳   Frequently Asked Questions
  • ↳   Installing Gentoo
  • ↳   Multimedia
  • ↳   Desktop Environments
  • ↳   Networking & Security
  • ↳   Kernel & Hardware
  • ↳   Portage & Programming
  • ↳   Gamers & Players
  • ↳   Other Things Gentoo
  • ↳   Unsupported Software
  • Discussion & Documentation
  • ↳   Documentation, Tips & Tricks
  • ↳   Gentoo Chat
  • ↳   Gentoo Forums Feedback
  • ↳   Duplicate Threads
  • International Gentoo Users
  • ↳   中文 (Chinese)
  • ↳   Dutch
  • ↳   Finnish
  • ↳   French
  • ↳   Deutsches Forum (German)
  • ↳   Diskussionsforum
  • ↳   Deutsche Dokumentation
  • ↳   Greek
  • ↳   Forum italiano (Italian)
  • ↳   Forum di discussione italiano
  • ↳   Risorse italiane (documentazione e tools)
  • ↳   Polskie forum (Polish)
  • ↳   Instalacja i sprzęt
  • ↳   Polish OTW
  • ↳   Portuguese
  • ↳   Documentação, Ferramentas e Dicas
  • ↳   Russian
  • ↳   Scandinavian
  • ↳   Spanish
  • ↳   Other Languages
  • Architectures & Platforms
  • ↳   Gentoo on ARM
  • ↳   Gentoo on PPC
  • ↳   Gentoo on Sparc
  • ↳   Gentoo on Alternative Architectures
  • ↳   Gentoo on AMD64
  • ↳   Gentoo for Mac OS X (Portage for Mac OS X)
  • Board index
  • All times are UTC
  • Delete cookies

© 2001–2026 Gentoo Foundation, Inc.

Powered by phpBB® Forum Software © phpBB Limited

Privacy Policy