summaryrefslogtreecommitdiffstats
path: root/harddrive.py
diff options
context:
space:
mode:
authorErik Troan <ewt@redhat.com>2000-05-10 23:47:02 +0000
committerErik Troan <ewt@redhat.com>2000-05-10 23:47:02 +0000
commite8e51bea1d1b1c7b451bbcdbcd46ea4b6648d4a6 (patch)
tree4827cbc51fe1ef1f3155792902de997342326bff /harddrive.py
parentc17a74a82e71857fdb02d8d90df10b39fa4060d1 (diff)
downloadanaconda-e8e51bea1d1b1c7b451bbcdbcd46ea4b6648d4a6.tar.gz
anaconda-e8e51bea1d1b1c7b451bbcdbcd46ea4b6648d4a6.tar.xz
anaconda-e8e51bea1d1b1c7b451bbcdbcd46ea4b6648d4a6.zip
added proper inheritance for install methods
Diffstat (limited to 'harddrive.py')
-rw-r--r--harddrive.py9
1 files changed, 4 insertions, 5 deletions
diff --git a/harddrive.py b/harddrive.py
index 3cb6d2647..bd42722e4 100644
--- a/harddrive.py
+++ b/harddrive.py
@@ -1,6 +1,7 @@
# Install method for disk image installs (CD & NFS)
from comps import ComponentSet, HeaderList
+from installmethod import InstallMethod
import os
import isys
import rpm
@@ -10,7 +11,7 @@ import todo
FILENAME = 1000000
-class InstallMethod:
+class HardDriveInstallMethod(InstallMethod):
def mountMedia(self):
if (self.isMounted):
@@ -66,16 +67,14 @@ class InstallMethod:
self.umountMedia()
return HeaderList(hl)
- def targetFstab(self, fstab):
+ def systemMounted(self, fstab, mntPoint):
self.mountMedia()
def filesDone(self):
self.umountMedia()
- def unlinkFilename(self, fullName):
- pass
-
def __init__(self, device, type, path):
+ InstallMethod.__init__(self)
self.device = device
self.path = path
self.fstype = type