问题

operation not supported while reading flags on /boot/vmlinuz-linux

当我想要去重新安装 linux 内核的时候也就是 sudo pacman -S linux,显示我无法进行安装,因为操作不支持。

原因

原因就是分区挂载为只读模式。

查看挂载状态

mount | grep /boot

出现 ro 这个词,就说明是只读的。

解决

将只读设置成读写 rw

mount -o remount,rw /boot

这里就可以了。