lorax: Don't delete os-release directories

Doing so prevents the install .iso from booting. First identified under
https://bugzilla.redhat.com/show_bug.cgi?id=1191713 and a second fix
was put in at c0b1063397
(this patch includes both changes).
pull/1/head
Jon Griffiths 8 years ago
parent 20df6b00ff
commit 9ec8f156cf

@ -0,0 +1,13 @@
diff -ur lorax-22.1/share/runtime-cleanup.tmpl lorax-22.1-patch/share/runtime-cleanup.tmpl
--- lorax-22.1/share/runtime-cleanup.tmpl 2014-12-13 11:20:56.000000000 +1300
+++ lorax-22.1-patch/share/runtime-cleanup.tmpl 2016-03-27 04:21:37.534000000 +1300
@@ -27,7 +27,8 @@
## we don't run SELinux (not in enforcing, anyway)
removepkg checkpolicy selinux-policy libselinux-utils
## anaconda has its own repo files
-removefrom fedora-release --allbut /etc/os-release
+removefrom fedora-release --allbut /etc/os-release /usr/lib/os-release \
+ /usr/lib/os.release.d/*
removepkg fedora-release-rawhide
## no user accounts = no account management
removepkg usermode usermode-gtk passwd shadow-utils

@ -17,6 +17,7 @@ License: GPLv2+
URL: http://git.fedorahosted.org/git/?p=lorax.git
Source0: https://fedorahosted.org/releases/l/o/%{name}/%{name}-%{version}.tar.gz
Patch0: 0001_pass_kernel_version_as_an_arg.patch
Patch1: 0002_backport_os_release_deletion_fix.patch
BuildRequires: python2-devel
Requires: GConf2
@ -86,6 +87,7 @@ Anaconda's image install feature.
%setup -q
%patch0 -p1
%patch1 -p1
%build
%install

Loading…
Cancel
Save