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 1537977 - fedora-import-state not enabled in installer -> kickstart network configuration is broken
Summary: fedora-import-state not enabled in installer -> kickstart network configurati...
Keywords:
Status: CLOSED DUPLICATE of bug 1493479
Alias: None
Product: Fedora
Classification: Fedora
Component: anaconda
Version: rawhide
Hardware: Unspecified
OS: Unspecified
high
high
Target Milestone: ---
Assignee: Anaconda Maintenance Team
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
: 1538638 (view as bug list)
Depends On: 1493479
Blocks: ZedoraTracker
TreeView+ depends on / blocked
 
Reported: 2018-01-24 08:42 UTC by Radek Vykydal
Modified: 2018-07-11 11:43 UTC (History)
9 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Environment:
Last Closed: 2018-02-05 07:39:39 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)


Links
System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1493479 0 high CLOSED Enable fedora-* services from initscripts by default 2022-05-16 11:32:56 UTC
Red Hat Bugzilla 1599664 1 None None None 2022-05-16 11:32:56 UTC

Internal Links: 1493479 1599664

Description Radek Vykydal 2018-01-24 08:42:18 UTC
Description of problem:

In installer fedora-import-service is responsible for copying ifcfg files created in initramfs to installer environment after switch root.

initscripts used to enable fedora-import-service in rpm scriptlet. In F27 the service is enabled via presets mechanism (see bug 1493479) by /usr/lib/systemd/system-preset/90-default.preset from fedora-release package (the fedora-impore-service is no more enabled in F28/rawhide).

Nevertheless, anaconda never used the 90-default.preset. Instead, some required services are enabled via lorax template (https://github.com/rhinstaller/lorax/blob/master/share/templates.d/99-generic/runtime-postinstall.tmpl).

Version-Release number of selected component (if applicable):

latest rawhide, Fedora-Rawhide-20180117.n.1

How reproducible:

Always

Steps to Reproduce:

1. Run installation with network configured in kickstart
2. At the beginning of stage 2 of installation (after Anaconda is started) look at /tmp/ifcfg.log, or into /etc/sysconfig/network-scripts and compare with /run/initramfs/state/etc/sysconfig/network-scripts

Actual results:

ifcfg files created in initramfs (eg kickstart network configuration) are not imported into Anaconda environment (root), fedora-import-state service is disabled

Expected results:

fedora-import-state is enabled, ifcfg files imported from initramfs

Additional info:

I think we can update lorax template to enable the service. Or to go deeper we could probably start using 92-anaconda.preset ?

Comment 1 Radek Vykydal 2018-01-24 08:58:47 UTC
(In reply to Radek Vykydal from comment #0)

> I think we can update lorax template to enable the service. Or to go deeper
> we could probably start using 92-anaconda.preset ?

Patch for the lorax template:
https://github.com/rhinstaller/lorax/pull/306

Comment 2 David Kaspar // Dee'Kej 2018-01-24 16:35:54 UTC
IMHO, this will become an urgent issue quite fast, once F28 Beta is out. We should fix this in BZ #1493479 ASAP.

Comment 3 Radek Vykydal 2018-01-31 13:59:20 UTC
(In reply to Radek Vykydal from comment #0)
 
> Nevertheless, anaconda never used the 90-default.preset. Instead, some
> required services are enabled via lorax template
> (https://github.com/rhinstaller/lorax/blob/master/share/templates.d/99-
> generic/runtime-postinstall.tmpl).

I was wrong here.
 
> I think we can update lorax template to enable the service. Or to go deeper
> we could probably start using 92-anaconda.preset ?

We shouldn't enable the service by lorax template. We should let the presets do the trick.

Comment 4 Radek Vykydal 2018-02-05 07:36:49 UTC
*** Bug 1538638 has been marked as a duplicate of this bug. ***

Comment 5 Radek Vykydal 2018-02-05 07:39:39 UTC
Should be fixed in latest rawhide Fedora-Rawhide-20180204.n.0.

*** This bug has been marked as a duplicate of bug 1493479 ***


Note You need to log in before you can comment on or make changes to this bug.