页次: 1
我一如既往地使用paru -Syu更新我的系统,它更新了下linux,并且在随后自动生成initramfs,但它出错了
于是我手动执行sudo mkinitcpio -p命令,但依然发生错误:
$ sudo mkinitcpio -P
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'default'
==> Using default configuration file: '/etc/mkinitcpio.conf'
-> -k /boot/vmlinuz-linux -g /boot/initramfs-linux.img --microcode /boot/amd-ucode.img
==> Starting build: '6.7.3-arch1-2'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [autodetect]
-> Running build hook: [modconf]
-> Running build hook: [kms]
-> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
-> Running build hook: [block]
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux.img'
==> Image generation successful
==> Building image from preset: /etc/mkinitcpio.d/linux.preset: 'fallback'
==> Using default configuration file: '/etc/mkinitcpio.conf'
-> -k /boot/vmlinuz-linux -g /boot/initramfs-linux-fallback.img -S autodetect --microcode /boot/amd-ucode.img
==> Starting build: '6.7.3-arch1-2'
-> Running build hook: [base]
-> Running build hook: [udev]
-> Running build hook: [modconf]
-> Running build hook: [kms]
==> WARNING: Possibly missing firmware for module: 'ast'
-> Running build hook: [keyboard]
==> WARNING: Possibly missing firmware for module: 'xhci_pci'
-> Running build hook: [keymap]
-> Running build hook: [consolefont]
==> WARNING: consolefont: no font found in configuration
-> Running build hook: [block]
==> WARNING: Possibly missing firmware for module: 'aic94xx'
==> WARNING: Possibly missing firmware for module: 'bfa'
==> WARNING: Possibly missing firmware for module: 'qed'
==> WARNING: Possibly missing firmware for module: 'qla1280'
==> WARNING: Possibly missing firmware for module: 'qla2xxx'
==> WARNING: Possibly missing firmware for module: 'wd719x'
-> Running build hook: [filesystems]
-> Running build hook: [fsck]
==> Generating module dependencies
==> Creating zstd-compressed initcpio image: '/boot/initramfs-linux-fallback.img'
Caught SIGSEGV signal, printing stack:
/usr/lib/libzstd.so.1(ZSTD_compressBlock_doubleFast+0x4bb) [0x768784b61f8b]
/usr/lib/libzstd.so.1(+0x1cbe1) [0x768784b58be1]
/usr/lib/libzstd.so.1(+0x1d44b) [0x768784b5944b]
/usr/lib/libzstd.so.1(+0x22417) [0x768784b5e417]
/usr/lib/libzstd.so.1(ZSTD_compressContinue_public+0x15) [0x768784b5edc5]
/usr/lib/libzstd.so.1(+0x60eda) [0x768784b9ceda]
/usr/lib/libzstd.so.1(+0xf39f) [0x768784b4b39f]
/usr/lib/libc.so.6(+0x8b55a) [0x76878497355a]
/usr/lib/libc.so.6(+0x108a3c) [0x7687849f0a3c]
bsdtar: Write error
bsdtar: Write error
/usr/bin/mkinitcpio: 第 221 行:178910 已完成 find . -mindepth 1 -printf '%P\0'
178911 | sort -z
178912 退出 1 | LANG=C bsdtar --uid 0 --gid 0 --null -cnf - -T -
178913 退出 1 | LANG=C bsdtar --null -cf - --format=newc @-
178914 段错误 (核心已转储)| $compress "${COMPRESSION_OPTIONS[@]}" > "$compressout"
==> ERROR: Image generation FAILED: 'bsdtar (step 1) reported an error'
试了好几遍依然发生这个错误,求教大佬,我该怎么拯救我的系统
最近编辑记录 serverbread (2024-03-09 22:21:45)
离线
很奇怪,我在grub-mkconfig -o /boot/grub/grub.cfg后再执行mkinitcpio -P就没问题了
请问各位大佬能给我解释一下吗
离线
你的/boot分区有啥特殊设定吗?看起来像是满了的样子,但和你执行grub-mkconfig之后问题又奇怪的消失了的现象不大符合
呃,是不是你/boot分区默认是ro挂载,然后grub-mkconfig发现ro挂载之后给重新挂载为rw了,这样你mkinitcpio就又可以写入了
最近编辑记录 matrikslee (2024-02-05 09:28:26)
离线
就是 zstd 崩了啦。至于为什么崩了,不知道……
离线
你的/boot分区有啥特殊设定吗?看起来像是满了的样子,但和你执行grub-mkconfig之后问题又奇怪的消失了的现象不大符合
呃,是不是你/boot分区默认是ro挂载,然后grub-mkconfig发现ro挂载之后给重新挂载为rw了,这样你mkinitcpio就又可以写入了
不清楚,当时直接mount到/boot上去的。。。
离线
草,删除nvidia-settings后就没有这个问题了,试了两遍,确认基本是这个问题了(
这不应该,但是nvidia-settings貌似真的是幕后黑手(
像是假阴性结果,不确认到底是否是它干的
so, close.
最近编辑记录 serverbread (2024-03-09 22:25:55)
离线
果然是假阴性,换用gzip解决
离线
页次: 1