Note: This is a public test instance of Red Hat Bugzilla. The data contained within is a snapshot of the live data so any changes you make will not be reflected in the production Bugzilla. Email is disabled so feel free to test any aspect of the site that you want. File any problems you find or give feedback at bugzilla.redhat.com.
Bug 1802482
Summary: | move the installer use zdev for configuring persistent devices | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Dan Horák <dan> |
Component: | anaconda | Assignee: | Dan Horák <dan> |
Status: | ASSIGNED --- | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | unspecified | ||
Version: | 33 | CC: | anaconda-maint-list, bugproxy, jkonecny, jonathan, jstodola, kellin, tstaudt, vanmeeuwen+fedora, vponcova, wwoods |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | s390x | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | If docs needed, set a value | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | Type: | Bug | |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: | |||
Bug Depends On: | |||
Bug Blocks: | 467765 |
Description
Dan Horák
2020-02-13 09:45:49 UTC
DASDs - /etc/dasd.conf is written by _write_dasd_conf() in pyanaconda/storage/installation.py - /etc/dasd.conf is read by dracut_setup_args() in blivet/devices/disk.py to produce a set of kernel command line parameters (rd.dasd=...), but this is not required when zdev udev rules are in place - /etc/dasd.conf must exists for the (legacy) 95dasd module to work, so we will keep it empty - for setting up the DASDs we will need to prepare the "export/import" file and feed it into chzdev in the sysimage chroot, reuse _write_dasd_conf() - zdev dracut module detects disks for rootfs from the running system, how this will work for the installer environment?? - last step in the converion process will be removal of dasd.udev and dasdconf.sh from s390utils and adapt device_cio_free zFCP/SCSI - I think similar process like for DASDs can be used You can watch the progress of my proof-of-concept at https://github.com/sharkcz/anaconda/commits/zdev It should be capable of - converting the internal DASD storage config into a "export/import" file that chzdev can read/process - write the individual device udev rules at the end of the installation just before initrd will be (re)created - the created initrd should pick up automagically the rules required for the root fs, thanks to zdev's dracut module Right now we use /etc/zdev.conf (only /etc exists in the time when it's written) in the system being installed and run "chzdev" in the sysroot. Other option is to use a local file and run "chzdev" with "--base /etc=$sysroot/etc" option. a brief status update - the changes in the zdev branch seems to work for initializing DASDs, but chzdev has a bug, so it cannot find all devices for root fs (see the linked github issue) - anaconda still adds rd.dasd= parameters on the kernel command line, this can be omitted - we use/create /etc/zdev.conf in the installed system for the initial import by chzdev, we should remove it at the installation end or move it to /root or /var/log/anaconda, for reference only This bug appears to have been reported against 'rawhide' during the Fedora 33 development cycle. Changing version to 33. |