Gentoo without initramfs Removed the initrd/initramfs option and re-run make. As far as I understood what I read I am better off without initramfs, because the boot process is quicker and there is the risk to make a mistake, when updating kernel+initramfs, which results in problems on next reboot. Here's the error from no initramfs boot: http://i. Jan 2, 2015 · Optional: Unified Kernel Image. The exceptions are things like booting to an LVM volume, an encrypted volume, or an md RAID volume. without initramfs, I keep getting asked where the root device is (it asks for a UUID). cfg generation seems to be OK. ) Sep 25, 2024 · Using genkernel. adding "rootdelay=10" as a kernel parameter. Strip down your kernel config, OR 2. Jul 5, 2020 · Now the kernel boots fine, but because I used genkernel I now have a initramfs. Apr 29, 2017 · I’m using Gentoo Linux and can confirm that you can achieve a bootable kernel without initrd/initramfs. The initramfs usually takes care of mounting important file systems (by loading the proper kernel modules and drivers) such as /usr or /var, preparing the /dev file structure, etc. It's also possible to embed the initramfs directly into the kernel. I'm quite sure that the kernel can boot without initramfs on my system, I have a very simple partition lay-out. d file. cfg" from GRUB. Some form of initramfs is required to mount systems using Full Disk Encryption. Why? Apr 2, 2020 · Posted: Thu Apr 02, 2020 12:33 am Post subject: Full Disk Encryption WITHOUT Initramfs or Grub How to (Secure-) Boot the kernel straight from UEFI(-bios) into a fully encrypted root-partition with plain dm-crypt encryption without using initramfs/initrd or grub. It stil build the full kernel and take 20 min on my laptop. Apr 2, 2020 · Posted: Thu Apr 02, 2020 12:33 am Post subject: Full Disk Encryption WITHOUT Initramfs or Grub How to (Secure-) Boot the kernel straight from UEFI(-bios) into a fully encrypted root-partition with plain dm-crypt encryption without using initramfs/initrd or grub. Sep 18, 2022 · I use gentoo-kernel without initramfs . Using grub, which is able to load kernel from LVM root but getting kernel… According to the guides I've found it's enough to specify in the kernel command line ( CONFIG_CMDLINE) the root root=/dev/nvme0n1p2, the filesystem rootfstype=ext4 and that's it. There are countless ways to make an initramfs. Jul 5, 2017 · Posted: Wed May 18, 2016 11:34 pm Post subject: [SOLVED]Booting from USB without initramfs I tried to setup gentoo to boot from a usb flash-drive and resulting with semi-success. Gentoo's kernel building utility, Genkernel, can be used to generate an initramfs. Aug 11, 2024 · For some users, the initramfs worth creating manually, even if only to understand how it works, and what is happening inside. The main counterargument is the effort. Since the kernel command line is embedded into the unified kernel image, it should be specified before generating the unified kernel image (see be Jul 30, 2024 · The kernel and initramfs generated by genkernel goes well without tinkering. . I'm trying to boot gentoo without initramfs at all. Advantages include the initramfs being verified by Secure Boot when it verifies the kernel, a simplified boot process and EFI partition, and it being easier to load the kernel by hand (because callers no longer need to specify the initramfs . Otherwise udev will need to be added to the initramfs as well. But i use a stabel kernel . Users who use an encrypted file system will also have the initramfs ask them for the passphrase Dec 28, 2024 · Manual initramfs creation. I setup /etc/kernel/config. Unrelated: Depending on which features of LVM you are really using, it might be nicer to just use btrfs. So it wont get update weekly # CONFIG_DRM_NOUVEAU is not set # CONFIG_I2C_NVIDIA_GPU is not set # CONFIG_FB_SIMPLE is not set Jan 20, 2024 · This time, when I ran make install, no initramfs file was created and because it wasn't there, the proper grub config file was created. If there is no initramfs, the kernel may be able to directly mount the root filesystem, which could be enough for the init to start and do its thing. If you have a question as well then lemme know in the comments section below. Oct 13, 2020 · Now I am going to reinstall gentoo and I was wondering about the initramfs. I use default 10_linux grub. jpg May 21, 2022 · I'm trying to boot Gentoo (no initramfs) from a USB connected hard disk, since my internal hard disk is for work only. So, there is no initramfs file in /boot after all. First, disable udev USE flag for Plymouth (it will not display anything until udev is properly initialized). The setup is btrfs as root on a SATA SSD. Why use an initramfs. You have two choices to reach this goal: 1. Nov 25, 2024 · Essentially, the initramfs is just there to kickstart the boot process, it gets the root mounted and starts the "real" init system, which often handles things such as additional mounts. Feb 20, 2023 · An initramfs (initial ram file system) is used to prepare Linux systems during boot before the init process starts. When creating a manual initramfs, for example using Custom Initramfs, it is possible to bundle Plymouth. With a bit of luck, one of them might work out of the box for the required use-case, and the user need not bother with how initramfs works and what it does. Feb 21, 2024 · (initramfs works by unpacking a cpio archive into what is basically a tmpfs - storing the files directly in RAM without an underlying block device - whereas initrd loads a filesystem image - ext4 or whatever - into a ramdisk which then functions just like a disk partition. I have separate /boot only. Dec 14, 2024 · Optional: Embedded initramfs. Also, this boot stuck issue appeared even when i tried multiple different filesystem types, with and without initramfs, for example, it didnt seem to matter if i was using btrfs or ext4, or ext3. There's nothing wrong with this, but when I change kernel configuration, and rebuild the kernel, I keep forgetting to install a initramfs, which results in a un-bootable system. . I've also compiled into the kernel everything that the system needs, but it won't start the init system. An initramfs is typically used to assist in the boot process. imgur. A Unified Kernel Image (UKI) combines, among other things, the kernel, the initramfs and the kernel command line into a single executable. When it comes to my laptop, the ASUS ProArt Studiobook 2023 (in case there are some UEFI settings that I can get your tips about), NVMe hard drives are not detected in the initramfs generated by genkernel, but dracut's works fine. Successfully done so on non-LVM machine. That still produced an initramfs file in /boot when make install was run. Recompiling kernel (make, make install) and grub. If you use BTRFS subvolumes, you need an initramfs. com/VlQdE22. So I followed the install guide carefully, and I was done compiling my kernel with a very minimal . d to use a minimal change on the default config for gentoo-kernel. Nov 2, 2024 · An initramfs generated by for instance dracut might also contain one. For this reason I’ve switched to using LILO as the bootloader, and a kernel suitable for booting my system without an initramfs. genkernel expects that both the kernel and initramfs are built by it, although in some cases, an initramfs built by genkernel with the kernel built by another method may work (but is discouraged). config and I make installed and make modules_installed, and installed grub and it booted up, but it was frozen after some lines, and I initially thought the kernel was the culprit so I tried both the source and binary versions of 2 different versions of gentoo-sources but it still Now the kernel boots fine, but because I used genkernel I now have a initramfs. If you're building a custom kernel for a single system, you can build almost everything possibly needed directly into the kernel without an initramfs. to run "configfile (hd0,gpt1)/grub/grub. The usual GRUB screen does loads and I select "Gentoo" (if I select Ubuntu instead, which lives in sdb2 and has initramfs, it boots fine, so I guess lack of initramfs is really biting me here. An initramfs need not be manually created. May 21, 2022 · 3. This might be helpful for people trying to do similar setup without initramfs. Adding any type of root filesystem encryption takes this complexity to another level, because some mechanism must decrypt the root filesystem so the kernel can start the init process. Previously I had: 1. Without encryption, the boot process is already very complex. Jan 7, 2025 · Prerequisites. Just to make stuff easier for me, I decided that I would try to make the kernel boot without initramfs, but so far I've been unsuccessful. I wanna get rid of initramfs. As far as i'm aware, you need the LVM tools to activate the volumes, so you can't. A universal kernel naturally needs an initramfs, and is slower to boot. Jul 5, 2023 · Posted: Tue May 09, 2023 2:25 pm Post subject: Custom kernel without initramfs cant boot Newbie here. Jan 27, 2024 · Posted: Sat Jan 27, 2024 12:12 pm Post subject: new installation, no initramfs, I am trying my second gentoo installation ever. Without initramfs and as far as I understand you wanted to build your own kernel with a smaller configuration and without initramfs (genkernel uses). Build up your config from the (minimal) default config (default config is what gentoo-sources brings with; NOT what genkernel brings with). Dec 19, 2019 · At some point I have worked on achieving a very fast startup. There are tools such as Genkernel or Dracut that can do the work. Append line has allowed me to boot using root=/dev/sdc3 without manually entering root partition. Im doing something stupid, just need to go through the kernel config very thoroughly, but i am following the handbook to the letter. Those sda are for the internal hard disk. 2. ) 4. If you specified the system root partition using kernel build-in command line or by UUID, you need an initramfs. Jan 10, 2025 · Additional boot complexity. Reboot then uname shows me kernel I used before recompilation. If your kernel is panicking then debug the problem and keep trying until it works. ciehumo rwdng vzwi kdrf lpgdo xwmuqu htd pljgv vcs urgdqi