summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--instdata.py9
-rw-r--r--kickstart.py2
-rw-r--r--packages.py3
3 files changed, 14 insertions, 0 deletions
diff --git a/instdata.py b/instdata.py
index 0d9e9b7fa..7b87548f9 100644
--- a/instdata.py
+++ b/instdata.py
@@ -265,6 +265,15 @@ class InstallData:
self.extraModules = extraModules
self.floppyDevice = floppyDevice
self.fsset = fsset.FileSystemSet()
+ self.excludeDocs = 0
+ try:
+ f = open("/proc/cmdline")
+ line = f.readline()
+ if line.find(" excludedocs") != -1:
+ self.excludeDocs = 1
+ close(f)
+ except:
+ pass
# FIXME: this is a major hack to get the comps package installed
self.compspkg = None
diff --git a/kickstart.py b/kickstart.py
index 94208700c..10f1350aa 100644
--- a/kickstart.py
+++ b/kickstart.py
@@ -717,6 +717,8 @@ class KickstartBase(BaseInstallClass):
id.handleDeps = RESOLVE_DEPS
elif arg == "--ignoredeps":
id.handleDeps = IGNORE_DEPS
+ elif arg == "--excludedocs":
+ id.excludeDocs = 1
elif arg == "--ignoremissing":
self.handleMissing = KS_MISSING_IGNORE
elif arg == "--nobase":
diff --git a/packages.py b/packages.py
index 58a07aa87..b6af4d243 100644
--- a/packages.py
+++ b/packages.py
@@ -787,6 +787,9 @@ def doInstall(method, id, intf, instPath):
how = "i"
rpm.addMacro("__dbi_htconfig", "hash nofsync %{__dbi_other} %{__dbi_perms}")
+ if id.excludeDocs:
+ rpm.addMacro("_excludedocs", "1")
+
l = []
for p in id.grpset.hdrlist.values():