diff options
| author | Diederik de Haas <didi.debian@cknow.org> | 2022-11-15 17:25:59 +0100 |
|---|---|---|
| committer | Diederik de Haas <didi.debian@cknow.org> | 2022-12-01 18:30:28 +0100 |
| commit | 8fbe0ac9e3d11dbf4132ff1034a24fcedcc4d00d (patch) | |
| tree | 77980eb9b66f17bb71e76dc6094be8ee6f4d012a | |
| parent | 82dfcf25ff708269c3ff2c4c8f3e094ae6505b39 (diff) | |
Recheck the root filesystem after expanding it.
Checking the root filesystem before mounting it is always a good idea.
But after changing the root filesystem, it is especially important to
(re-)check it to ensure everything went fine. So add that check.
| -rwxr-xr-x | rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs b/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs index 64b4dee..3826847 100755 --- a/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs +++ b/rootfs/etc/initramfs-tools/scripts/local-bottom/rpi-resizerootfs @@ -45,6 +45,9 @@ wait_for_udev 5 partprobe "$rootdev" resize2fs "$rootpart" +# After resizing, (re)check the root partition's filesystem +fsck "$rootpart" + # Remount root # Don't quote ${ROOTFLAGS} as that results in an extra (empty) argument # to 'mount', which in turn causes a boot failure |
