Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 161992 Details for
Bug 70477
ks install formats swap partition not mentioned in ks file
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
Ignore swap devices at install time.
ignoreswaps.diff (text/plain), 4.41 KB, created by
Joel Andres Granados
on 2007-08-21 17:21:04 UTC
(
hide
)
Description:
Ignore swap devices at install time.
Filename:
MIME Type:
Creator:
Joel Andres Granados
Created:
2007-08-21 17:21:04 UTC
Size:
4.41 KB
patch
obsolete
>Index: fsset.py >=================================================================== >RCS file: /usr/local/CVS/anaconda/fsset.py,v >retrieving revision 1.334 >diff -u -r1.334 fsset.py >--- fsset.py 17 Aug 2007 14:20:44 -0000 1.334 >+++ fsset.py 21 Aug 2007 16:49:43 -0000 >@@ -1123,8 +1123,10 @@ > def fstab (self): > format = "%-23s %-23s %-7s %-15s %d %d\n" > fstab = "" >+ import pdb >+ pdb.set_trace() > for entry in self.entries: >- if entry.mountpoint: >+ if entry.mountpoint and entry.device.getDevice() not in partedUtils.DiskSet.skippedSwapDevs: > if entry.getLabel(): > device = "LABEL=%s" % (entry.getLabel(),) > else: >@@ -1401,7 +1403,9 @@ > > for entry in self.entries: > if (entry.fsystem and entry.fsystem.getName() == "swap" >- and not entry.isMounted()): >+ and not entry.isMounted() and entry.device.getDevice() not in partedUtils.DiskSet.skippedSwapDevs): >+ import pdb >+ pdb.set_trace() > try: > entry.mount(chroot) > self.mountcount = self.mountcount + 1 >Index: partedUtils.py >=================================================================== >RCS file: /usr/local/CVS/anaconda/partedUtils.py,v >retrieving revision 1.136 >diff -u -r1.136 partedUtils.py >--- partedUtils.py 26 Jul 2007 14:15:43 -0000 1.136 >+++ partedUtils.py 21 Aug 2007 16:49:43 -0000 >@@ -595,6 +595,7 @@ > """The disks in the system.""" > > skippedDisks = [] >+ skippedSwapDevs = [] > mdList = [] > clearedDisks = [] > exclusiveDisks = [] >Index: installclass.py >=================================================================== >RCS file: /usr/local/CVS/anaconda/installclass.py,v >retrieving revision 1.295 >diff -u -r1.295 installclass.py >--- installclass.py 16 Jul 2007 15:55:32 -0000 1.295 >+++ installclass.py 21 Aug 2007 16:49:43 -0000 >@@ -116,6 +116,12 @@ > if not drive in diskset.skippedDisks: > diskset.skippedDisks.append(drive) > >+ def setIgnoredSwapDev(self, id, devs): >+ diskset = id.diskset >+ for dev in devs: >+ if not dev in diskset.skippedSwapDevs: >+ diskset.skippedSwapDevs.append(dev) >+ > def setExclusiveDisks(self, id, drives): > diskset = id.diskset > for drive in drives: >Index: kickstart.py >=================================================================== >RCS file: /usr/local/CVS/anaconda/kickstart.py,v >retrieving revision 1.384 >diff -u -r1.384 kickstart.py >--- kickstart.py 31 Jul 2007 19:29:34 -0000 1.384 >+++ kickstart.py 21 Aug 2007 16:49:43 -0000 >@@ -32,6 +32,7 @@ > from pykickstart.errors import * > from pykickstart.parser import * > from pykickstart.version import * >+import pykickstart.base as base > from rhpl.translate import _ > > import logging >@@ -184,6 +185,37 @@ > self.handler.id.instClass.setIgnoredDisks(self.handler.id, self.ignoredisk) > self.handler.id.instClass.setExclusiveDisks(self.handler.id, self.onlyuse) > >+class IgnoreSwapDev(base.KickstartCommand): >+ def __init__(self, writePriority=0, ignoreswapdev=None): >+ base.KickstartCommand.__init__(self, writePriority) >+ >+ if ignoreswapdev == None: >+ self.devs = [] >+ else: >+ self.devs = ignoreswapdev >+ >+ def __str__(self): >+ if len(self.devs) > 0: >+ return "ignoreswapdev --devs=%s\n" % string.join(self.devs, ",") >+ else: >+ return "" >+ >+ def parse(self, args): >+ import pdb >+ pdb.set_trace() >+ def dev_cb (option, opt_str, value, parser): >+ for d in value.split(','): >+ parser.values.ensure_value(option.dest, []).append(d) >+ >+ op = KSOptionParser(lineno=self.lineno) >+ op.add_option("--devs", dest="devs", action="callback", >+ callback=dev_cb, nargs=1, type="string") >+ >+ (opts, extra) = op.parse_args(args=args) >+ self._setToSelf(op, opts) >+ >+ self.handler.id.instClass.setIgnoredSwapDev(self.handler.id, self.devs) >+ > class Iscsi(commands.iscsi.FC6_Iscsi): > def parse(self, args): > commands.iscsi.FC3_Iscsi.parse(self, args) >@@ -676,6 +708,7 @@ > "halt": Reboot, > "harddrive": commands.method.FC6_Method, > "ignoredisk": IgnoreDisk, >+ "ignoreswapdev": IgnoreSwapDev, > "install": Upgrade, > "interactive": commands.interactive.FC3_Interactive, > "iscsi": Iscsi,
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 70477
:
161357
|
161359
|
161992
|
169502
|
169503