当尝试启动自定义内核时,我收到以下错误:
[FAILED] Failed to mount /sysroot
[DEPEND] Dependency failed for initrd root file system.
[DEPEND] Dependency failed for Mounts configured in the Real Root.
You are in emergency mode. Afeter logging in, type "journalctl -xb" to view system logs, "systemctl reboot" to reboot, "systemctl default" or "exite" to bot into default mode.
我只编译内核6.5-rc2:
sudo make -j16
然后我安装模块:
sudo make modules_install
然后在 boot/x86 上构建 bzImage,我移动到 /boot:
cp -v arch/x86/boot/bzImage /boot/vmlinuz-linux6.5.2
我制作了新的 mkinitcpio:
# mkinitcpio preset file for the 'linux' package
#ALL_config="/etc/mkinitcpio.conf"
ALL_kver="/boot/vmlinuz-linux6.5.2"
ALL_microcode=(/boot/*-ucode.img)
PRESETS=('default' 'fallback')
#default_config="/etc/mkinitcpio.conf"
default_image="/boot/initramfs-linux6_5_2.img"
#default_uki="/efi/EFI/Linux/arch-linux.efi"
#default_options="--splash /usr/share/systemd/bootctl/splash-arch.bmp"
#fallback_config="/etc/mkinitcpio.conf"
fallback_image="/boot/initramfs-linux6_5_2-fallback.img"
#fallback_uki="/efi/EFI/Linux/arch-linux-fallback.efi"
fallback_options="-S autodetect"
我创建 initramfs:
sudo mkinitcpio -p linux6_5_2
最后我更新了 grub:sudo grub-mkconfig -o /boot/grub/grub.cfg
虽然,当我尝试启动 kernel6.5-rc2 时,我收到上面提到的错误
这是我的 lsblk:
sda 8:0 0 238,5G 0 disk
- sda1 8:1 0 93,1G 0 part /boot
- sda2 8:2 0 144,4G 0 part /
zram0 254:0 0 3,8G 0 disk [SWAP]
这是我的 arch.conf:
## This is just an example config file.
## Please edit the paths and kernel parameters according to your system.
title Arch Linux
linux /vmlinuz-linux
initrd /initramfs-linux.img
options root=/dev/sda2 PARTUUID=XXXX rootfstype=ext4 add_efi_memmap
我认为重要的是我看到了我的journalctl并且没有关于kernel6.5-rc2的任何信息
所以,我尝试用另一个内核重新编译.config
......我从内核 6.5-rc1 中获取配置(我也编译它并且它在我的机器上工作),但 6.5-rc2 不起作用。