]> git.pld-linux.org Git - packages/geninitrd.git/commitdiff
This commit was manufactured by cvs2git to create branch 'AC-branch'. AC-branch
authorcvs2git <feedback@pld-linux.org>
Mon, 9 Jan 2012 12:29:54 +0000 (12:29 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Cherrypick from master 2012-01-09 12:29:54 UTC Elan Ruusamäe <glen@pld-linux.org> '- at 12462':
    geninitrd-gzip-compressor.patch -> 1.2
    geninitrd-romfs.patch -> 1.2
    geninitrd.spec -> 2.196

geninitrd-gzip-compressor.patch [new file with mode: 0644]
geninitrd-romfs.patch [new file with mode: 0644]
geninitrd.spec [new file with mode: 0644]

diff --git a/geninitrd-gzip-compressor.patch b/geninitrd-gzip-compressor.patch
new file mode 100644 (file)
index 0000000..72e13f7
--- /dev/null
@@ -0,0 +1,24 @@
+diff -ur geninitrd-10000.18.orig/geninitrd geninitrd-10000.18/geninitrd
+--- geninitrd-10000.18.orig/geninitrd  2009-08-31 21:31:46.000000000 +0200
++++ geninitrd-10000.18/geninitrd       2009-09-19 22:40:21.932301167 +0200
+@@ -795,6 +795,8 @@
+       # a specified one, take it
+       if ! is_yes "$mode"; then
+               compressors="$mode"
++      else
++              compressors="gzip"
+       fi
+       debug "finding compressor: $compressors (via $mode)"
+diff -ur geninitrd-10000.18.orig/geninitrd.sysconfig geninitrd-10000.18/geninitrd.sysconfig
+--- geninitrd-10000.18.orig/geninitrd.sysconfig        2009-08-31 21:31:46.000000000 +0200
++++ geninitrd-10000.18/geninitrd.sysconfig     2009-09-19 22:41:49.252501100 +0200
+@@ -9,7 +9,7 @@
+ ## Compression for the initrd.
+ ## xz / lzma / bzip2 / gzip / lzo.
+-## yes (default) = the 'best' available is chosen.
++## yes = gzip (for backward compatibility)
+ #COMPRESS=yes
+ ## What filesystem to use (rom or ext2)?
diff --git a/geninitrd-romfs.patch b/geninitrd-romfs.patch
new file mode 100644 (file)
index 0000000..42435c0
--- /dev/null
@@ -0,0 +1,15 @@
+--- geninitrd-10000.10/geninitrd~      2009-04-06 18:12:27.000000000 +0300
++++ geninitrd-10000.10/geninitrd       2009-04-06 18:13:33.882133693 +0300
+@@ -948,11 +948,7 @@
+       fi
+       # default value
+-      if [ "$kernel_version" -ge "002005" ]; then
+-              INITRDFS="initramfs"
+-      else
+-              INITRDFS="rom"
+-      fi
++      INITRDFS="rom"
+ fi
+ case "$INITRDFS" in
diff --git a/geninitrd.spec b/geninitrd.spec
new file mode 100644 (file)
index 0000000..3d42680
--- /dev/null
@@ -0,0 +1,123 @@
+# TODO:
+# - BUG: you can't set in /etc/mdadm.conf:
+#  DEVICE partitions containers
+#  (which is default BTW if none set). Generation of initrd will fail
+#
+Summary:       Creates an initial ramdisk image for preloading modules
+Summary(pl.UTF-8):     Narzędzie do tworzenia inicjalnego ramdysku używanego przy starcie systemu
+Name:          geninitrd
+Version:       12462
+Release:       1
+License:       GPL
+Group:         Applications/System
+Source0:       %{name}-%{version}.tar.gz
+# Source0-md5: 7bab5ccd79af683dd3162f660e552332
+Patch0:                %{name}-romfs.patch
+Patch1:                %{name}-gzip-compressor.patch
+#Patch2:               %{name}-svn.patch
+URL:           http://svn.pld-linux.org/trac/svn/wiki/packages/geninitrd
+BuildRequires: xmlto >= 0:0.0.18-1
+Requires:      /usr/bin/ldd
+Requires:      awk
+Requires:      busybox-initrd >= 1.1.0
+Requires:      coreutils
+Requires:      cpio
+Requires:      fileutils
+Requires:      genromfs
+Requires:      glibc-misc
+Requires:      gzip
+Requires:      mktemp >= 1.5-8
+Requires:      module-init-tools >= 3.2.2-6
+Requires:      mount
+Requires:      pci-database >= 0.4
+Requires:      rc-scripts >= 0.2.7
+Requires:      tar
+%if "%{pld_release}" == "ti"
+Requires:      lvm2-initrd
+Requires:      mdadm-initrd >= 1.12.0-1
+%else
+# otherwise LVM subsystem is not enabled in geninitrd
+Suggests:      lvm2-initrd
+# without this softraid installations of PLD fail
+Suggests:      mdadm-initrd >= 1.12.0-1
+%endif
+Suggests:      pciutils
+# suggest for blkid
+%if "%{pld_release}" != "ac"
+Suggests:      util-linux-initrd
+%endif
+Obsoletes:     mkinitrd
+%if "%{pld_release}" == "ac"
+Conflicts:     grubby < 5.0.4-3.1
+%else
+Conflicts:     grubby < 6.0.24-3
+%endif
+Conflicts:     udev-initrd < 1:168
+Conflicts:     xz < 4.999.9
+BuildArch:     noarch
+BuildRoot:     %{tmpdir}/%{name}-%{version}-root-%(id -u -n)
+
+%description
+Geninitrd creates filesystem images for use as initial ramdisk
+(initrd) images. These ramdisk images are often used to preload the
+block device modules (SCSI or RAID) needed to access the root
+filesystem.
+
+In other words, generic kernels can be built without drivers for any
+SCSI adapters which load the SCSI driver as a module. Since the kernel
+needs to read those modules, but in this case it isn't able to address
+the SCSI adapter, an initial ramdisk is used. The initial ramdisk is
+loaded by the operating system loader (normally LILO) and is available
+to the kernel as soon as the ramdisk is loaded. The ramdisk image
+loads the proper SCSI adapter and allows the kernel to mount the root
+filesystem. The geninitrd program creates such a ramdisk using
+information found in the /etc/modules.conf file.
+
+%description -l pl.UTF-8
+Geninitrd służy do tworzenia obrazu systemu plikowego używanego jako
+inicjalny ramdysk (initrd), z którego przy starcie systemu są ładowane
+moduły kernela z obsługą urządzeń których obsługa nie jest
+wkompilowana w kernel. Zazwyczaj modułami ładowanymi z inicjalnego
+systemu plikowego są sterowniki SCSI, IDE czy też RAID po to żeby w
+dalszej części inicjacji systemu był możliwy dostęp do głównego
+systemu plikowego (root fs).
+
+Dzięki initrd jest możliwe używanie dystrybucyjnego kernela w którym
+wkompilowana jest minimalna ilość obsługi różnych urządzeń, a reszta
+kodu obsługi sterowników SCSI, IDE czy RAID jest doczytywana w trakcie
+startu z initrd. Skrypt geninitrd generuje obraz ramdysku na podstawie
+bieżących informacji zawartych w /etc/modules.conf.
+
+%prep
+%setup -q
+%if "%{pld_release}" == "ti"
+%patch0 -p1
+%patch1 -p1
+%endif
+#%patch2 -p0
+
+%build
+%{__make}
+
+%install
+rm -rf $RPM_BUILD_ROOT
+%{__make} install \
+       DESTDIR=$RPM_BUILD_ROOT
+
+%clean
+rm -rf $RPM_BUILD_ROOT
+
+%files
+%defattr(644,root,root,755)
+%doc ChangeLog
+%config(noreplace) %verify(not md5 mtime size) /etc/sysconfig/geninitrd
+%attr(755,root,root) /sbin/geninitrd
+%{_mandir}/man8/geninitrd.8*
+
+%dir /lib/geninitrd
+/lib/geninitrd/functions
+/lib/geninitrd/mod-*.sh
+%attr(755,root,root) /lib/geninitrd/extract-ikconfig
+
+%dir /lib/geninitrd/udev-rules
+/lib/geninitrd/udev-rules/*.rules
This page took 0.103711 seconds and 4 git commands to generate.