diff options
author | Mei Lei <lei.mei@intel.com> | 2011-08-10 22:35:59 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-08-12 17:21:54 +0100 |
commit | 577a9145124582de7c4288dffe993eb7a3459162 (patch) | |
tree | 80af6b03ed88a00f79cea6f0e557db74d7b422c7 /meta | |
parent | 83ada5598fbc67705bf613f8f4a42674bd1432ae (diff) | |
download | poky-577a9145124582de7c4288dffe993eb7a3459162.tar.gz |
init-install.sh: Fix make partition and make file system issues
[YOCTO #1151]
Change the offset from the beginning of the disk to aligne the blocks.
In this script, we use mkfs.ext3 to create file system after partition, but we use mkpartfs to create file system repeatly,
and get some warnings about choose another specific tools to create file system for reliability.
So use mkpart instead of mkpartfs and only use mkfs.ext3 to create file system.
(From OE-Core rev: 67c9804e0416defb7c3f69bd02bbae3710e5be0a)
Signed-off-by: Mei Lei <lei.mei@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install.sh | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh index b9d9029d21..5e6b81c9d3 100644 --- a/meta/recipes-core/initrdscripts/files/init-install.sh +++ b/meta/recipes-core/initrdscripts/files/init-install.sh | |||
@@ -105,13 +105,13 @@ echo "Creating new partition table on /dev/${device} ..." | |||
105 | parted /dev/${device} mklabel msdos | 105 | parted /dev/${device} mklabel msdos |
106 | 106 | ||
107 | echo "Creating boot partition on /dev/${device}1" | 107 | echo "Creating boot partition on /dev/${device}1" |
108 | parted /dev/${device} mkpartfs primary ext2 0 $boot_size | 108 | parted /dev/${device} mkpart primary 1 $boot_size |
109 | 109 | ||
110 | echo "Creating rootfs partition on /dev/${device}2" | 110 | echo "Creating rootfs partition on /dev/${device}2" |
111 | parted /dev/${device} mkpartfs primary ext2 $rootfs_start $rootfs_end | 111 | parted /dev/${device} mkpart primary $rootfs_start $rootfs_end |
112 | 112 | ||
113 | echo "Creating swap partition on /dev/${device}3" | 113 | echo "Creating swap partition on /dev/${device}3" |
114 | parted /dev/${device} mkpartfs primary linux-swap $swap_start $disk_size | 114 | parted /dev/${device} mkpart primary $swap_start $disk_size |
115 | 115 | ||
116 | parted /dev/${device} print | 116 | parted /dev/${device} print |
117 | 117 | ||