summaryrefslogtreecommitdiffstats
path: root/livecd.py
Commit message (Collapse)AuthorAgeFilesLines
* When there are errors reading the live CD, offer a retry.Chris Lumens2008-05-271-2/+21
|
* Don't use megabytes for the livecd size for copying.Bill Nottingham2008-04-151-5/+8
| | | | | | | | | Doing / 1024 / 1024 * 1024 * 1024 truncates the size to the nearest megabyte. If the size of the live image is a multiple of 8MB + change, it won't all get copied, leading to fs errors. (#442106) Thanks to Eric Sandeen for the legwork.
* Pass the full device pathBill Nottingham2008-04-111-1/+1
|
* Handle kernel variants a little better at install time tooJeremy Katz2008-03-261-20/+1
| | | | | | Make our handling of kernel variants a little bit more flexible, allowing for the fact that uname -r might not match version-release exactly. This also makes it so we don't have a hard-coded list of kernel variants
* Make sure that devices are set up before using them. (#437858)David Lehman2008-03-201-2/+2
| | | | Encrypted devices, for one, need to be set up before they can be used normally.
* Fix a typo.Chris Lumens2008-03-171-1/+1
|
* Ensure the UUID for the rootfs is random and not the same for every live imageJeremy Katz2008-03-161-1/+6
|
* Check the fstype of the live imageJeremy Katz2008-02-071-1/+9
| | | | | Need to make sure that the filesystem type of / matches what the live image is set up with as its rootfs
* Write out /etc/rpm/platform so upgrade from livecd installs work.Chris Lumens2008-01-241-0/+3
|
* Clean up typos and other things for GPLv2+ changes.David Cantrell2007-12-171-1/+1
| | | | | | | Shorten 'Red Hat Author(s)' to just 'Author(s)'. Perhaps eventually we'll get an AUTHORS file and will just remove author names from the individual files. Also fixed a type in scripts/dumphdrlist.py where Author was listed twice.
* Common GPLv2+ boilerplate on toplevel python source files.David Cantrell2007-12-171-7/+14
| | | | | | Updated all *.py files to have a uniform GPL boilerplate. Expanded copyright year ranges and listed authors (if they were in the comment section) under the Red Hat Author(s) section.
* Fix up the livecd to no longer use an InstallMethod.Chris Lumens2007-12-051-39/+33
|
* Begin removing references to anaconda.method and anaconda.methodstr.Chris Lumens2007-12-051-2/+2
| | | | | | Remove method references from the Anaconda object, along with various support functions that import methods and return instances of methods. This also removes method instances from the backend.
* Move protected partitions into the Partitions object.Chris Lumens2007-11-281-7/+0
|
* Remove unused functions from InstallMethods.Chris Lumens2007-11-201-4/+0
| | | | | | None of the following functions were even being called, so they can be removed easily: getFilename, copyFileToTemp, urlretrieve, systemUnmounted, getTempPath, and FileCopyException. Now only the hard parts are left.
* Log errors when we can't chown files and continue (#376741).Chris Lumens2007-11-131-1/+5
| | | | | | | This happens for any files that are owned by nfsnobody, as that UID maps to -1 which will cause an overflow. So far this has only occurred on /var/spool/mail/nfsnobody. Seems like fake users shouldn't have mail spools created for them.
* 2007-10-10 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-10-101-0/+5
| | | | | * livecd.py (LiveCDCopyBackend.doPostInstall): Copy over modprobe.conf from the live system
* (string isn't in the pot file, so not a problem)Jeremy Katz2007-09-261-1/+1
| | | | | | 2007-09-26 Jeremy Katz <katzj@redhat.com> * livecd.py (LiveCDCopyBackend.doRepoSetup): Fix formatting (#253982)
* 2007-09-20 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-09-201-2/+2
| | | | | | | * livecd.py (LiveCDCopyBackend._doFilesystemMangling): Set label consistently with how it's normally set to avoid labeling lvm (#297391) * fsset.py (FileSystemSet.labelEntry): Allow ignoring existing label
* Lots of minor pychecker error fixes. Some of these are even real problems.Chris Lumens2007-09-191-3/+3
|
* 2007-09-19 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-09-191-1/+1
| | | | | | * livecd.py (LiveCDImageMethod.unmountNonFstabDirs): Fix syntax error. * liveinst/liveinst.sh: Fix path.
* (LiveCDCopyBackend._doFilesystemMangling): Resize filesystemJeremy Katz2007-09-171-1/+3
| | | | earlier (Douglas McClendon)
* 2007-09-17 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-09-171-18/+13
| | | | | | * livecd.py (getLiveSizeMB): Find the size based on reading from the filesystem with dumpe2fs; basic patch from Douglas McClendon, cleaned up a smidge by me
* 2007-09-17 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-09-171-7/+8
| | | | | | * livecd.py (LiveCDImageMethod.unmountNonFstabDirs): Add method to do this unmounting and only do /selinux if SELinux is enabled (based on a patch from Douglas McClendon)
* 2007-09-14 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-09-141-1/+1
| | | | | * livecd.py (LiveCDCopyBackend.doPostInstall): Look at root path for kernels (Douglas McClendon)
* If we did a kickstart install, use the %packages section from the ks fileChris Lumens2007-09-041-1/+1
| | | | instead of creating a new one.
* 2007-08-23 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-08-231-3/+4
| | | | | * livecd.py (LiveCDCopyBackend.doRepoSetup): Mark for translation, add size (#253982)
* 2007-08-06 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-08-061-2/+10
| | | | | | | | * livecd.py (LiveCDCopyBackend.kernelVersionList): Check the rpmdb of the installed root (based on feedback from Jerry Vonau) * backend.py (AnacondaBackend.kernelVersionList): Take the rootPath as an argument * yuminstall.py (YumBackend.kernelVersionList): Likewise.
* Another attempt to enforce formatting of / on livecd installs.Chris Lumens2007-08-011-0/+1
|
* 2007-07-16 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-07-161-0/+1
| | | | | | | | | | From Jane Dogalt <jdogalt AT yahoo DOT com> * fsset.py: Add case for skipping formatting the rootfs dependent on backend so that we don't format the rootfs for live images. A little bit of a hack, but good enough for now * backend.py: Add skipFormatRoot attribute, defaults to False * livecd.py: Add skipFormatRoot attribute = True * packages.py: Pass skipFormatRoot
* 2007-07-02 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-07-021-2/+2
| | | | | | | | | | | | | | | | * autopart.py: Change references of "Reboot" -> "Exit installer" to make more sense in live install case. * exception.py: Likewise. * fsset.py: Likewise. * gui.py: Likewise. * harddrive.py: Likewise. * image.py: Likewise. * packages.py: Likewise. * upgrade.py: Likewise. * urlinstall: Likewise. * yuminstall.py: Likewise. * livecd.py (LiveCDCopyBackend.doRepoSetup): Add mnemonics
* 2007-06-28 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-06-281-18/+18
| | | | | * livecd.py (copytree): Preserve owners on copy (#243479). Also add support for preserving SELinux xattrs during the copy process
* 2007-06-25 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-06-251-20/+45
| | | | | | * livecd.py (LiveCDCopyBackend._doFilesystemMangling): Rework this to properly handle the case where you have something like /usr/local and /usr as separate partitions (#244913)
* Fix traceback (#244764).Chris Lumens2007-06-191-1/+1
|
* 2007-05-30 Jeremy Katz <katzj@aglarond.local>Jeremy Katz2007-05-301-0/+2
| | | | | * livecd.py: Define Error so we don't traceback with that when there's a problem copying (#241754)
* 2007-04-19 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-04-191-0/+4
| | | | | * livecd.py (LiveCDImageMethod.getFilename): Handle getting the release notes for the live CD.
* 2007-04-18 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-04-181-3/+21
| | | | | | | | | | | | * isys/isys.py (driveDict): Ignore drives that the live install is running from. This should help avoid trying to install the bootloader to the USB key that you're running the live image off of * livecd.py (LiveCDImageMethod.postAction): Fix unmount to work and re-enable it so that people aren't left with /mnt/sysimage mounted in most cases (LiveCDImageMethod.protectedPartitions): Mark the live image partition as protected
* 2007-04-13 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-04-131-3/+3
| | | | | | * livecd.py (LiveCDCopyBackend._doFilesystemMangling): Fix restorecon to do the right thing; we were ending up with files starting with // and then files were mis-labeled (#236282)
* 2007-04-05 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-04-051-3/+3
| | | | | | * livecd.py (LiveCDCopyBackend.doInstall): Make the progress advance. (LiveCDImageMethod.postAction): Disable this for now as it doesn't quite seem to work
* 2007-04-05 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-04-051-1/+1
| | | | * livecd.py (LiveCDCopyBackend.doInstall): Make the progress advance.
* 2007-04-04 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-04-041-0/+4
| | | | | | | | | * livecd.py (LiveCDImageMethod.postAction): Unmount filesystems in the live case before continuing on. * installclass.py (BaseInstallClass.postAction): Call the method postAction * installmethod.py (InstallMethod.postAction): Add a method to be called in post action for unmounting things in the live case
* 2007-04-04 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-04-041-31/+27
| | | | | | | | | | | * liveinst/liveinst.xinit: Work with changes for running from RAM/usb stick * liveinst/liveinst.sh: Adjust to use the block device instead of the mount point as the interesting part of the live image. * livecd.py: Changes so that we can work with the live image running from RAM or from a USB stick
* 2007-04-02 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-04-021-0/+1
| | | | * livecd.py: Add missing import
* 2007-03-28 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-03-281-0/+25
| | | | | | * livecd.py (LiveCDCopyBackend.doRepoSetup): Check that we have sufficient disk space for the os.img. (#230943) * backend.py (doRepoSetup): If repo setup fails, go back.
* 2007-03-28 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-03-281-8/+26
| | | | | | | | | | * livecd.py (LiveCDCopyBackend._doFilesystemMangling): Call refresh method so that we don't end up with a hung looking UI during filesystem resizing, etc (#224213) * gui.py (WaitWindow.refresh): Add refresh method * cmdline.py (WaitWindow.refresh): Likewise. * text.py (WaitWindow.refresh): Likewise.
* 2007-02-28 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-02-281-1/+2
| | | | | | | | | | * yuminstall.py: Use new progress API * livecd.py: Likewise. * iw/progress_gui.py: New progress screen interface that's more suited to different backends * textw/progress_text.py: Likewise. * cmdline.py (progressDisplay): Likewise.
* 2007-01-18 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-01-181-1/+1
| | | | | | * xsetup.py (XSetup.writeKS): Don't redefine str * livecd.py (LiveCDCopyBackend._doFilesystemMangling): Fix syntax error
* 2007-01-18 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-01-181-1/+1
| | | | * livecd.py (LiveCDCopyBackend._doFilesystemMangling): Fix syntax error
* 2007-01-18 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-01-181-0/+16
| | | | | | | * livecd.py (LiveCDCopyBackend._doFilesystemMangling): Remove mountpoint dirs (LiveCDCopyBackend._doFilesystemMangling): Hack to reset file contexts on copied directory trees. Our copy should do the preserving.
* 2007-01-18 Jeremy Katz <katzj@redhat.com>Jeremy Katz2007-01-181-0/+269
* syslogd.py (InstSyslog.start): Ensure that we have a syslogd or don't try to start. Otherwise, we end up hanging things * yuminstall.py (YumBackend.__init__): yum installs can do package selection * livecd.py: Add live CD image copy backend and install method. * installclasses/fedora.py: Handle installclass API changes; allow livecd method * installclass.py (BaseInstallClass.setSteps): Take anaconda instead of dispatch as an argument; use so that the backend upgrade allowing + package selection can work (BaseInstallClass.setDefaultPartitioning): Make it easier to default to no-LVM * kickstart.py (Kickstart.setSteps): Tweak for calling change * upgradeclass.py (InstallClass.setSteps): Likewise. * installclasses/rhel.py (InstallClass.setSteps): Likewise. * anaconda: Pass anaconda to instClass.setSteps; don't depend on the existence of /mnt/runtime/... with x_already_set * backend.py (AnacondaBackend.__init__): Let the backend define whether or not upgrades are supported (AnacondaBackend.doPreInstall): postInstall kills the log, start it in the pre (AnacondaBackend.initLog): Ensure the dir we want to use exists (writeConfiguration): Write instdata before backend bits