| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
| |
A crash occurs after the IPv6 GUI has been enabled when we chose to configure
the network device manually. When the crash is fixed the screen still does not
appear. This patch fixes both the problems.
|
|
|
|
|
|
| |
strcmp() -> strncmp() for ipv6 'auto' comparison. Add back missing
gateway6 member in loaderData. Initialize ipv6 and gateway6 in
loaderData to NULL.
|
|
|
|
|
| |
Default is IPv6 is enabled, but people can pass --disable-ipv6 to the
configure script to disable the IPv6 bits in loader.
|
| |
|
|
|
|
|
|
|
|
|
|
| |
Be default mount makes tmpfs mounts 1/2 RAM size, on 256MB machines, where
part of the RAM is taken up by a shared framebuffer, this results in a
/tmp which is to small to hold install.img, resulting in install failure
when trying to do for example a network installation.
This patch fixes this by specifying a size for /tmp, it uses 250MB which
should be plenty for now and the forseeable future.
|
|
|
|
|
| |
All previous comments about test mode being untested apply to loader, but
doubly so.
|
|
|
|
|
| |
This is to make the anaconda.log have consistent entries from loader and from
stage 2.
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If a read from a block device (like USB key) or a cdrom (USB cdrom) fails, sleep
a bit to give the device some time to initialize. Return status of the mount
command is checked so waiting occurs only if there is a reasonable chance that
the device might eventually come online. This required extending our existing
mounting methods to report the correct mount error code.
I tested that
* the installer still runs
* reading the kickstart from a usb works
* starting the installer with no USB key inserted but a command line argument pointing to a USB drive will trigger the waiting cycle and that when the key is inserted while waiting the kickstart is eventually found on the key.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Recent trees have been giving errors when we get to the stage2 download
point, such as this one:
Unable to retrieve http://download.fedoraproject.org/pub/fedora/linux/development/x86_64/os//images/install.img.
libcurl needs to be initialized inside urlinstTransfer() so it has the
latest network state for the system. The above error is caused by old
DNS settings. libcurl won't automatically do a res_init(), so we need
to set up a new curl instance and use that.
Since this patch moves curl usage to be exclusively within
urlinstTransfer(), move 'curl' to that function as well and remove it
from loaderData.
Add curl cleanup calls at the end of urlinstTransfer().
|
|
|
|
|
| |
We have glib for other things, so we can use it for option parsing and
dump another library dependency.
|
|
|
|
|
| |
Use g_file_get_contents() and g_strsplit() to read in .buildstamp data and
split it up. Remove static buffers.
|
| |
|
|
|
|
|
|
| |
Account for the /boot existing on its own partition or as part of /.
Output the values of the reipl configuration in linuxrc.s390 before
reboot.
|
| |
|
|
|
|
|
| |
Use glib's data structures and string functions in modules.c since we
already have glib. Add in some safety checks as well.
|
|
|
|
|
| |
We don't need hal anymore, so remove it from the initrd.img generation
and stop loader from starting up hald.
|
|
|
|
|
|
| |
The linuxrc.s390 rewrite changed the behavior of RUNKS on RHEL-5. We've
done away with RUNKS on RHEL-6, but we still need to maintain existing
functionality on RHEL-5.
|
| |
|
|
|
|
|
|
|
| |
With rescue copying install.img to /tmp when available_memory>128000k,
this left the machine unable to hold install.img in ram if there is
under 256M of ram. Patch to change that to be based on MIN_GUI_RAM
instead.
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
The edc665e6fa2ba71e89eb83412738622e916c3a05 commit prevented SIGSEGV
but changed behavior of modopts to where we'd never get any values in
modopts.
What needed to happen is the else clause in addOption() needed to
initalize the .options array and add in the option value. That wasn't
happening, so strcat() calls in writeModulesConf() were causing SIGSEGV.
This patch also adds some realloc() and malloc() checks. Tested with
"radeon.nomodeset=1" and without that parameter on x86_64.
|
|
|
|
|
| |
We've got a lot of dead code here. This removes a bunch of it. Also,
it fixes gettimespecofday's math to yield the correct result.
|
|
|
|
|
|
| |
Since we don't want init to exit when we call udevadm, fork first. But
before we do that, may as well wait for our forked udevd to exit, so
there's some chance it's listening for connections.
|
|
|
|
|
|
|
|
|
|
|
| |
Currently if init exits unexpectedly, we get "Kernel panic - not
syncing: Attempted to kill init!" and then a useless kernel traceback
(hey, it went through do_exit()!, who'd'a thunk?) but nothing meaningful
about what went wrong in init. This patch attempts to rectify this
situation by adding the traceback handler from loader to init, as well as
triggering it (in both loader and init) if we exit without going through a
path we've specifically marked, by using doExit() instead of exit(3) or
_exit(2), as not needing a traceback.
|
|
|
|
|
|
| |
This fixes the vim magic to be something it'll actually do something
with. I probably got it wrong the first time, but hey, better usable
than not.
|
|
|
|
|
|
| |
Under certain conditions, modopts is never initialized. This patch
fixes up that while preserving the existing functionality introduced
with 29e18c35.
|
|
|
|
|
| |
If we try to regexec() on NULL it segfaults, so let's try not to do
that...
|
|
|
|
|
|
| |
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.
|
|
|
|
|
| |
CONFIG_NETIUCV has been disabled in the kernel, so remove support for
these devices during installation.
|
|
|
|
|
|
| |
This leaves the sshd support on the s390 intact and functional (testing
needed), and at the same time add the ability to ssh in and get a terminal
on non-s390 platforms.
|
|
|
|
| |
This snuck in as part of another commit when it shouldn't have.
|
|
|
|
|
|
|
|
|
|
|
| |
Because of 8bc669549ddcc7040a5ba56b8afafa18684bac4e and maybe others,
triggering reipl at the end of anaconda is no longer sufficient to be
hit in all different anaconda install paths. Therefore, move the triggering
right after having configured reipl in sysfs and do all in one place.
Now loader must no longer immediately relay SIGUSR1/2 to init,
since anaconda is not nearly finished with installation,
but only remember the state requested by anaconda. Only right before loader
terminates, it kills init with the remembered state to really reboot/halt.
|
|
|
|
|
|
|
|
|
|
| |
This has always been broken for s390x since it was introduced in
67a5a0afb3100e7986ce127b3c2684e01c97304e. The fix ensures that both
s390 and s390x do not start a second shell on the console that collides
with init=linuxrc.s390 blocking on console input and potentially
providing a rescue shell after hitting return.
Apparently LOADER_FLAGS_NOUSB has gone meanwhile but nobody noticed
since this code path referencing it was never compiled on s390x.
|
|
|
|
|
|
|
|
|
| |
The support for boot option "nokill" in shutdown by
ade8105a8515afee24220fd0cc1199e30c1c3142 did not adapt the
standalone version of shutdown (#ifdef AS_SHUTDOWN) so doKill
was always 0. Introduce a new command line option "--nokill" and
otherwise default to doKill=1. While we're at it also provide
a command line option "-P" for poweroff.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
On s390x, linuxrc.s390 brings up the network completely and
writes an NM compliant /etc/sysconfig/network-scripts/ifcfg-<DEVICE>.
Apparently, loader never hits STEP_IP or writeEnabledNetworkInfo().
The latter would convert LAYER2= and PORTNO= into OPTIONS="".
Since it does not seem to be called, linuxrc.s390 now writes OPTIONS="".
Fixed readIfcfgContents() to not swallow OPTIONS which contains '='.
With this in place, network.py writes a correct ifcfg to /mnt/sysimage.
This patch completes ifcfg production on s390x of the following commits:
25f58fe7c701c453d39d2a9c5c0850eefce07f76
9249e40f42ffbbdcf42cd1caad72e3d622c7a75b
5f0fcf6688d08f83826c2892bb9fc97d6b4d7dd0
81163960a6137d39a5f2082e9f8d9f0a7b2ada57
This patch is intended for both devel and F-12.
|
| |
|
|
|
|
|
|
|
|
| |
The livecd includes anaconda, for obvious reasons. However this means that
70-anaconda.rules will be installed on the finished system and running our
rules has some unusual side effects. While we slowly push our udev rules
changes into upstream packages, this should make them a no-op on the
installed system.
|
|
|
|
|
|
| |
(#524417).
Concerns cases when stage2= can't be parsed as http or ftp url.
|
|
|
|
|
|
|
|
|
|
| |
Touch /dev/.in_sysinit, as that stops /lib/udev/rules.d/65-md-incremental.rules
from messing with mdraid sets.
This patch adds the touching twice, once to our own init, for when running
as standalone installer, and once in python for when running from a livecd,
to stop the udev trigger "block" we do will cause
/lib/udev/rules.d/65-md-incremental.rules to trigger in the livecd case.
|
|
|
|
|
|
|
| |
With the new external metadata mdraid support we need to wait for raid
sets to become clean (iow for mdmon to have finished updating the metadata)
before rebooting. Otherwise we get a full array sync on the first boot after
installation.
|
|
|
|
|
|
|
| |
We pass the URL and port as the --proxy= argument, and any authentication
information through /tmp/proxy. This file will be removed by stage2. The
reason for this song-and-dance is so passwords aren't on the anaconda
command line.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
The proxy parameter to be used on the cmdline and in kickstart is
of the form:
proxy=[protocol://][user[:password]@]host[:port]
This is also used as url --proxy= and repo --proxy=.
|
| |
|
|
|
|
|
| |
Also, rip out all the username/password stuff too. That's not needed for
nfs.
|
| |
|
| |
|
| |
|