| Commit message (Collapse) | Author | Age | Files | Lines |
| |
|
|
| |
IT IS ACCOMPLISHED.
|
| |
|
|
|
| |
This was causing the wrong url to be used when looking for RHUpdates/,
updates.img and product.img on an nfs .iso install.
|
| |
|
|
|
|
| |
get_file_list can return a NULL, or a NULL terminated array (which could
have the NULL in the first element) so both conditions need to be
checked when using the result.
|
| |
|
|
|
|
|
| |
/mnt/sysimage stays where it is because that's fairly widely established and
known outside anaconda, whereas all these other mount points are private
anaconda knowledge. /mnt/source is somewhat widely used, but I have cautioned
people about getting used to that.
|
| |
|
|
| |
Related NM bugs: #672282, #604334
|
| | |
|
| | |
|
| | |
|
| | |
|
| |
|
|
|
| |
rindex can return a NULL and the strcmp needs to check for .iso
otherwise any file without .iso would cause a segfault
|
| | |
|
| |
|
|
|
|
| |
We're not looking for the stage2 image anymore, so stop referring to
"installation image". Also, there's no prompting to do for rescue mode
anymore either.
|
| |
|
|
|
|
|
| |
The function simply does not know that nfsiso is a thing that can be done
so when the source entered in the UI doesn't contain a .treeinfo file,
it gives up. Instead, it also needs to try looking for and mounting ISO
images.
|
| |
|
|
| |
Related: rhbz#678414
|
| |
|
|
|
| |
Running the commands will now require operating on PyObjects, and I don't
want to expose that outside of kickstart.c.
|
| | |
|
| | |
|
| |
|
|
|
|
| |
Break mountNfsImage apart into the two most useful things it does: (1) Display
a UI for getting NFS parameters, and (2) Fetch product.img and updates.img. It
is no longer required to get the install.img.
|
| | |
|
| |
|
|
|
|
|
| |
This is required so the source layout and package layout have a similar enough
structure to make our test setup work. Without this move, you can't run
"make check" or checkbot without getting error messages about no such module
pyanaconda.booty.
|
| |
|
|
|
| |
copyUpdatesImg and copyProductImg require that their argument be mounted and
accessible before the copy is performed.
|
| |
|
|
|
| |
We were previously trying to look for these two up a directory level by
trimming off more of the path than needed.
|
| |
|
|
|
|
| |
: -> ;
Related: rhbz#587696
|
| |
|
|
| |
Related: rhbz#587696
|
| |
|
|
| |
makes unpretty log messages.
|
| |
|
|
|
|
|
|
|
|
| |
The patch allows us to NFS mount an uncompressed directory as stage2 for
instance like this:
stage2=nfs:10.34.27.9:/pub/pungi/20100407/i386/os/images/squashfs-root
During development this is useful because we can avoid lengthy mksquashfs
calls.
|
| |
|
|
|
|
| |
This is in preparation to use logging from imount.c. We don't want a dependency
of isys on loader, instead move logging code into isys and change loader sources
to use the log.h header in isys.
|
| |
|
|
|
| |
All previous comments about test mode being untested apply to loader, but
doubly so.
|
| |
|
|
| |
This is a migration of the patch 22e2548cbb41a0c32fa3a0a2e67e67bbf3109155 from rhel5-branch, BZ#493052.
|
| |
|
|
|
|
|
|
|
| |
terminates program in OOM scenarios.
This is to avoid having to copy-paste the asprintf-log-abort if branch
all the time. This commit also modifies existing asprintf() calls to
use the new macro in places where the change wouldn't modify program's
semantics.
|
| |
|
|
|
| |
We have glib for other things, so we can use it for option parsing and
dump another library dependency.
|
| |
|
|
|
|
| |
Makes sure that NFS options can be used in both parameters. Previously
this was only parsed for ks= and not for stage2= using two separate
code paths. Move this to a shared function in loader/nfsinstall.c.
|
| |
|
|
|
| |
Also, rip out all the username/password stuff too. That's not needed for
nfs.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
| |
We need to clear stage2Data when going back so that
* we don't sigsegv on it later if we change nfs method to url (and also if
we change from url to nfs in case of location specified via ks or boot opts)
* we don't try to fetch stage2 from the location in stage2Data right after
reselecting the method.
Also fixes [C] and [A] from
https://www.redhat.com/archives/anaconda-devel-list/2009-August/msg00043.html
(sigsegv after going Back when incorrect stage2 url is specified via ks or boot
params) which were partly fixed by Jeremy's
ad1e95df0e277442a19f7989afe3bd758cfccb47.
|
| | |
|
| |
|
|
|
|
|
| |
This fix makes loaderData->stage2Data be initialized unconditionally.
Without it, we sometimes get a garbage pointer there, and that results
in a segfault (if you're lucky) in mountNfsImage when it tries to use
the data.
|
| |
|
|
|
|
| |
This reverts commit 5a0189827c1c6db21ecbfd01f00ee1f5edbb7a77.
gcc-4.4.0-0.31 in rawhide fixes the problem we were seeing.
|
| |
|
|
|
|
|
|
|
| |
Problem with -O2 and some string functions with the latest version of
gcc in rawhide. Work around the problem for now so we can compile,
ideally we can revert this patch in the future.
gcc bug:
https://bugzilla.redhat.com/show_bug.cgi?id=492973
|
| | |
|
| |
|
|
|
|
|
|
|
| |
This is a much more readable and reasonable patch to restore the
'ks' boot option functionality. The nextserver and bootfile are
read from the DHCP option set and used to build the URL to find
the kickstart file.
[rawhide]
|
| |
|
|
|
| |
Mount options are handled elsewhere, we do not need to store them
in the instRepo variable.
|
| |
|
|
|
|
| |
We don't really need to do this anymore because if the user has
provided an invalid host, the mount will fail and we pop up the
dialog box anyway.
|
| |
|
|
|
|
|
|
|
| |
Since we're using NetworkManager, just try things and see if they
work. For example, try to do a hostname lookup when mounting the
NFS source. If it works, we have working DNS and can move on.
If it fails, we can tell the user they are missing DNS information
and maybe they'll get the hint to either configure DNS servers or
to specify the NFS source using an IP address.
|
| | |
|
| |
|
|
|
| |
iface_ip2str() requires the interface device name and the address
family (e.g., AF_INET).
|
| |
|