diff options
Diffstat (limited to 'meta/recipes-core')
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install-efi.sh | 7 | ||||
-rw-r--r-- | meta/recipes-core/initrdscripts/files/init-install.sh | 7 |
2 files changed, 14 insertions, 0 deletions
diff --git a/meta/recipes-core/initrdscripts/files/init-install-efi.sh b/meta/recipes-core/initrdscripts/files/init-install-efi.sh index 5ad3a60c05..706418fa9c 100644 --- a/meta/recipes-core/initrdscripts/files/init-install-efi.sh +++ b/meta/recipes-core/initrdscripts/files/init-install-efi.sh | |||
@@ -186,6 +186,13 @@ parted ${device} mkpart swap linux-swap $swap_start 100% | |||
186 | 186 | ||
187 | parted ${device} print | 187 | parted ${device} print |
188 | 188 | ||
189 | echo "Waiting for device nodes..." | ||
190 | C=0 | ||
191 | while [ $C -ne 3 ] && [ ! -e $bootfs -o ! -e $rootfs -o ! -e $swap ]; do | ||
192 | C=$(( C + 1 )) | ||
193 | sleep 1 | ||
194 | done | ||
195 | |||
189 | echo "Formatting $bootfs to vfat..." | 196 | echo "Formatting $bootfs to vfat..." |
190 | mkfs.vfat $bootfs | 197 | mkfs.vfat $bootfs |
191 | 198 | ||
diff --git a/meta/recipes-core/initrdscripts/files/init-install.sh b/meta/recipes-core/initrdscripts/files/init-install.sh index 1cac8064a2..dade059c8f 100644 --- a/meta/recipes-core/initrdscripts/files/init-install.sh +++ b/meta/recipes-core/initrdscripts/files/init-install.sh | |||
@@ -211,6 +211,13 @@ parted ${device} mkpart $pname linux-swap $swap_start 100% | |||
211 | 211 | ||
212 | parted ${device} print | 212 | parted ${device} print |
213 | 213 | ||
214 | echo "Waiting for device nodes..." | ||
215 | C=0 | ||
216 | while [ $C -ne 3 ] && [ ! -e $bootfs -o ! -e $rootfs -o ! -e $swap ]; do | ||
217 | C=$(( C + 1 )) | ||
218 | sleep 1 | ||
219 | done | ||
220 | |||
214 | echo "Formatting $bootfs to ext3..." | 221 | echo "Formatting $bootfs to ext3..." |
215 | mkfs.ext3 $bootfs | 222 | mkfs.ext3 $bootfs |
216 | 223 | ||