search for: create_ext2f

Displaying 2 results from an estimated 2 matches for "create_ext2f".

Did you mean: create_ext2fs
2009 Aug 20
3
[PATCH ovirt-node-image] fixes for edit-livecd
Patch set fixes issues with image size increase when using edit-livecd Also address issue with ext4 root fs
2009 Aug 03
0
[PATCH node-image] Fix edit-livecd to re-create ext2 filesystem each time
...type mkisofs @@ -137,6 +142,71 @@ mnt() { addExit "df | grep $mp > /dev/null 2>&1 && umount -v $mp" } +# Create new ext2 filesystem and copy contents of one into the other +# Size of ext2 filesystem is same as original size unless size parameter +# is passed in +create_ext2fs() { + local input_file=$1 + local input_dir=$2 + local output_file=$3 + local output_dir=$4 + local size_mb=$5 + + local size= + if [[ -n "$size_mb" ]]; then + size=$(( $size_mb * 1024 )) + fi + + echo ">>> Mounting old ext3fs" + mn...