/[gli]/trunk/src/templates/x86ArchitectureTemplate.py
Gentoo

Diff of /trunk/src/templates/x86ArchitectureTemplate.py

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

Revision 1368 Revision 1369
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.115 2006/03/16 19:10:55 agaffney Exp $ 8$Id: x86ArchitectureTemplate.py,v 1.116 2006/03/16 19:24:37 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"""
109 if not table_changed: 109 if not table_changed:
110 self._logger.log("Partition table for " + device + " is unchanged...skipping") 110 self._logger.log("Partition table for " + device + " is unchanged...skipping")
111 continue 111 continue
112 112
113 self._logger.log("partitioning: Processing " + device + "...") 113 self._logger.log("partitioning: Processing " + device + "...")
114
115 if GLIUtility.spawn("mount | grep '^" + device + "'", return_output=True)[1].strip():
116 raise GLIException("PartitionsMountedError", 'fatal', 'partition', "Cannot partition " + device + " due to filesystems being mounted")
114 117
115 # Create pyparted objects for this device 118 # Create pyparted objects for this device
116 parted_dev = parted.PedDevice.get(device) 119 parted_dev = parted.PedDevice.get(device)
117 try: 120 try:
118 parted_disk = parted.PedDisk.new(parted_dev) 121 parted_disk = parted.PedDisk.new(parted_dev)

Legend:
Removed from v.1368  
changed lines
  Added in v.1369

  ViewVC Help
Powered by ViewVC 1.1.20