Browse Source
Merge pull request #70 from apodogrocki/MEN-2242
Check a Linux ext4 file system before resizing 'primary' partition
1.1.x
Adam Podogrocki
6 years ago
committed by
GitHub
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with
2 additions and
0 deletions
-
convert-stage-3.sh
|
|
@ -9,6 +9,8 @@ build_log=$output_dir/build.log |
|
|
|
|
|
|
|
sudo dd if=${output_dir}/rootfs.img of=/dev/mapper/${rootfs_mapping} bs=8M conv=sparse >> "$build_log" 2>&1 |
|
|
|
sync |
|
|
|
|
|
|
|
sudo e2fsck -y -f /dev/mapper/${rootfs_mapping} >> "$build_log" 2>&1 |
|
|
|
sudo resize2fs /dev/mapper/${rootfs_mapping} >> "$build_log" 2>&1 |
|
|
|
# Check Linux ext4 file system just in case. |
|
|
|
sudo fsck.ext4 -fp /dev/mapper/${rootfs_mapping} >> "$build_log" 2>&1 |
|
|
|