summaryrefslogtreecommitdiffstats
path: root/partRequests.py
diff options
context:
space:
mode:
authorMike Fulbright <msf@redhat.com>2003-01-08 21:13:43 +0000
committerMike Fulbright <msf@redhat.com>2003-01-08 21:13:43 +0000
commit4a1a59e823865acd9c9aaac306f0fc7b62620b5c (patch)
tree6801ba8dcc330e4033205fa6e43596f1e970b63a /partRequests.py
parent07676a24b0c11f4a85998939ae32702690b5d9cb (diff)
downloadanaconda-4a1a59e823865acd9c9aaac306f0fc7b62620b5c.tar.gz
anaconda-4a1a59e823865acd9c9aaac306f0fc7b62620b5c.tar.xz
anaconda-4a1a59e823865acd9c9aaac306f0fc7b62620b5c.zip
fix for bug #81127 - dont let user use mount points that are symlinks in the filesystem package
Diffstat (limited to 'partRequests.py')
-rw-r--r--partRequests.py13
1 files changed, 11 insertions, 2 deletions
diff --git a/partRequests.py b/partRequests.py
index 3f785752b..5ac89dd56 100644
--- a/partRequests.py
+++ b/partRequests.py
@@ -204,6 +204,10 @@ class RequestSpec:
'/mnt', 'lost+found', '/proc']
mustbeonlinuxfs = ['/', '/boot', '/var', '/tmp', '/usr', '/home']
+ # these are symlinks so you cant make them mount points
+ otherexcept = ['/var/mail', '/usr/bin/X11', '/usr/lib/X11'
+ '/usr/tmp']
+
if not self.mountpoint:
return None
@@ -213,8 +217,13 @@ class RequestSpec:
if self.fstype.isMountable():
if self.mountpoint in mustbeonroot:
return _("This mount point is invalid. The %s directory must "
- "be on the / file system." % (self.mountpoint,))
-
+ "be on the / file system.") % (self.mountpoint,)
+ elif self.mountpoint in otherexcept:
+ return _("The mount point %s cannot be used. It must "
+ "be a symbolic link for proper system "
+ "operation. Please select a different "
+ "mount point.") % (self.mountpoint,)
+
if not self.fstype.isLinuxNativeFS():
if self.mountpoint in mustbeonlinuxfs:
return _("This mount point must be on a linux file system.")