| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
| |
|
| |
|
| |
|
| |
|
|
|
|
|
|
|
| |
Remove the ANACONDAVERSION environment variable and embed the version
number at build time. The isys.getAnacondaVersion() function returns
the version number to Python code. If need be, it can be extended to
libisys.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
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 need to use dbus and udev now, instead of the HAL interface. In
the future, we need to adapt code from storage/udev.py to be less tied
to block devices, since network devices use this same interface now.
|
|
|
|
| |
Adjust memory requirements.
|
| |
|
|
|
|
|
|
|
|
| |
libisys and loader lacked handling for the LAYER2 and PORTNO settings
present on s390x systems.
Also include the fix for #468755 to write layer2=1 rather than layer=2
to the ifcfg-DEVICE file.
|
| |
|
| |
|
| |
|
|
|
|
|
| |
Only read in 63 bytes, to make sure we preserve any trailing NULs for
end of string.
|
| |
|
|
|
|
|
|
|
| |
This appears to be the source of the problem, and fixes the issue
in brief testing. It is completely baffling to me why this would only
manifest now; it's not like this code has changed since it was
added.
|
|
|
|
|
|
|
|
|
|
| |
Remove minihal.py and use NetworkManager to get a list of device names
and their hardware addresses. Still have to talk to hal via D-Bus to
build a description string, but the hal path is given to us by
NetworkManager, so we are sure we are only building a list of interfaces
that NetworkManager knows about and can communicate with.
Also rewrite command-stubs/list-harddrives to not use minihal.
|
|
|
|
|
|
|
| |
This patch makes resetFileContext return the context (a string)
on success, and None on failure. This fixes the "set SELinux
context for newly mounted ..." log messages to actually show
the context set.
|
|
|
|
|
|
| |
In kickstartNetworkUp(), call is_nm_connected() to see if we are in
NM_STATE_CONNECTED. If we are in any other state, prompt for network
configuration and start NetworkManager.
|
|
|
|
|
| |
Call the umount(8) command when unmounting filesystems through isys so
that /etc/mtab is updated.
|
|
|
|
|
|
| |
Turn doPwMount() in to a mount command wrapper. We're already calling
mount(8) and capturing error messages so we can pass them back up to our
Python code, so the same for unmounting filesystems.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Our C-code isys EDD BIOS disk order detection is broken in 2 ways atm:
1) It tries to open "sda" instead of "/dev/sda"
2) It tries to open floppies and when it fails, it aborts further device
scanning
Besides that it didn't work with dmraid setups due to the following issues:
3) The C-code will not identify a device by the mbr signature from the
EDD BIOS info, if multiple devices match the signature, however
if we have a fakeraid mirror for example we will have 3 matching devices
both the 2 raw disks and the device mapper device.
4) The python code was using /dev/mapper/longName names where as the
C-code uses /dev/dm-#
5) The python code was calling the C-code (which builds a cache) before it
setup the dmraid sets, so those were not known to the C-code
|
| |
|
| |
|
|
|
|
|
|
| |
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
|
|
|
|
|
|
| |
Be more defensive about what we get back from the _isys module. Do
not assume we get an error string. If it's empty, place None in the
tuple.
|
| |
|
|
|
|
|
| |
If NULL is given as the last parameter to doPwMount(), do not try
to dereference it.
|
| |
|
|
|
|
| |
Use True/False over 1/0. It's the future.
|
|
|
|
| |
{-1,-1} isn't the right way to send infinity to ppoll(), NULL is.
|
| |
|
|
|
|
|
|
| |
This patch gets iscsi going with the new storage code. There are still
a few hicups left (such as NetworkManager downing the interface our / is on),
but I'll address those in separate patches.
|
|
|
|
|
|
|
| |
These no longer belong in isys.py as putting them in the classes is much
more correct. I also put a mediaPresent method on Device in general.
This will come in handy when we start dealing with USB CF readers and
similar devices that can be present without having media.
|
| |
|
| |
|
|
|
|
|
|
|
|
|
| |
To get a parted.Device object, we call:
parted.getDevice(path)
To create a new parted.Disk object, we need a parted.Device and
we call:
parted.Disk(device=parted.Device)
|
| |
|
|
|
|
|
|
| |
Can't cast from a void pointer to struct mii_ioctl_data. Create
a local variable and copy in to struct ifreq and back out again
to do the same thing.
|
| |
|
|
|
|
| |
Various packaging fixed from review (#225246)
|
| |
|
|
|
|
|
|
|
|
| |
Last dbus removal patch for code written in C. This one changes
iface_ip2str() to use libnm-glib to get the IPv4 address of the
specified interface.
[rawhide]
|
|
|
|
| |
These functions are not used in anaconda by anything.
|
|
|
|
|
|
|
|
|
|
|
| |
The first patch in a two (possibly three) patch series that replaces
some direct D-Bus code with libnm-glib calls. Much less verbose,
easier to read, etc, etc.
Tested this patch locally and all seems well. Calling it a day for
now.
[rawhide]
|