--- /dev/null
+--- geninitrd-12757/functions.orig 2015-11-09 13:02:48.000000000 +0100
++++ geninitrd-12757/functions 2016-06-21 20:39:25.851674448 +0200
+@@ -303,9 +303,9 @@
+ '
+ }
+
+-# get possible paths for specifed patter containing LIBDIR
++# get possible paths for specifed pattern containing LIBDIR
+ get_libdir() {
+ for dir in lib lib64 libx32; do
+- echo -n "${1/LIBDIR/$dir} "
++ echo -n "$1 " | sed -e "s,LIBDIR,${dir},g"
+ done
+ }
--- /dev/null
+--- geninitrd-12757/geninitrd.orig 2016-06-21 17:52:10.293075494 +0200
++++ geninitrd-12757/geninitrd 2016-06-21 20:37:02.375785058 +0200
+@@ -293,8 +293,12 @@
+ run_mounted=no
+ fi
+ if is_yes "$dev_mounted"; then
++ if ! is_no "$START_UDEV"; then
++ add_linuxrc <<-EOF
++ mount --bind /dev /newroot/dev
++ EOF
++ fi
+ add_linuxrc <<-EOF
+- mount --bind /dev /newroot/dev
+ umount /dev
+ EOF
+ dev_mounted=no
Summary(pl.UTF-8): Narzędzie do tworzenia inicjalnego ramdysku używanego przy starcie systemu
Name: geninitrd
Version: 12757
-Release: 6
+Release: 7
License: GPL
Group: Applications/System
Source0: %{name}-%{version}.tar.gz
# Source0-md5: 3fb153489c3c245e5c1ee4bbc333acb4
Patch0: %{name}-git.patch
+Patch1: %{name}-static-dev.patch
+Patch2: %{name}-posix-sh.patch
URL: http://git.pld-linux.org/?p=projects/geninitrd.git
BuildRequires: xmlto >= 0:0.0.18-1
Requires: /usr/bin/ldd
bieżących informacji zawartych w /etc/modules.conf.
%prep
-%setup -qc
-mv %{name}-%{version}*/* .
+%setup -q
%patch0 -p1
+%patch1 -p1
+%patch2 -p1
%build
%{__make}