summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorEd Bartosh <ed.bartosh@linux.intel.com>2015-06-14 18:45:21 +0300
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-06-23 11:47:26 +0100
commit891cdacb62059c60106837905d3175918f7ab9e6 (patch)
treeb6e8a17bba42af80dfa86838e7ece52cc19d0b62 /meta
parent1f7d16b6db75d2d91647791625eaa1fa67d86989 (diff)
downloadpoky-891cdacb62059c60106837905d3175918f7ab9e6.tar.gz
init-install: Specify filesystem type in parted command line
Explicitly specified filesystem type for parted mkpart command. This makes partition table to look more informative. (From OE-Core rev: 945a5172c2b996f0f307813d061250c39f77ebd2) Signed-off-by: Ed Bartosh <ed.bartosh@linux.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-efi.sh6
-rw-r--r--meta/recipes-core/initrdscripts/files/init-install.sh8
2 files changed, 7 insertions, 7 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
index 5fb4d4d05c..7f3e889f32 100644
--- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh
@@ -134,14 +134,14 @@ echo "Creating new partition table on /dev/${device} ..."
134parted /dev/${device} mklabel gpt 134parted /dev/${device} mklabel gpt
135 135
136echo "Creating boot partition on $bootfs" 136echo "Creating boot partition on $bootfs"
137parted /dev/${device} mkpart primary 0% $boot_size 137parted /dev/${device} mkpart primary fat32 0% $boot_size
138parted /dev/${device} set 1 boot on 138parted /dev/${device} set 1 boot on
139 139
140echo "Creating rootfs partition on $rootfs" 140echo "Creating rootfs partition on $rootfs"
141parted /dev/${device} mkpart primary $rootfs_start $rootfs_end 141parted /dev/${device} mkpart primary ext3 $rootfs_start $rootfs_end
142 142
143echo "Creating swap partition on $swap" 143echo "Creating swap partition on $swap"
144parted /dev/${device} mkpart primary $swap_start 100% 144parted /dev/${device} mkpart primary linux-swap $swap_start 100%
145 145
146parted /dev/${device} print 146parted /dev/${device} print
147 147
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh
index 9957c15ccf..10aed074aa 100644
--- a/meta/recipes-core/initrdscripts/files/init-install.sh
+++ b/meta/recipes-core/initrdscripts/files/init-install.sh
@@ -159,21 +159,21 @@ echo "Creating new partition table on /dev/${device} ..."
159if [ $grub_version -eq 0 ] ; then 159if [ $grub_version -eq 0 ] ; then
160 parted /dev/${device} mktable msdos 160 parted /dev/${device} mktable msdos
161 echo "Creating boot partition on $bootfs" 161 echo "Creating boot partition on $bootfs"
162 parted /dev/${device} mkpart primary 0% $boot_size 162 parted /dev/${device} mkpart primary ext3 0% $boot_size
163else 163else
164 parted /dev/${device} mktable gpt 164 parted /dev/${device} mktable gpt
165 echo "Creating BIOS boot partition on $bios_boot" 165 echo "Creating BIOS boot partition on $bios_boot"
166 parted /dev/${device} mkpart primary 0% $bios_boot_size 166 parted /dev/${device} mkpart primary 0% $bios_boot_size
167 parted /dev/${device} set 1 bios_grub on 167 parted /dev/${device} set 1 bios_grub on
168 echo "Creating boot partition on $bootfs" 168 echo "Creating boot partition on $bootfs"
169 parted /dev/${device} mkpart primary $boot_start $boot_size 169 parted /dev/${device} mkpart primary ext3 $boot_start $boot_size
170fi 170fi
171 171
172echo "Creating rootfs partition on $rootfs" 172echo "Creating rootfs partition on $rootfs"
173parted /dev/${device} mkpart primary $rootfs_start $rootfs_end 173parted /dev/${device} mkpart primary ext3 $rootfs_start $rootfs_end
174 174
175echo "Creating swap partition on $swap" 175echo "Creating swap partition on $swap"
176parted /dev/${device} mkpart primary $swap_start 100% 176parted /dev/${device} mkpart primary linux-swap $swap_start 100%
177 177
178parted /dev/${device} print 178parted /dev/${device} print
179 179