mirror of
https://salsa.debian.org/raspi-team/image-specs
synced 2026-05-30 06:38:09 +02:00
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.
This commit is contained in:
@@ -45,6 +45,9 @@ wait_for_udev 5
|
|||||||
partprobe "$rootdev"
|
partprobe "$rootdev"
|
||||||
resize2fs "$rootpart"
|
resize2fs "$rootpart"
|
||||||
|
|
||||||
|
# After resizing, (re)check the root partition's filesystem
|
||||||
|
fsck "$rootpart"
|
||||||
|
|
||||||
# Remount root
|
# Remount root
|
||||||
# Don't quote ${ROOTFLAGS} as that results in an extra (empty) argument
|
# Don't quote ${ROOTFLAGS} as that results in an extra (empty) argument
|
||||||
# to 'mount', which in turn causes a boot failure
|
# to 'mount', which in turn causes a boot failure
|
||||||
|
|||||||
Reference in New Issue
Block a user