| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
| |
|
|
|
|
|
| |
iutil.execWithRedirect() stopped doing anything with searchPath in 2006
when clumens committed d0dec24. Remove these silly vestigal bits.
|
|
|
|
|
|
|
| |
This is yet another way of running anaconda that gets extremely limited use,
no testing, and no consideration during development to making sure it still
works. Again, we need to stop pretending and get rid of modes that we don't
support.
|
|
|
|
|
|
|
| |
There's various reasons why these two could fail. For instance, running
lsetfilecon on any filesystem that doesn't support it (vfat is the big one,
but there are others) would result in a failure. This probably shouldn't
take down anaconda.
|
|
|
|
|
|
| |
We were previously using tests that have diverged from what's going on in
yuminstall.py, so this brings the two backend tests into using the same
concept.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add support for storing an X.509 certificate used to encrypt the escrow
data, and a "create backup passphrase" flag, to storage.formats.LUKS,
and support for storing the same options of "autopart" globally to
storage.Storage.
While parsing kickstart directives, download the X.509 certificates
specified in thekickstart file (if any), enabling network access if
necessary, then store the data in the above-described storage objects.
While autopartitioning, copy the "autopart" escrow options into each
created LUKS volume.
Finally, as a part of doPostInstall, find all LUKS volumes with escrow
configured, create the escrow files and store them in /mnt/sysimage/root.
Changes since the previous version:
- Drop unused .encryptedDevice assignments
- Move writeEscrowPackets inside doPostInstall
- Fix bugs introduced while moving code to storage.formats.LUKS
Further changes:
- Don't pass escrow args to lvmpv format constructor.
- Move backup passphrase generation into storage.devicelibs.crypto.
- Use newer, clearer except syntax in storage.writeEscrowPackets.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Add the following methods and properties to class Storage which map
through to FSSet methods, modify existing calls to use the method on
class Storage:
turnOnSwap()
mountFilesystems()
umountFilesystems()
parseFSTab()
mkDevRoot()
createSwapFile()
fsFreeSpace()
mtab
mountpoints
migratableDevices
rootDevice
Callers no longer need to pass the Anaconda object to the FSSet methods
directly. The method on Storage takes care of that.
The mtab() method on FSSet is exposed as a property on Storage. The
same is true for fsFreeSpace().
|
| |
|
|
|
|
|
|
| |
We need to have a sorted list of mountpoints so that our tree of mounts
ends up being correct. This got ost in the translation to the new storage
code
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Most sysfs path handling code expects / uses sysfs path's without the
/sys prefix (as udev does internally). There were 4 functions which were
exceptions to this:
udev_enumerate_devices
udev_enumerate_block_devices
udev_get_device
udev_get_block_device
These expected resp. returned sysfs path's with /sys prefix. This
inconsistency causes the backtrace in bug 516168. Rather then applying a
simple fix for this, this patch makes the sysfs path usage consistent
everywhere, to avoid issues like this in the future.
This patch adjust the above 4 functions and all callers.
|
|
|
|
|
| |
We have lots of strings that we display to users which are unclear or
contain poor usage and grammar. That's bad.
|
| |
|
| |
|
|
|
|
|
| |
We should also fsck the filesystem after the live resize to
ensure that errors don't creep in
|
| |
|
|
|
|
|
|
| |
Ensure that with live installs that the type of the rootfs matches what we
need it to. This used to be done behind the user's back in the livecd
code, but it's probably better to handle more generally like this
|
| |
|
|
|
|
| |
Not sure how this worked yesterday, but order is important
|
|
|
|
|
| |
The storage layer keeps track of uuids for filesystems, so we need
to update it if we change the uuid
|
|
|
|
| |
Fix traceback at end of live installs for the storage branch
|
|
|
|
| |
Use True/False over 1/0. It's the future.
|
| |
|
| |
|
|
|
|
|
|
|
| |
Add a basic way to query a backend for how much space is needed on a
per-partition basis. This isn't always able to be known and if it's
unknown, then you'll get back 0. Add the implementation for / on
livecd
|
|
|
|
|
|
|
|
| |
This fixes a bug where yum wants all the repos set up before it does sack
setup that only appears with the blacklist/whiteout plugins enabled. It
also brings us more in line with how yum really works - where the two are
completely separate steps. backend.doRepoSetup has also been renamed to
backend.doBackendSetup to sound a little less yum-specific.
|
| |
|
|
|
|
| |
* po/sk.po: Typo fix.
|
|
|
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
| |
Encrypted devices, for one, need to be set up before they can be used normally.
|
| |
|
| |
|
|
|
|
|
| |
Need to make sure that the filesystem type of / matches what the live
image is set up with as its rootfs
|
| |
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
| |
|
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
* livecd.py (LiveCDCopyBackend.doPostInstall): Copy over
modprobe.conf from the live system
|
|
|
|
|
|
| |
2007-09-26 Jeremy Katz <katzj@redhat.com>
* livecd.py (LiveCDCopyBackend.doRepoSetup): Fix formatting (#253982)
|
|
|
|
|
|
|
| |
* 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
|
| |
|
|
|
|
|
|
| |
* livecd.py (LiveCDImageMethod.unmountNonFstabDirs): Fix syntax error.
* liveinst/liveinst.sh: Fix path.
|
|
|
|
| |
earlier (Douglas McClendon)
|
|
|
|
|
|
| |
* 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
|