Skip to content

Commit

Permalink
Merge pull request #706 from estape11/master
Browse files Browse the repository at this point in the history
feat: Added ext3 filesystem support
  • Loading branch information
estape11 authored Oct 24, 2024
2 parents c88a0ef + c1e143a commit 3f8345c
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
2 changes: 2 additions & 0 deletions mender-convert-package
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,8 @@ log_info "Rootfs filesystem size will be $(disk_sectors_to_mb ${rootfs_image_sec
# Extract file-system type from rootfs
if file ${root_part} | grep -q ext4; then
image_fs_type="ext4"
elif file ${root_part} | grep -q ext3; then
image_fs_type="ext3"
elif file ${root_part} | grep -q XFS; then
image_fs_type="xfs"
elif file ${root_part} | grep -q BTRFS; then
Expand Down
8 changes: 8 additions & 0 deletions modules/disk.sh
Original file line number Diff line number Diff line change
Expand Up @@ -127,6 +127,14 @@ disk_create_file_system_from_folder() {
run_and_log_cmd "${MKFS_EXT4} -q -F ${2} ${EXTRA_OPTS}"
;;

"ext3")
MKFS_EXT3="/usr/bin/mkfs.ext3"
if [ ! -f ${MKFS_EXT3} ]; then
MKFS_EXT3="/sbin/mkfs.ext3"
fi
run_and_log_cmd "${MKFS_EXT3} -q -F ${2} ${EXTRA_OPTS}"
;;

"xfs")
MKFS_XFS="/usr/bin/mkfs.xfs"
if [ ! -f ${MKFS_XFS} ]; then
Expand Down

0 comments on commit 3f8345c

Please sign in to comment.