Bug 1409649 - initscripts contain old links (fedora-autorelabel.service, fedora-autorelabel-mark.service)
Summary: initscripts contain old links (fedora-autorelabel.service, fedora-autorelabel...
Alias: None
Product: Fedora
Classification: Fedora
Component: initscripts
Version: 25
Hardware: x86_64
OS: Linux
Target Milestone: ---
Assignee: systemd-maint
QA Contact: Fedora Extras Quality Assurance
Depends On:
TreeView+ depends on / blocked
Reported: 2017-01-02 18:20 UTC by slartibart70
Modified: 2017-08-02 13:15 UTC (History)
14 users (show)

Fixed In Version:
Doc Type: If docs needed, set a value
Doc Text:
Clone Of:
Last Closed: 2017-08-02 13:15:42 UTC
Type: Bug

Attachments (Terms of Use)

System ID Private Priority Status Summary Last Updated
Red Hat Bugzilla 1416588 0 unspecified CLOSED systemctl bash completion prints unrelated message 2021-02-22 00:41:40 UTC

Internal Links: 1416588

Description slartibart70 2017-01-02 18:20:00 UTC
Description of problem:

Install docker on fedora25
as root, try to do a 'systemctl start docker.service' by just typing:
systemctl start docker<tab>

Now, you will not see the following 'completion':
"systemctl start dockerUnit fedora-autorelabel-mark.service could not be found."

After having started docker, try it again by typing:
systemctl start docke<tab>

Now, you get the following 'completion':
systemctl start dockeUnit cloud-init.service could not be found.

This only seems to happen when 'starting' services, esp. docker (did not try others) and is a bit annoying...

Comment 1 Edgar Hoch 2017-01-09 17:22:31 UTC
This bug is assigned to the wrong component. It should be changed to initscripts.

initscripts-9.69-1.fc25 contains the following links which points to files that doesn't exist:

lrwxrwxrwx. 1 root root   34 31. Aug 09:41 /usr/lib/systemd/system/basic.target.wants/fedora-autorelabel-mark.service -> ../fedora-autorelabel-mark.service
lrwxrwxrwx. 1 root root   29 31. Aug 09:41 /usr/lib/systemd/system/basic.target.wants/fedora-autorelabel.service -> ../fedora-autorelabel.service

The autorelabel service files was moved to package policycoreutils, and renamed. 

The links in package initscripts should be changed to point to

The name of the bug should changed to something like "initscripts contains old links (fedora-autorelabel.service, fedora-autorelabel-mark.service)".

Comment 2 slartibart70 2017-01-09 19:28:59 UTC
workaround by removing links and recreating them seems to solve the problem.
Renamed bug report and assigned it to initscripts

Comment 3 Zbigniew Jędrzejewski-Szmek 2017-01-10 06:25:42 UTC
Sounds like a bug in our completion scripts too...

Comment 4 Lukáš Nykrýn 2017-01-10 10:52:24 UTC

Comment 5 Zbigniew Jędrzejewski-Szmek 2017-01-11 22:40:01 UTC

Comment 6 luigi67 2017-02-12 17:05:45 UTC
I adopted  the workaround proposed by slartibart70, but as secondary effect I obtain that Fedora 25 reboots  every 3 minutes about.

I made these links

ln -s /usr/lib/systemd/system/selinux-autorelabel.service /usr/lib/systemd/system/basic.target.wants/fedora-autorelabel.service

ln -s /usr/lib/systemd/system/selinux-autorelabel-mark.service /usr/lib/systemd/system/basic.target.wants/fedora-autorelabel-mark.service

After these Fedora reboots  every 3 minutes about.

Comment 7 slartibart70 2017-02-13 13:00:40 UTC
sorry, but you're not alone.
I only wanted to indicate that renaming fixes the problem with the commandline-completion, but, as you already found out, it has some side-effects ... :-(
Still waiting for the 'holistic' fix for the problem

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