1
0
mirror of https://github.com/home-assistant/operating-system.git synced 2026-05-08 17:49:46 +01:00

Add fake MBR script

This commit is contained in:
Pascal Vizeli
2018-05-20 00:45:10 +02:00
parent 357ceeebe4
commit f427eef157
3 changed files with 17 additions and 7 deletions
+3 -2
View File
@@ -73,7 +73,8 @@ function create_disk_image() {
function fix_disk_image_mbr() {
local hdd_img=${2}
local hdd_img=${1}
#sgdisk -h 1 ${hdd_img}
sgdisk -t 1:"E3C9E316-0B5C-4DB8-817D-F92DF00215AE" ${hdd_img}
dd if=${BR2_EXTERNAL_HASSOS_PATH}/scripts/mbr.img of=${hdd_img} conv=notrunc bs=512 count=1
}
Binary file not shown.