Bug 1491957

Summary: system not bootable - can not switch root - /usr/lib/os-release.d missing
Product: Red Hat Enterprise Linux 7 Reporter: Marian Csontos <mcsontos>
Component: redhat-releaseAssignee: Lubos Kocman <lkocman>
Status: CLOSED DUPLICATE QA Contact: Release Test Team <release-test-team-automation>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 7.5CC: alex.williamson, avagarwa, coughlan, dtodorov, jstodola, kdudka, sdodson
Target Milestone: pre-dev-freezeKeywords: Regression
Target Release: 7.5   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: If docs needed, set a value
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2017-09-29 08:56:33 UTC 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: 1469559    

Description Marian Csontos 2017-09-15 06:52:51 UTC
Description of problem:
After updating 7.4 machine system is not bootable - can not switch root - /usr/lib/os-release.d missing.
There is only os.release.d. See the dot instead of dash? I have not spotted it.

Version-Release number of selected component (if applicable):
redhat-release-7.5-0.4.el7.x86_64

How reproducible:
100%

Steps to Reproduce:
1. install 7.4
2. update to 7.5
3. reboot
4. boom

/etc/os-release -> ../usr/lib/os-release
/usr/lib/os-release -> ./os.release.d/os-release-rhel

There is no /usr/lib/os-release.d, only os.release.d

Actual results:
system not bootable

Expected results:
system should boot

Additional info:
When reinstalling redhat-release I got followin warning:

  Installing : redhat-release-7.5-0.4.el7.x86_64                                                    1/1 
/var/tmp/rpm-tmp.PPdfQr: line 11: syntax error: unexpected end of file
warning: %posttrans(redhat-release-7.5-0.4.el7.x86_64) scriptlet failed, exit status 2
Non-fatal POSTTRANS scriptlet failure in rpm package redhat-release-7.5-0.4.el7.x86_64
  Verifying  : redhat-release-7.5-0.4.el7.x86_64                                                    1/1 

Installed:
  redhat-release.x86_64 0:7.5-0.4.el7                                                                   

Complete!
[root@r-bot-rhel74 lib]# ls -ld os-release* os.release.d os.release.d/*
lrwxrwxrwx 1 root root   30 Sep 15 08:47 os-release -> ./os-release.d/os-release-rhel
drwxr-xr-x 2 root root 4096 Sep 15 08:47 os.release.d
-rw-r--r-- 1 root root  495 Sep 13 10:57 os.release.d/os-release-rhel
-rw-r--r-- 1 root root  603 Sep 13 10:57 os.release.d/os-release-server

Comment 2 Lubos Kocman 2017-09-18 10:08:49 UTC
Ah thanks, most likely happened as part of merging redhat-release package into one.

Lubos

Comment 6 Lubos Kocman 2017-09-29 08:56:33 UTC

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