|
这个问题已经很久了,不知道从什么时候开始有的
yaourt -S kernel26运行后有如下显示
>>> Updating module dependencies. Please wait ...
>>> MKINITCPIO SETUP
>>> ----------------
>>> If you use LVM2, Encrypted root or software RAID,
>>> Ensure you enable support in /etc/mkinitcpio.conf .
>>> More information about mkinitcpio setup can be found here:
>>> http://wiki.archlinux.org/index.php/Mkinitcpio
>>> Generating initial ramdisk, using mkinitcpio. Please wait...
==> Building image "default"
==> Running command: /sbin/mkinitcpio -k 2.6.37-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26.img
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [autodetect]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Parsing hook [resume]
:: Generating module dependencies
WARNING: Can't read module /tmp/mkinitcpio.ArHyD1/lib/modules/2.6.37-ARCH/kernel/arch/x86/crypto/crc32c-intel.ko.gz: Exec format error
WARNING: Can't read module /tmp/mkinitcpio.ArHyD1/lib/modules/2.6.37-ARCH/kernel/crypto/crc32c.ko.gz: Exec format error
WARNING: Can't read module /tmp/mkinitcpio.ArHyD1/lib/modules/2.6.37-ARCH/kernel/lib/libcrc32c.ko.gz: Exec format error
WARNING: Can't read module /tmp/mkinitcpio.ArHyD1/lib/modules/2.6.37-ARCH/kernel/lib/crc16.ko.gz: Exec format error
:: Generating image '/boot/kernel26.img'...SUCCESS
==> SUCCESS
==> Building image "fallback"
==> Running command: /sbin/mkinitcpio -k 2.6.37-ARCH -c /etc/mkinitcpio.conf -g /boot/kernel26-fallback.img -S autodetect
:: Begin build
:: Parsing hook [base]
:: Parsing hook [udev]
:: Parsing hook [pata]
:: Parsing hook [scsi]
:: Parsing hook [sata]
:: Parsing hook [filesystems]
:: Parsing hook [resume]
:: Generating module dependencies
:: Generating image '/boot/kernel26-fallback.img'...SUCCESS
==> SUCCESS
主要问题就在于这几行:
WARNING: Can't read module /tmp/mkinitcpio.ArHyD1/lib/modules/2.6.37-ARCH/kernel/arch/x86/crypto/crc32c-intel.ko.gz: Exec format error
WARNING: Can't read module /tmp/mkinitcpio.ArHyD1/lib/modules/2.6.37-ARCH/kernel/crypto/crc32c.ko.gz: Exec format error
WARNING: Can't read module /tmp/mkinitcpio.ArHyD1/lib/modules/2.6.37-ARCH/kernel/lib/libcrc32c.ko.gz: Exec format error
WARNING: Can't read module /tmp/mkinitcpio.ArHyD1/lib/modules/2.6.37-ARCH/kernel/lib/crc16.ko.gz: Exec format error
我的根分区是btrfs的,这直接导致了无法开机
更奇怪的是,我如果自己运行
sudo mkinitcpio -p kernel26,则没有任何错误,这是怎么回事 |
|