#1092826 raspi-firmware: read-write mount of root filesystem prevents fsck at boot on trixie #1092826
- Package:
- raspi-firmware
- Source:
- raspi-firmware
- Submitter:
- Ryutaroh Matsumoto
- Date:
- 2025-01-13 02:21:01 UTC
- Severity:
- normal
- Tags:
Dear Maintainer, /lib/systemd/system/systemd-fsck-root.service has ConditionPathIsReadWrite=!/ on trixie. For systemd-fsck-root.service to run fsck on the root filesystem, it must be mounted read-only at boot. But /etc/kernel/postinst.d/z50-raspi-firmware hard-coded the read-write mount into /boot/firmware/cmdline. The root filesystem is never fsck'ed at boot time on trixie. A suggested patch is attached. Best regards, Ryutaroh Matsumoto
Since this issue does not happen with ext4 root fs as it is fsck'ed by /usr/share/initramfs-tools/scripts/functions, I downgrade its severity to minor. Read-write mount of root fs still seems problematic when initramfs does not run fsck, for example when /usr/lib/klibc/bin/fstype does not recognize type of root fs. Ryutaroh