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:
Diederik de Haas 2022-11-15 17:25:59 +01:00
parent 82dfcf25ff
commit 8fbe0ac9e3
No known key found for this signature in database
GPG Key ID: D76E5BCE787EDB6E
1 changed files with 3 additions and 0 deletions

View File

@ -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