bug: openKylin 2.0 SP1 系统升级 6.6.0-15内核时报错: 挂载点 /sysroot/boot/efi/ 缺失

bug: openKylin 2.0 SP1 系统升级 6.6.0-15内核时报错

2025.3.27

sudo apt update
sudo apt upgrade -y

主要报错内容示例:


2个挂载点 缺失(即没有这个目录。需要手动、提前创建)
/sysroot/root
/sysroot/boot/efi/

手动解决方法:
sudo mkdir -p /sysroot/root/
sudo mkdir -p /sysroot/boot/efi/


相关报错代码:

正在处理用于 linux-image-unsigned-6.6.0-15-generic (6.6.0-15.0ok13) 的触发器 …
/etc/kernel/postinst.d/dkms:
dkms: running auto installation service for kernel 6.6.0-15-generic
dkms: autoinstall for kernel 6.6.0-15-generic Done.
/etc/kernel/postinst.d/initramfs-tools:
update-initramfs: Generating /boot/initrd.img-6.6.0-15-generic
I: The initramfs will attempt to resume from /dev/sdb6
I: (UUID=82c0ba18-672b-45dd-8b36-ec0010ef4544)
I: Set the RESUME variable to override this.
/etc/kernel/postinst.d/zz-update-grub:
Sourcing file `/etc/default/grub’
Generating grub configuration file …
Found theme: /usr/share/grub/themes/UKUI/theme.txt
Found linux image: /boot/vmlinuz-6.6.0-15-generic
Found initrd image: /boot/initrd.img-6.6.0-15-generic
mount: /sysroot/boot/: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
mount: /sysroot/boot/efi/: mount point does not exist.
dmesg(1) may have more information after failed mount system call.
Warning: os-prober will not be executed to detect other bootable partitions.
Systems on them will not be added to the GRUB boot configuration.
Check GRUB_DISABLE_OS_PROBER documentation entry.
Adding boot menu entry for UEFI Firmware Settings …
done
在处理时有错误发生:
pdfstamp
E: Sub-process /usr/bin/dpkg returned an error code (1)