Subversion Repositories HelenOS

Rev

Rev 3524 | Rev 3541 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 3524 Rev 3525
Line 401... Line 401...
401
    else:
401
    else:
402
        boot_sector.sectors_big = 0
402
        boot_sector.sectors_big = 0
403
   
403
   
404
    boot_sector.drive = 0x80
404
    boot_sector.drive = 0x80
405
    boot_sector.extboot_signature = 0x29
405
    boot_sector.extboot_signature = 0x29
406
    boot_sector.serial = random.randint(0, 0xFFFFFFFF)
406
    boot_sector.serial = random.randint(0, 0x7fffffff)
407
    boot_sector.label = "HELENOS"
407
    boot_sector.label = "HELENOS"
408
    boot_sector.fstype = "FAT16   "
408
    boot_sector.fstype = "FAT16   "
409
    boot_sector.boot_signature = [0x55, 0xAA]
409
    boot_sector.boot_signature = [0x55, 0xAA]
410
   
410
   
411
    outf.write(boot_sector.pack())
411
    outf.write(boot_sector.pack())