init-install: format rootfs partition as ext4
PATCH 1/1 init-install: format rootfs partition as ext4
Use ext4 filesystem instead of ext3 when using the live image to install on target. wic defaults to ext4 as well.
Signed-off-by Anuj Mittal <[email protected]>
--- meta/recipes-core/initrdscripts/files/init-install-efi.sh | 6 +++--- meta/recipes-core/initrdscripts/files/init-install.sh | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-)
meta/recipes-core/initrdscripts/files/init-install-efi.sh +3 -3
@@ -179,7 +179,7 @@ parted ${device} mkpart boot fat32 0% $boot_size parted ${device} set 1 boot on echo "Creating rootfs partition on $rootfs" -parted ${device} mkpart root ext3 $rootfs_start $rootfs_end +parted ${device} mkpart root ext4 $rootfs_start $rootfs_end echo "Creating swap partition on $swap" parted ${device} mkpart swap linux-swap $swap_start 100%
@@ -196,8 +196,8 @@ done echo "Formatting $bootfs to vfat..." mkfs.vfat $bootfs -echo "Formatting $rootfs to ext3..." -mkfs.ext3 $rootfs +echo "Formatting $rootfs to ext4..." +mkfs.ext4 $rootfs echo "Formatting swap partition...($swap)" mkswap $swap
meta/recipes-core/initrdscripts/files/init-install.sh +3 -3
@@ -203,7 +203,7 @@ fi echo "Creating rootfs partition on $rootfs" [ $grub_version -eq 0 ] && pname='primary' || pname='root' -parted ${device} mkpart $pname ext3 $rootfs_start $rootfs_end +parted ${device} mkpart $pname ext4 $rootfs_start $rootfs_end echo "Creating swap partition on $swap" [ $grub_version -eq 0 ] && pname='primary' || pname='swap'
@@ -221,8 +221,8 @@ done echo "Formatting $bootfs to ext3..." mkfs.ext3 $bootfs -echo "Formatting $rootfs to ext3..." -mkfs.ext3 $rootfs +echo "Formatting $rootfs to ext4..." +mkfs.ext4 $rootfs echo "Formatting swap partition...($swap)" mkswap $swap
Signature · 1 line
2.7.4