/[gli]/branches/overhaul/src/templates/x86ArchitectureTemplate.py
Gentoo

Diff of /branches/overhaul/src/templates/x86ArchitectureTemplate.py

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1416 Revision 1427
3# This source code is distributed under the terms of version 2 of the GNU 3# This source code is distributed under the terms of version 2 of the GNU
4# General Public License as published by the Free Software Foundation, a copy 4# General Public License as published by the Free Software Foundation, a copy
5# of which can be found in the main directory of this project. 5# of which can be found in the main directory of this project.
6Gentoo Linux Installer 6Gentoo Linux Installer
7 7
8$Id: x86ArchitectureTemplate.py,v 1.135 2006/04/09 15:45:58 agaffney Exp $ 8$Id: x86ArchitectureTemplate.py,v 1.136 2006/04/21 11:54:30 agaffney Exp $
9Copyright 2004 Gentoo Technologies Inc. 9Copyright 2004 Gentoo Technologies Inc.
10 10
11 11
12This fills in x86 specific functions. 12This fills in x86 specific functions.
13""" 13"""
242 end = newparts[nextminor]['start'] - 1 242 end = newparts[nextminor]['start'] - 1
243 # cap to end of device 243 # cap to end of device
244 if end >= device_sectors: 244 if end >= device_sectors:
245 end = device_sectors - 1 245 end = device_sectors - 1
246 # now the actual creation 246 # now the actual creation
247 if newpart['type'] == "free" and newparts.get_disklabel() == "mac": 247 if newpart['type'] == "free":
248 if newparts.get_disklabel() == "mac":
248 # Create a dummy partition to be removed later because parted sucks 249 # Create a dummy partition to be removed later because parted sucks
249 self._logger.log(" Adding dummy partition to fool parted " + str(part) + " from " + str(start) + " to " + str(end)) 250 self._logger.log(" Adding dummy partition to fool parted " + str(part) + " from " + str(start) + " to " + str(end))
250 self._add_partition(parted_disk, start, end, "primary", "ext2", "free") 251 self._add_partition(parted_disk, start, end, "primary", "ext2", "free")
251 elif newpart['type'] == "extended": 252 elif newpart['type'] == "extended":
252 self._logger.log(" Adding extended partition " + str(part) + " from " + str(start) + " to " + str(end)) 253 self._logger.log(" Adding extended partition " + str(part) + " from " + str(start) + " to " + str(end))
253 self._add_partition(parted_disk, start, end, "extended", "") 254 self._add_partition(parted_disk, start, end, "extended", "")
254 extended_start = start 255 extended_start = start
255 extended_end = end 256 extended_end = end

Legend:
Removed from v.1416  
changed lines
  Added in v.1427

  ViewVC Help
Powered by ViewVC 1.1.20