Commit 5d285fbd authored by Oleg Dzhimiev's avatar Oleg Dzhimiev

fixed plasma crash

parent d01c7a31
...@@ -140,7 +140,11 @@ if something_is_missing: ...@@ -140,7 +140,11 @@ if something_is_missing:
sys.exit() sys.exit()
print("= Erase partition table on "+DEVICE+" and everything else") print("= Erase partition table on "+DEVICE+" and everything else")
shout("dd if=/dev/zero of="+DEVICE+" bs=1M count="+str(BOOT_SIZE+2)) #shout("dd if=/dev/zero of="+DEVICE+" bs=1M count="+str(BOOT_SIZE+2))
shout("dd if=/dev/zero of="+DEVICE+" bs=512 count=2")
shout("dd if=/dev/zero of="+DEVICE+" bs=1MB count=1 seek=1")
shout("dd if=/dev/zero of="+DEVICE+" bs=1MB count=1 seek="+str(BOOT_SIZE))
print("= Create partition table") print("= Create partition table")
shout("parted -s "+DEVICE+" mktable "+PT_TYPE) shout("parted -s "+DEVICE+" mktable "+PT_TYPE)
...@@ -149,8 +153,8 @@ print("= Create FAT parttion") ...@@ -149,8 +153,8 @@ print("= Create FAT parttion")
shout("parted -s "+DEVICE+" mkpart primary "+BOOT_FS+" 1 "+str(BOOT_SIZE)) shout("parted -s "+DEVICE+" mkpart primary "+BOOT_FS+" 1 "+str(BOOT_SIZE))
shout("parted -s "+DEVICE+" mkpart primary "+ROOT_FS+" "+str(BOOT_SIZE+1)+" 100%") shout("parted -s "+DEVICE+" mkpart primary "+ROOT_FS+" "+str(BOOT_SIZE+1)+" 100%")
# no need? # no need?
#shout("parted -s "+DEVICE+" align-check optimal 1") shout("parted -s "+DEVICE+" align-check optimal 1")
#shout("parted -s "+DEVICE+" align-check optimal 2") shout("parted -s "+DEVICE+" align-check optimal 2")
#sys.exit() #sys.exit()
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment