/sysroot マウントに失敗しました

/sysroot マウントに失敗しました

カスタムカーネルを起動しようとすると、次のエラーが発生します。

[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

最後に、グラブを更新しました。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は動作しませんでした。

ベストアンサー1

おすすめ記事