summaryrefslogtreecommitdiffstats
Commit message (Collapse)AuthorAgeFilesLines
* ccw.udev: tolerate synthetic ADD and CHANGE ueventsHEADmasterJulian Wiedmann2021-11-261-1/+1
| | | | | | | | | | | | | | | | | | | | | | Process ADD and CHANGE uevents as prior to the blamed commit. These can be injected from userspace, and the ADD uevent is important for devices that get enumerated during early boot (ie. prior to rootfs being mounted). udev later cold-plugs them into the system via synthetic ADD uevents (see systemd-udev-trigger.service) to trigger the rule processing. As we're not getting synthetic BIND uevents for such devices, matching on the ADD uevents is needed to get networking set up for eg. initramfs-less systems. Note that we're still restricting the matching to devices with the expected DRIVER attribute. Fixes: 4b1fc32788a3 ("ccw.udev: match BIND uevent for ccw network devices") Reported-by: Sven Schnelle <svens@linux.ibm.com> Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com> Tested-by: Sven Schnelle <svens@linux.ibm.com>
* ccw_init: use DRIVER environment variableJulian Wiedmann2021-07-081-2/+1
| | | | | | | As the ccw.udev rule now only matches BIND uevents, $DRIVER is always set and we don't need to extract it from sysfs. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
* ccw.udev: don't match CHANGE uevent for ccw network devicesJulian Wiedmann2021-07-081-1/+1
| | | | | | | There's nothing in the kernel that would raise a CHANGE uevent for ccw devices, so don't match it until we know what the semantics might be. Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
* ccw.udev: match BIND uevent for ccw network devicesJulian Wiedmann2021-07-081-11/+2
| | | | | | | | | | | | | | | | | | | | | Instead of matching the ADD uevent for a hard-coded list of ccw device types, wait until the device is actually bound to a driver that follows the ccwgroup model. This way we don't need to maintain a hard-coded list of device types, and avoid trying to apply a configuration for devices that the kernel drivers don't even support. Also when building the ccwgroup device via /sys/bus/ccwgroup/.../group, the ccwgroup bus code requires that the ccw devices are bound to the correct ccw_driver. So matching the ADD uevent seems too early. This eliminates support of some truly ancient device types (P390, CLAW), and allows for phasing out support of eg. OSN and OSX. Note that this requires kernel-side support that was added in 4.14 with commit 1455cf8dbfd0 ("driver core: emit uevents when device is bound to a driver"). Signed-off-by: Julian Wiedmann <jwi@linux.ibm.com>
* zfcpconf: set exit code explicitly (#1977434)Dan Horák2021-06-301-1/+2
|
* device_cio_free: fix service order after switching to real root file system ↵Dan Horák2021-06-171-1/+1
| | | | (#1790496, #1790790)
* device_cio_free: drop obsolete option in service unit definitionDan Horák2021-06-161-1/+0
|
* update ccw_init and device_cio_free for new NetworkManager defaultDan Horák2020-10-072-1/+24
| | | | | | | | update scripts for https://fedoraproject.org/wiki/Changes/NetworkManager_keyfile_instead_of_ifcfg_rh that will be implemented in Fedora 33. In addition to ifcfg files we must look at the NM keyfiles too. New systems will use keyfiles only, but upgraded systems use ifcfg still.
* zfcpconf: add support for automatic LUN scanningDan Horák2020-08-251-0/+13
|
* zfcpconf: move device onlining to an own functionDan Horák2020-08-251-2/+9
|
* - avoid dependency on network-scripsJakub Čajka2020-06-011-2/+11
|
* device_cio_free - add [install] sectionDan Horák2018-09-171-1/+4
| | | | script had moved to /usr/sbin
* cpi service is now in upstreamDan Horák2018-09-172-135/+0
|
* zfcpconf: remove bashism in comparisonDan Horák2015-04-071-1/+1
|
* device_cio_free: move the udevadm settleDan Horák2014-03-051-1/+1
| | | | | | | | Having the udeavdm settle call in the global wait_on_devices function causes a 2 minutes delay during normal startup. Until the cause is known move it just to the wait after freeing aa specified set of devices. https://bugzilla.redhat.com/show_bug.cgi?id=1054691#c15
* device_cio_free: move cio_settle use into wait_on_devicesDan Horák2014-03-041-6/+8
| | | | | | Use cio_settle mechanism in both paths where wait_on_devices is used. Also issue udevadm settle to resolve timing issues when anaconda (or rather blivet) discovers new zFCP devices.
* check current online state before setting zfcp device onlineDan Horák2014-01-151-1/+2
| | | | zfcpconf.sh tries to online a zfcp device multiple times (rhbz#1042496)
* don't depend on obsoleted interface (#957847)Dan Horák2013-05-021-1/+1
|
* Make sure errors go to stderrJesse Keating2012-05-251-5/+5
| | | | | We pipe the output of this script into a file, so we don't want any error strings to leak into it.
* Handle multiple DASD formatsJesse Keating2012-05-251-69/+77
| | | | | | | | | Format A from CMSCONFFILE or parm file, <range>(feature),<range>(feature) Format B from zipl.conf, <dasd>,feature=N We have to support and "normalize" both.
* add script that normalizes DASD data into valid dasd.conf format (Jesse Keating)Dan Horák2012-05-231-0/+112
|
* Revert "run device_cio_free after rcS"Dan Horák2012-05-231-1/+1
| | | | This reverts commit 7f5df88d984fcecb086a41bb96cf9cc423c77f19.
* run device_cio_free after rcSDan Horák2012-03-011-1/+1
| | | | | Running the device_cio_free job when rcS is in the stopped state should solve a race between device_cio_and and /proc possibly not yet mounted (rhbz#752146)
* add systemd unit for device_cio_freeDan Horák2011-04-271-0/+10
|
* use the right variable when setting the "protocol" optionDan Horák2011-04-131-1/+1
|
* use the /proc/cio_settle interface to wait until devices become onlineDan Horák2011-02-011-1/+7
| | | | | | | The /proc/cio_settle interface (if available) is used to wait until devices become online. It should seedup the whole process of unblocking devices and also solves situations when non-existent devices are unblocked and timeout is reached when waiting for every such device.
* add 1731/02 deviceDan Horák2010-09-231-0/+1
|
* switch from SYSFS to ATTRS in the rulesDan Horák2010-09-231-9/+9
|
* break the long line into 2 shorter onesDan Horák2010-07-191-1/+2
|
* return a placeholder when no config file existsDan Horák2010-06-291-1/+1
|
* devices need to be in lower caseDan Horák2010-06-291-2/+2
|
* run grep in a defined localeDan Horák2010-06-281-3/+3
| | | | grep should be run with a predefined locale to get reproducable results
* ignore interface config files that match the expression in ↵Dan Horák2010-06-281-1/+11
| | | | | | | __sed_discard_ignored_files device_cio_ignore should match the behaviour of the initscripts network setup functions and ignore the config files that match the expression in __sed_discard_ignored_files
* CPI is available only on LPAR, remove the reference to z/VMDan Horák2010-06-231-2/+2
|
* cleanupDan Horák2010-05-281-1/+1
|
* improve processing of devices given on command lineDan Horák2010-05-281-1/+11
| | | | | When the DEVICE variable exists in the environment that calls device_cio_free then the devices from the command line are appended to this value (rhbz#595569).
* save the IFS variable only once at the beginningDan Horák2010-05-191-3/+1
|
* make ccw_init compatible with posix shellDan Horák2010-05-191-2/+6
|
* ORIG_OPTIONS are not use anywhereDan Horák2010-05-181-1/+0
|
* fix IFS usageDan Horák2010-05-171-1/+6
|
* remove inaccessible codeDan Horák2010-05-171-4/+0
|
* document the requirement of sedDan Horák2010-05-051-1/+1
|
* replace seq with a while cycleDan Horák2010-05-051-4/+10
| | | | | Cecause the seq utility lives in /usr/bin and the script must be runnable without the /usr filesystem mounted, it's replaced by a while cycle.
* switch from tr to sedDan Horák2010-05-053-4/+4
| | | | | use sed for lowercase (and comma to space) substitutions because it lives in /bin while tr lives in /usr/bin and thus requires /usr to be mounted
* drop /usr from PATHDan Horák2010-05-053-3/+3
| | | | The scripts can be run in an environment where /usr is not mounted yet.
* Merge branch 'new-ccwinit'Dan Horák2010-05-052-41/+142
|\
| * use ccw udev rules from dracutnew-ccwinitDan Horák2010-04-281-9/+12
| |
| * remove printing of debug informationDan Horák2010-04-281-16/+0
| |
| * merged ccw_initDan Horák2010-04-071-32/+146
| | | | | | | | | | This is second version of the merged ccw_init script that is shared between dracut and udev.
* | add info about external dependencies and environmentsDan Horák2010-04-211-0/+7
| |