%{!?python_sitelib: %define python_sitelib %(%{__python} -c "from distutils.sysconfig import get_python_lib; print get_python_lib(1)[1:]")} Summary: Creates an initial ramdisk image for preloading modules. Name: mkinitrd Version: 5.1.19.6 Release: 19%{?dist} License: GPL Group: System Environment/Base Source0: mkinitrd-%{version}.tar.bz2 Patch0: mkinitrd-use-modinfo.patch Patch1: mkinitrd-newkernelpkg-ia64.patch Patch2: mkinitrd-use-firmware.patch Patch3: mkinitrd-5.1.19.6-multipath.patch Patch4: mkinitrd-5.1.19.6-installkernel.patch Patch5: mkinitrd-5.1.19.6-bz218452.patch Patch6: mkinitrd-5.1.19.6-iscsi-sdmod.patch Patch7: mkinitrd-5.1.19.6-withusb.patch Patch8: mkinitrd-5.1.19.6-libfirmware.patch Patch9: mkinitrd-5.1.19.6-emc.patch Patch10: mkinitrd-5.1.19.6-s390x-withusb.patch Patch11: mkinitrd-5.1.19.6-types.patch Patch100: mkinitrd-5.1.19.6-mdassemble.patch ExclusiveOs: Linux Prereq: dev Requires: /bin/sh, /sbin/insmod.static, /sbin/losetup Requires: /sbin/mdassemble Requires: fileutils, grep, mount, gzip, tar, mktemp >= 1.5-5, findutils, lvm2 Requires: filesystem >= 2.1.0, cpio, device-mapper, initscripts >= 8.22-1 Requires: e2fsprogs >= 1.38-12, glib2, libselinux, libsepol, coreutils Requires: device-mapper-multipath >= 0.4.7-9, kpartx >= 0.4.7-9 BuildRequires: popt e2fsprogs-devel parted-devel >= 1.7.1-15, pkgconfig, glib2-devel BuildRequires: libdhcp4client-devel, libdhcp6client-devel, libdhcp-devel >= 1.9 BuildRequires: device-mapper libselinux-devel libsepol-devel, python-devel %ifnarch s390 s390x Requires: dmraid %endif %ifarch ppc Requires: ppc64-utils >= 0.3-1 %endif Requires: nash = %{version}-%{release} BuildRoot: %{_tmppath}/%{name}-root Provides: libbdevid = %{version}-%{release} Obsoletes: libbdevid < %{version}-%{release} %description Mkinitrd 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 mkinitrd program creates such a ramdisk using information found in the /etc/modules.conf file. %package devel Summary: C header files and library for functionality exported by libnash. Group: Development/Libraries Requires: glibc-devel, pkgconfig, e2fsprogs-devel, mkinitrd, glib2-devel %package -n libbdevid-python Summary: Python bindings for libbdevid Group: System Environment/Libraries Requires: glib2, e2fsprogs, libselinux, libsepol, device-mapper, mkinitrd Requires: python %package -n nash Summary: nash shell Group: System Environment/Base %description devel C header files and library for functionality exported by libnash. %description -n libbdevid-python Python bindings for libbdevid. %description -n nash nash shell used by initrd %prep %setup -q -n mkinitrd-%{version} %patch0 -p1 %patch1 -p1 %patch2 -p1 %patch3 -p1 %patch4 -p0 %patch5 -p1 %patch6 -p1 %patch7 -p1 %patch8 -p1 %patch9 -p1 %patch10 -p1 %patch11 -p1 %patch100 -p1 %build make LIB=%{_lib} make LIB=%{_lib} test %install rm -rf $RPM_BUILD_ROOT make LIB=%{_lib} DESTDIR=$RPM_BUILD_ROOT mandir=%{_mandir} install rm -f $RPM_BUILD_ROOT/sbin/bdevid $RPM_BUILD_ROOT/%{_includedir}/blkent.h %clean rm -rf $RPM_BUILD_ROOT %files %defattr(-,root,root) %attr(755,root,root) /sbin/mkinitrd %attr(644,root,root) %{_mandir}/man8/mkinitrd.8* %config %attr(755,root,root) /sbin/installkernel %attr(755,root,root) /sbin/new-kernel-pkg %attr(755,root,root) /sbin/grubby %attr(644,root,root) %{_mandir}/man8/grubby.8* %attr(755,root,root) %dir %{_sysconfdir}/sysconfig/mkinitrd /%{_lib}/bdevid %{_libdir}/libbdevid.so.* %files devel %defattr(-,root,root) %{_libdir}/libnash.a %{_libdir}/libbdevid.a %{_libdir}/libbdevid.so %{_libdir}/libbdevidprobe.a %{_libdir}/pkgconfig/libnash.pc %{_libdir}/pkgconfig/libbdevid.pc %{_libdir}/pkgconfig/libbdevidprobe.pc %{_includedir}/nash.h %{_includedir}/nash %{_includedir}/bdevid.h %{_includedir}/bdevid %files -n libbdevid-python /%{python_sitelib}/bdevid.so %files -n nash %defattr(-,root,root) %attr(644,root,root) %{_mandir}/man8/nash.8* %attr(755,root,root) /sbin/nash %changelog * Thu Dec 20 2007 Shad L. Lords 5.1.19.6-19.sme - Use generated config file instead of just scanning [SME: 2192] - Use mdassemble rather than raidautorun in initrd, so that we control UUID to device mapping. [SME: 961, 1895] * Tue Sep 11 2007 David Cantrell - 5.1.19.6-19 - More conflicting header fixes Related: rhbz#277481 * Wed Sep 05 2007 David Cantrell - 5.1.19.6-18 - Fix conflicting headers Resolves: rhbz#277481 * Tue Aug 14 2007 David Cantrell - 5.1.19.6-17 - Set withusb=0 on s390x and s390 architectures Resolves: rhbz#251136 * Wed Jul 18 2007 David Cantrell - 5.1.19.6-16 - Invoke kpartx the same was as rc.sysinit to maintain naming consistency Related: rhbz#185852 - Remove unused code Related: rhbz#185852 * Wed Jul 11 2007 Peter Jones - 5.1.19.6-15 - Add more ways to do detection for the EMC hardware handler module. Related: #185852 * Wed Jul 11 2007 Peter Jones - 5.1.19.6-14 - Add support for disabling dmraid from a config file so we don't regress Related: #185852 - Clean up new mpath code. Related: #185852 * Mon Jul 09 2007 Peter Jones - 5.1.19.6-13 - Fix "--without-usb" Resolves: #230852 - Make /lib/firmware before trying to put things there Related: #218452 * Mon Jul 09 2007 Peter Jones - 5.1.19.6-12 - Don't try to guess a module path if modprobe can find it Resolves: #218452 - Load sd_mod explicitly during iscsi boot. Resolves: #222685 * Fri Jul 06 2007 David Cantrell - 5.1.19.6-11 - Remove unnecessary text Resolves: rhbz#238019 - Handle EMC storage arrays when gathering WWIDs for multipath devices Related: rhbz#185852 * Thu Jul 05 2007 David Cantrell - 5.1.19.6-10 - Pass the '-p p' argument to kpartx Related: rhbz#185852 * Thu Jul 05 2007 David Cantrell - 5.1.19.6-9 - Quote tr arguments to avoid errors from certain input Related: rhbz#185852 - In the inst() function, make the destination directory if it doesn't exist Related: rhbz#185852 * Tue Jun 26 2007 David Cantrell - 5.1.19.6-8 - Properly install files and symlinks in installkernel (prarit) Resolves: rhbz#227711 * Wed Jun 20 2007 David Cantrell - 5.1.19.6-7 - Ignore Xen block devices when collecting WWID values Related: rhbz#185852 * Tue Jun 19 2007 David Cantrell - 5.1.19.6-6 - Require device-mapper-multipath and kpartx packages Related: rhbz#185852 * Tue Jun 19 2007 David Cantrell - 5.1.19.6-5 - Bring network devices up before iscsistart runs Related: rhbz#185852 * Mon Jun 18 2007 David Cantrell - 5.1.19.6-4 - Make sure to copy in /var/lib/multipath/bindings to the initrd - Bring up multipath devices by WWID on initrd boot - Resolves: rhbz#185852 - Resolves: rhbz#216240 * Sat Jun 2 2007 Jon Masters - 5.1.19.6-3 - Backport firmware fixes from Fedora 7 into RHEL5 (use modinfo to discover firmware files required). Related: rhbz#184773 * Wed May 30 2007 Jon Masters - 5.1.19.6-2 - Add support for modinfo to locate modules. - Add elilo fixes for IA64 to new-kernel-pkg. Resolves: #239392 Related: #224076 * Thu Jan 18 2007 Peter Jones - 5.1.19.6-1 - Don't create /dev/ttyN on s390* Resolves: #209204 * Mon Jan 15 2007 Peter Jones - 5.1.19.5-1 - Use a different method of getting iscsi info Resolves: #221088 * Thu Jan 11 2007 Peter Jones - 5.1.19.4-1 - Fix LABEL/UUID handling in mkinitrd Resolves: #222106 * Thu Jan 4 2007 Jeremy Katz - 5.1.19.3-1 - don't create /dev/tty* on s390 (#209204) - handle multi-line options (#209447) - ensure that scsi devices have stabilized to ensure the rootdev is available (#213039) - iscsi tools changed their syntax somewhat (#221088) * Fri Dec 15 2006 Peter Jones - 5.1.19.2-1 - Honor installing with 'nompath' (#219483) * Wed Dec 6 2006 Peter Jones - 5.1.19.1-2 - Rebuild for new libparted (#218624) * Mon Oct 30 2006 Peter Jones - 5.1.19.1-1 - Merge missing FC6 fixes back into this branch to eliminate regressions. * Thu Sep 28 2006 Peter Jones - 5.1.19-1 - Fix booting on non-LVM devices where sysfs uses a '!' in the device path, such as cciss. (#201875, #196360) * Wed Sep 27 2006 Peter Jones - 5.1.18-1 - Split nash into its own package to work around dep sorting issue on install. * Thu Sep 21 2006 Peter Jones - 5.1.17-1 - Fix module dependency probing when there's no modalias * Wed Sep 20 2006 Peter Jones - 5.1.16-1 - Don't require non-tmpfs tmpdir unless we're using loopback - Fix symlink chasing for yaboot.conf in grubby (#207302) * Wed Sep 20 2006 Jeremy Katz - Hack for moduledeps of gfs2/nfs * Tue Sep 19 2006 Jeremy Katz - Handle zfcp.conf not specifying scsiid and scsilun (#198803) * Tue Sep 12 2006 Peter Jones - Fix escaping error in md-handler's awk script * Fri Sep 8 2006 Jesse Keating - 5.1.15-1 - more typos to fix related to (#205194) * Fri Sep 8 2006 Peter Jones - 5.1.14-1 - Fix another typo in the same one-line shell wrapper (#205194) * Fri Sep 8 2006 Peter Jones - 5.1.13-1 - Fix missing coreutils dep and typo in shell wrapper (#205194) - Fix bad mpath test (#204758) * Thu Sep 7 2006 Peter Jones - 5.1.12-1 - Fix bug in dm dependency scanning (#205635) * Tue Sep 6 2006 Peter Jones - 5.1.11-1 - Pull in bdevid properly (not two sources any more) - Lots of minor bugfixes, leak fixups, etc. - Updates for new iScsi userland (katzj) - ata and usb device id probes in bdevid - preliminary work for boot-time device identification. - Fixes for network driver selection (katzj) * Fri Sep 1 2006 Peter Jones - 5.1.10-1 - Fix %%setup args - Work around lvm locking problems when clvm is installed (#203904) - Work around lvm segfault by always using lvm.static - Fix label scanning on dm devices (based on a patch from Hans de Goede) (#204763) - handle the /proc/bus/usb mounting with a state machine in the module loading emission, not with a sentinal value - do forced finding of devices *after* auto-detection of the root fs, so we're not blindsided by bogus scsi_hostadapter aliases and the like. - move nashDm* functions to libnash so stuff in block.c can call them. * Tue Aug 29 2006 David Cantrell - 5.1.9-2 - BuildRequires parted-devel >= 1.7.1-15 * Fri Aug 17 2006 Peter Jones - 5.1.9-1 - Fix "MOUNT_PROC_USB" warning * Wed Aug 16 2006 Peter Jones - 5.1.8-1 - Use modprobe to find module deps (#202559, #202596) - Fix typo for /dev/efirtc (#202110) * Wed Aug 16 2006 Peter Jones - 5.1.7-1 - Make "stabilized" work better (patch from Alexandre Oliva) - Rewrite usb handling (notting and pjones) - Fix libbdevid provides/obsoletes. - Include usb hcd drivers by default * Mon Aug 14 2006 Bill Nottingham - 5.1.6-1 - don't make every root device /dev/loop0. Eep. * Mon Aug 14 2006 Peter Jones - 5.1.5-1 - Provide libbdevid. * Mon Aug 14 2006 Peter Jones - 5.1.4-1 - Fix requires for libbdevid - Make it safe to call nashLogger and nashLoggerV with no context. * Mon Aug 14 2006 Mark McLoughlin - 5.1.3-2 - Fix compile error * Fri Aug 11 2006 Bill Nottingham - 5.1.3-1 - replace various sed/grep/cut/head calls with bash & awk equivalents - fix a typo - nfs loop fixes - silence xen errors when sysfs layout is different * Wed Jul 26 2006 Peter Jones - 5.1.2-1 - pull in new libbdevid for scsi probing fix - restructure package so things can include libbdevid (and its modules) without depending on python * Wed Jul 19 2006 Bill Nottingham - support for loopback root (including loop-over-NFS) * Tue Jul 18 2006 Jeremy Katz - 5.1.1-1 - build with -fPIC - pull in new libbdevid for linking fix * Mon Jul 17 2006 Jeremy Katz - 5.1.0-1 - allow rootdev/rootfs/rootopts parsing on the mkinitrd command line (notting) - fix case where we'd spin forever resolving a device (#199046) * Thu Jul 13 2006 Peter Jones - 5.0.47-1 - add libbdevid - fix mode handling on open syscall wrapper (patch from Mark McLoughlin) - save dhcp lease file after network initialization (patch from markmc) * Thu Jul 6 2006 Bill Nottingham - if NFS host doesn't resolve, assume it's an IP - make sure IP check doesn't get extraneous info * Wed Jul 5 2006 Peter Jones - make libnash.a and the nash-devel package - use libdhcp instead of pump (patch from Mark McLoughlin) * Fri Jun 30 2006 Jeremy Katz - 5.0.46-1 - if we don't get a modalias for a net driver, try via ethtool (notting, #196104) - add patches from Aron Griffis (aron AT hp DOT com) for multiboot support on ia64 * Thu Jun 22 2006 Jeremy Katz - 5.0.45-1 - don't emit for iscsi username/password stuff - handle _netdev option for filesystems * Thu Jun 22 2006 Jeremy Katz - 5.0.44-1 - fix so we only use iscsistart if we're doing root on iscsi - fix spurious shell error (noticed by karsten) * Wed Jun 21 2006 Jeremy Katz - 5.0.43-1 - Add back patches from pjones which had just been in the package for * fix bad shell code to detect DMs in use * fix "stabilized" to stat where appropriate * use stabilized for sbp2 * Wed Jun 21 2006 Jeremy Katz - 5.0.42-1 - add a hack to handle xennet devices not having a modalias (#196104) - initial pass at support for root on iscsi (patch from Patrick Mansfield ) * Mon Jun 12 2006 Peter Jones - Fixes for stateless/diskless configurations (patch from Jeff Law, ) * Wed May 24 2006 Peter Jones - 5.0.41-1 - (very) basic multipath support - minor fixes for usb * Thu May 18 2006 Jeremy Katz - 5.0.40-1 - fix multiple netdev handling (#192321) * Tue May 10 2006 Peter Jones - 5.0.39-1 - handle [eou]hci_hcd even _more_ correctly ;) * Tue May 9 2006 Peter Jones - 5.0.38-1 - handle bringing up multiple network devices (katzj) - make "withusb=yes" default - add --without-usb - make usb load [euo]hci_hcd correctly * Mon May 1 2006 Jeremy Katz - 5.0.37-1 - munge rootopts on all non-nfs cases * Wed Apr 26 2006 Bill Nottingham - 5.0.36-1 - NFS root fixes - fix typo * Mon Apr 10 2006 Peter Jones - 5.0.34-1 - fix "!" handling for sysfs paths in mkblkdevs - fix argument checking for mknodCommand * Thu Mar 30 2006 Peter Jones - 5.0.33-1 - fix unbalanced pushd in mkinitrd (patch from Pete Zaitcev, bz# 185822) - add "cond" command for simple conditionals (bz# 182938) - add "status" command to see/set the exit status for testing - add "--remove-args" and "--update" args for new-kernel-pkg (patch from Don Zickus, bz# 183917) * Mon Mar 13 2006 Peter Jones - 5.0.32-1 - handle sd_mod on scsi_mod in findmodule, not in the scsi setup. This fixes the "no scsi_hostadapter" alias problem better (#182008). * Fri Mar 10 2006 Peter Jones - 5.0.31-1 - add segv handler for nash * Wed Mar 8 2006 Peter Jones - 5.0.30-1 - move blkid.tab* references to /etc/blkid/blkid.tab* - don't do the selinux context stuff on blkid.tab*, as it now inherits from the directory. * Mon Feb 27 2006 Peter Jones - 5.0.29-1 - Fix pump-devel buildrequires - Fix grubby's getpathbyspec() usage (#183010) - Fix grubby's makefile - Make readlink command work with super scary huge sysfs paths (#183091) - Make readlink handle directories better (#166666) - Don't create ramdisk blockdevs, mkblkdevs does it (#181873) - Don't use showlabels to resolve labels, use resolveDevice so we don't need messy awk (#180372) * Fri Feb 24 2006 Peter Jones - 5.0.28-1 - Make /dev/efirtc on ia64 boxes (#182598) - Handle selinux contexts on /etc/blkid.tab* since we can't do it in libblkid. - Make building from the "nash" subdir work again - Make getpathbyspec() allocate on the caller's stack, eliminating several memory leaks in callers. - Don't strip nash * Wed Feb 22 2006 Peter Jones - 5.0.27-1 - Fix multiboot argument quoting in new-kernel-package (#182243) - Fix "netlink" fd error in hotplug initialization. - Fix directory creation in smartmknod() - Fix find command when it's not run alone (#181874, patch from Mark McLoughlin) - Don't use 0-length uuids - Update /dev/mapper nodes more often - Allow dm partadd not to include the /dev/mapper path - Use /etc/fstab, not /fstab, so if you've got /sbin/mount it'll work - Bring in sd_mod if libata or scsi_mod is selected (#181983) - use -Wl,--wrap,open and __wrap_open() instead of coeOpen() * Wed Feb 15 2006 Peter Jones - 5.0.26-1 - fix detection of floppy devices, don't probe them for labels - fix grubby to use the same label scanning code as nash - senseless rewriting of makefiles so that grubby can use nash's .o's, uh, "more easily". * Tue Feb 14 2006 Peter Jones - 5.0.25-1 - rework hotplug control fds (#181515) * Tue Feb 14 2006 Peter Jones - 5.0.24-1 - use the right nash-dm command to get the device list - check if a subdevice has the same partition table, not if it starts at the right place (fixes partition comparison on !mirror devices) * Mon Feb 13 2006 Peter Jones - 5.0.23-1 - add basic hotplug handler and firmware loader * Mon Feb 13 2006 Jesse Keating - 5.0.22-1.1 - rebump for build order issues during double-long bump * Sat Feb 11 2006 Peter Jones - 5.0.22-1 - formatting cleanups - prefix partition number with "p" for partitions on dmraid - add support for disabling partitions which overlap with partitions on dm devices. - add multipath support - fix dm creation ordering and partition detection - add "network" command (katzj) - add nfsroot support (katzj) - put "showlabels" back into nash * Tue Feb 3 2006 Peter Jones - 5.0.21-1 - add "mount -o bind" support and "mount --move" support (#109366, patch from Kasper Dupont) - add resolveDevice command, which cases down device labels. - remove "findlodev" from the documentation (#178587) - fix nash command name parsing bug (#178587) - fix "find" argument parsing (#178587) - add "find" handling for "-type d" * Thu Feb 2 2006 Peter Jones - 5.0.20-1 - fix really dumb spec file mistake - fix devno detection for /dev/root - fix testdm check * Thu Feb 2 2006 Peter Jones - 5.0.19-1 - mkinitrd: get resolve_dm_name() and get_numeric_dev() from initscripts instead of a private copy - add block.[ch]: - move parse_sysfs_devnum(), sysfs_blkdev_probe(), and mkpathbyspec() from nash.c - add label/uuid/name lookups for block devices using libblkid - add lib.[ch]: - move makeFdCoe(), coeOpen(), coeFopen(), coeOpendir(), readFD(), nashLoggerV(), nashLogger(), qprintf(), eprintf(), smartmknod(), testing, quiet, reallyquiet from nash.c - move nashDefaultLogger(), from dm.c - move log enums and declarations from dm.h - dm.c: add dm_finish(), which does dm_task_destroy() and then library cleanup (solves an fd leak) - remove linux_fs.h, mount_by_label.[ch], name_to_dev_t.[ch] * Tue Jan 31 2006 Peter Jones - 5.0.18-1 - make mkinitrd discover dm uuids - add uuid support to nash's "dm create" and "dm partadd" - add nash command "dm get_uuid $NAME" - add support for renamed dm raids * Tue Jan 3 2006 Peter Jones - 5.0.17-1 - fix dm operations to create/remove device nodes during each change. * Tue Jan 3 2006 Peter Jones - 5.0.16-1 - Hopefully fix raid autorun with a patch from Paul Flinders. * Mon Dec 19 2005 Peter Jones - 5.0.15-1 - Don't open init's console with close-on-exec * Wed Dec 18 2005 Peter Jones - 5.0.14-1 - Remove vestigial loopback support. - Remove email addresses from man pages (which still need some work) * Fri Dec 16 2005 Jesse Keating - 5.0.13-1.1 - bump for gcc * Mon Dec 5 2005 Peter Jones - 5.0.13-1 - Updates for gcc 4.1 * Sat Nov 26 2005 Peter Jones - 5.0.12-1 - Fix buildreq/req for dmraid on s390 - Typo fix from Alexandre Oliva * Mon Nov 21 2005 Peter Jones - 5.0.11-1 - audit for open()s without appropriate closes() - make new functions coeOpen(), coeFopen(), and coeOpendir(). These behave like open(), fopen(), and opendir() except that they set any associated file descriptors to close on exec(). - use them everywhere except where we open a console. * Thu Nov 17 2005 Peter Jones - 5.0.10-1 - don't set up dmraids that aren't active in the initrd * Wed Nov 16 2005 Peter Jones - 5.0.9-1 - dmraid support * Fri Oct 21 2005 Peter Jones - 5.0.8-1 - don't clobber cmdline in mkrootdev (fixes runlevel selection) * Fri Oct 21 2005 Jeremy Katz - 5.0.7-1 - fix new-kernel-pkg --multiboot= * Tue Oct 18 2005 - 5.0.6-1 - make lvm work again * Mon Oct 17 2005 Peter Jones - 5.0.5-1 - make PROBE, MODULES, and PREMODS load defaults from a config file - get rid of support for not using a dynamic /dev - add options to force device probes (for when PROBE is "no") - consolidate some duplicate code paths - make nash's otherCommand check PATH first and use what it finds there for any commands it needs to run, unless the command starts with "nash-", in which case the internal version is used unconditionally - remove the symlink hack for setuproot/preswitchroot/switchroot - wrap all the nash commands in mkinitrd with shell functions and use the "nash-" varient. - rework root fs creation so Jeremy can use the otherCommand feature * Fri Oct 7 2005 Peter Jones - 5.0.4-1 - split switchroot into setuproot and switchroot, with presetuproot in between - make preswitchroot and setuproot execute through symlinks, so they may be replaced by a second initramfs image - add logic to mount filesystems specified in /etc/fstab.sys during setuproot - general code cleanups * Fri Sep 30 2005 Peter Jones - 5.0.3-1 - fix root dev discovery to give us "hda3" and such again, rather than a full sysfs path * Thu Sep 29 2005 Peter Jones - 5.0.2-1 - add error and quiet printf functions - use them instead of testing quiet and typing stderr everywhere - actually make _all_ errors use eprintf (and thus stderr) - print strerror in errors instead of raw errno - make "getKernelCmdLine use readFD - make "getKernelArg" picky about if you've got the right command vs just one that starts with the same string - make "getKernelArg" handle "=" for you, so it either gives you the value when there is one, '\0' when there's not and it's EOL, or whitespace. - reformat some two-space-indent spots - check for short reads in catCommand - kill pivotroot - cleaned up resume messages - make mkrootdev use readFD - combine mkdevies and makedevs into mkblkdevs, no longer using /proc/partitions - don't use callocs+memcpy/strcpy+strcat when we can use asprintf - make setQuietCommand use getKenrelArg - make runStartup use readFD - patch from Alexandre Oliva to fix LVM-on-RAID1 /root and swap-on-LVM (bz #169059) - reorder device creation for easier maintenance create /dev/rtc - change fixme comment about lvm vgs - use cemit at some places we used a lot of emits before - reorder device node creation for clarity - use mkblkdevs instead of makedevs and mkdevices - decouple loopback root and lvm * Wed Sep 28 2005 Peter Jones - 5.0.1-1 - create /dev/rtc - create /dev/tty, /dev/tty{0..11}, and /dev/ttyS{0..4} - tweak the messages output in loud mode during device node creation * Tue Sep 27 2005 Peter Jones - 5.0.0-1 - remove support for pivotroot - remove support for non-initramfs initrds - remove support for 2.4 kernels - don't force scsi_mod before scsi modules; deps should bring it in. same for "unknown"; it's not needed any more. - lots of whitespace adjustment - minor messaging changes - no manual redirection to stderr or RCFILE, nor manual verbose checking - in light of these changes and other planned changes, this is 5.0.0 * Mon Sep 26 2005 Peter Jones - 4.2.24-1 - Fix module discovery for raid (eleminates "find" warning as well) * Sun Sep 25 2005 Peter Jones - 4.2.23-2 - Fix module discovery to not always use the modules /dev/hda1 requires when using root-on-label. - Put the lvm check after the raid check, so the raid check atually gets run. * Wed Sep 21 2005 Peter Jones - 4.2.22-1 - Only scan appended kernel command line args for duplicates once. - handle short reads correctly in nash's readFD - use calloc for things instead of malloc, since we usually need zeroed memory and we never memset - use canonicalize_file_name instead of malloc+realpath - honor quiet flag on suspend/resume - autodetect storage drivers in mkinitrd * Mon Aug 15 2005 Peter Jones - 4.2.21-1 - Fix a bug in switchroot's command line parsing (patch from mkj) * Fri Aug 12 2005 Jeremy Katz - 4.2.20-1 - fix a buglet in root vg finding - support resume with swsusp * Wed Aug 5 2005 Peter Jones - 4.2.19-1 - Fix yaboot stanza placement with a patch from dwmw2 (#142346) * Wed Jul 20 2005 Bill Nottingham - 4.2.18-1 - since udev is not in use, don't require it or claim to be starting it * Fri Jun 24 2005 Peter Jones - 4.2.17-1 - Don't use udev or udevstart in the initrd; it's trivial to do all that work by looking for directories with "dev" nodes in sysfs and making the device from the dirname using major/minor from "dev" * Mon Jun 6 2005 Peter Jones - 4.2.16-1 - Add a patch from Jeff Layton to remove files from the initramfs before executing the new init. (slightly modified, #153069) * Tue May 17 2005 Peter Jones - 4.2.15-1 - Better init argument handling (don't mess up with serial console) * Tue May 10 2005 Peter Jones - 4.2.14-1 - Better init argument handling (no uninitialized args) * Fri May 6 2005 Peter Jones - 4.2.13-1 - allow for lvm VGs to be in the /dev/mapper/$VG-$LV format (#154767) * Wed May 4 2005 Peter Jones - 4.2.12-1 - Don't copy "console=" arguments from /proc/cmdline to init * Wed May 4 2005 Peter Jones - 4.2.11-1 - don't copy "rw" option into the initrd; use "ro" instead if it's the only option. - Don't print "unmounting old ..." messages in nash if we're set to quiet * Tue May 3 2005 Peter Jones - 4.2.10-1 - set umask explicitly * Tue Apr 26 2005 Peter Jones - 4.2.9-1 - invoke bash with "--norc" (#155986) - use binary udevstart.static, not a symlink - print exit status in nash when programs return an error * Tue Apr 5 2005 Peter Jones - 4.2.8-1 - Don't consolidate duplicates in "--args" (#147222) * Wed Mar 30 2005 Peter Jones - 4.2.7-1 - unmount what filesystems we can from the initramfs - close appropriate files before spawning init * Wed Mar 23 2005 Peter Jones - 4.2.6-1 - work correctly with "set -o noclobber" - wait longer after modprobe of usb-storage - fix a wrong error output file * Tue Mar 22 2005 Peter Jones - 4.2.5-1 - handle mount-by-uuid for root correctly (##148756) * Thu Mar 17 2005 Peter Jones - 4.2.4-1 - don't do vgmknodes at all for lvm * Tue Mar 15 2005 Peter Jones - 4.2.3-1 - use --ignorelockingfailure with lvm commands in the initrd, and only activate the volume / is on. (#151172) * Tue Mar 15 2005 Peter Jones - 4.2.2-1 - Fix accidental formatting of data in grub.conf (#151118, from proski@gnu.org) * Tue Mar 1 2005 Peter Jones - 4.2.1-1 - typo fixes - one missed gcc4 fix * Tue Mar 1 2005 Peter Jones - 4.2.0.4-1 - fix gcc4 warnings/errors - use -D_FORTIFY_SOURCE=2 wherever we don't use RPM_OPT_FLAGS * Fri Jan 21 2005 Peter Jones - 4.2.0.3-1 - Make nash expand environment variables on command lines (#144474) - Make nash check pids returned from wait*() (#145660) * Fri Jan 21 2005 Peter Jones - 4.2.0.2-1 - Make getArg return NULL on cmd=NULL, fixing #144472 . Based on a patch from Kasper Dupont. * Tue Jan 18 2005 Jeremy Katz - 4.2.0.1-1 - fix grubby tests to run on systems with /boot = / * Tue Jan 18 2005 Jeremy Katz - 4.2.0-1 - grubby: add multiboot support for xen0 - new-kernel-pkg: likewise * Mon Dec 20 2004 Jeremy Katz - 4.1.20-1 - grubby: fix mac yaboot.conf updating if magicboot line is present * Mon Nov 22 2004 Jeremy Katz - 4.1.19-1 - remove use of dietlibc for nash * Wed Nov 3 2004 Jeremy Katz - handle machines with lots of disks in /proc/partitions (#137816) * Sun Oct 24 2004 Jeremy Katz - require cpio (#136814) * Sun Oct 17 2004 Jeremy Katz - 4.1.18-1 - fix UPDATEDEFAULT with new-kernel-pkg (#135997) * Fri Oct 15 2004 Jeremy Katz - 4.1.17-1 - run udevstart again instead of sleeping, this will ensure all devices are created in all cases after modules have been loaded (thanks to notting) * Fri Oct 15 2004 Jeremy Katz - 4.1.16-1 - mkinitrd: Sleep briefly to let udev finish creating devices * Wed Oct 13 2004 Jeremy Katz - 4.1.15-1 - new-kernel-pkg: set new kernels as default (#135161) when a) /etc/sysconfig/kernel contains UPDATEDEFAULT=yes b) --package foo is passed in and foo matches DEFAULTKERNEL in /etc/sysconfig/kernel * Thu Sep 30 2004 Jeremy Katz - 4.1.14-1 - support changing root on the kernel command line with lvm (#133236) * Wed Sep 22 2004 Jeremy Katz - 4.1.12-1 - update to work with udev 032, conflict with old udev - if udev is present, use it. trying to avoid the use of udev if it's installed is the road to things not working * Fri Sep 10 2004 Jeremy Katz - 4.1.11-1 - more fixing * Wed Sep 8 2004 Jeremy Katz - 4.1.10-1 - mkinitrd: mount tmpfs with the right permissions * Tue Aug 31 2004 Jeremy Katz - 4.1.9-1 - mkinitrd: use tmpfs instead of ramfs for udev stuff * Fri Aug 27 2004 Jeremy Katz - 4.1.8-1 - nash: and the hack to fix ppc broke other arches, conditionalize it (#130928) * Wed Aug 25 2004 Jeremy Katz - 4.1.6-1 - nash: fix another off by one (#130987) - nash: hack to fix ppc booting (#130928) * Tue Aug 25 2004 Karsten Hopp - 4.1.5-1 - fix zfcp handling * Tue Aug 24 2004 Jeremy Katz - 4.1.4-1 - nash: create raid device if needed (think udev) before calling the raidautorun ioctl (#130561) * Tue Aug 24 2004 Jeremy Katz - 4.1.3-1 - nash: make echo behavior consistent with other shells - more fixes from Steve Grubb (#129673) * Mon Aug 23 2004 Karsten Hopp 4.1.2-1 - mkinitrd: add support for zfcp devices (mainframe) * Thu Aug 19 2004 Jeremy Katz - 4.1.1-1 - don't remove lost+found (#130327) - don't try to mount/umount /sys on 2.4 (#130298) * Tue Aug 17 2004 Jeremy Katz - 4.1.0-1 - mkinitrd: if using udev for the initrd, set things up appropriately (based on patches from Harald Hoyer and Thomas Woerner) - nash: support for echo -n - nash: better error message on exec failures - nash: exec udev if we're called as a hotplug handler * Mon Aug 16 2004 Jeremy Katz - 4.0.6-1 - various fixes from a code review by Steve Grubb which should fix some of the lingering problems (#129673) - nash: warning fix from Michal Jaegermann (#129673) - grubby: removal with (hd0,0) * Thu Aug 12 2004 Jeremy Katz - 4.0.5-1 - nash: oops, let's try that again * Wed Aug 11 2004 Jeremy Katz - 4.0.4-1 - nash: fix mounting by label in some cases (tracked down by Erik Jacobson, #129581, #129673, #129667, #129635) * Tue Aug 10 2004 Jeremy Katz 4.0.3-1 - grubby: more (hd0,0) support (#125156) - mkinitrd.8: update manpage (#129585) - nash: fix some warnings * Wed Aug 4 2004 Jeremy Katz 4.0.2-1 - nash: support bind mounting - grubby: support the (hd0,0)/path syntax for kernels and initrds in grub.conf (#114758, #125156, #120906) * Wed Aug 4 2004 Jeremy Katz - 4.0.1-1 - improve handling of arguments to init with initramfs (#129057) * Mon Aug 2 2004 Jeremy Katz - 4.0.0-1 - create an initramfs on 2.6 kernels instead of an initrd - use new mount magic instead of pivot_root on 2.6 kernels - try to handle the case of modules going away on kernel upgrades a little bit more nicely (#123994) - avoid over-zealous creation of /dev/mapper/control (#127115) - improve nash(8) manpage (#127413) * Fri Jun 18 2004 Jeremy Katz - 3.5.24-1 - fix usb-storage detection with 2.6 (#126309) * Tue May 18 2004 Jeremy Katz - 3.5.23-1 - add support for RAID6 * Wed May 12 2004 Jeremy Katz - add support for multipath personality from Tom Callaway (#120379) * Thu May 6 2004 Jeremy Katz - 3.5.22-1 - bump initrd size (#122325) * Wed Apr 14 2004 Jeremy Katz - 3.5.21-1 - new-kernel-package: add patch from Ryan Tilder to allow setting new kernel as default (#117605) - mkinitrd: i2o_pci isn't in 2.6 (#120827) - new-kernel-pkg: conditionalize kernel binary name for 2.6 vs 2.4 on ppc/ppc64 (as it's vmlinuz in 2.6 instead of the vmlinux from 2.4) (#120868) * Tue Apr 13 2004 Jeremy Katz - 3.5.20-1 - mkinitrd: minor regex fix for some kernel names (#120624) * Mon Feb 9 2004 Jeremy Katz - 3.5.19-1 - nash/mkinitrd: quiet mode for nash and necessary mkinitrd changes to work with it - mkinitrd: add lxo's patch for copying lvm.conf (#112099) - new-kernel-pkg: allow specifying the banner used in the boot loader config on the command line (#114809) * Tue Jan 13 2004 Jeremy Katz - mkinitrd: add patch from Alex Kiernan for modules with multiple deps in 2.6 (#113306) * Thu Jan 8 2004 Jeremy Katz 3.5.18-1 - new-kernel-pkg: add a --kernel-arguments option (#113125) * Tue Jan 6 2004 Jeremy Katz - fix ybin path (#112939) * Sun Jan 4 2004 Jeremy Katz 3.5.17-1 - mkinitrd: handle multiple spaces in modules.conf (from Lubomir Bulej) - nash: rebuild against new dietlibc fixing problems with root=LABEL= (#112623) - mkinitrd: determine kernel version and adjust modulefile appropriately so that we look at /etc/modprobe.conf for 2.6 kernels - mkinitrd: first pass at getting lvm working on 2.4 -> 2.6 upgrade * Wed Dec 24 2003 Jeremy Katz - mkinitrd: quiet strip by default * Mon Dec 22 2003 Jeremy Katz 3.5.16.1-1 - make stripping less aggressive * Mon Dec 22 2003 Jeremy Katz 3.5.16-1 - fixing handling of non-lvm case when /dev/mapper/control isn't present - add patch from Al Viro to get root dev in numeric form by grokking sysfs * Tue Dec 9 2003 Jeremy Katz - strip modules if /usr/bin/strip exists (#111756) * Fri Dec 5 2003 Jeremy Katz 3.5.15-2 - require lvm2 so that it gets installed early enough * Fri Dec 5 2003 Jeremy Katz 3.5.15-1 - mkinitrd: add support for lvm2 (note: will not currently handle being on a running 2.4 kernel and installing 2.6 with lvm rootfs) * Wed Dec 3 2003 Jeremy Katz - nash: add mkdmnod for creating the device-mapper control node * Thu Oct 2 2003 Jeremy Katz 3.5.14-1 - fix dependency on /usr/bin/tail and /usr/bin/id * Tue Sep 30 2003 Florian La Roche - remove one more mktemp dir for "all loopback devices in use" case * Tue Sep 23 2003 Jeremy Katz 3.5.13-1 - fix getting modules from /lib/modules/$(uname -r)/updates * Mon Sep 22 2003 Jeremy Katz 3.5.12-1 - argument checking and usage for /sbin/installkernel (#103109) * Wed Sep 3 2003 Jeremy Katz 3.5.11-1 - really only do grub configs on grub arches - some usb mkinitrd fixes * Fri Aug 29 2003 Jeremy Katz 3.5.10-1 - clean up bogus warning in installkernel - only try to do grub configs on arches which support grub (#103261) * Thu Aug 7 2003 Matt Wilson 3.5.9-1 - add \n to error messages in grubby - NUL terminate buffer returned from readlink properly - symlinks are most likely relative, chdir to / before trying to follow them - yaboot needs boot prefix - silo needs boot prefix too * Wed Jul 30 2003 Jeremy Katz - grubby: don't segfault on label=\n (reported by dburcaw) * Thu Jul 24 2003 Jeremy Katz - grubby: patch from zaitcev for uninitialized variable that can get hit in the zipl case * Mon Jul 21 2003 Jeremy Katz 3.5.8-1 - bump initrd size (#99525) * Wed Jul 9 2003 Jeremy Katz 3.5.7-1 - pick modules from /lib/modules/$(uname -r)/updates first - be less confused by more than one module of a name * Wed Jun 25 2003 Jeremy Katz 3.5.6-1 - unbreak reading module options from modules.conf again (#97982) * Fri Jun 20 2003 Bill Nottingham 3.5.5-1 - fix modules.dep usage for 2.5/2.6 * Fri Jun 20 2003 Jeremy Katz 3.5.4-1 - handle more bizarre modules.conf constructs (notting) * Thu Jun 12 2003 Jeremy Katz 3.5.3-1 - mkinitrd: fix copying of pvs (#97314, #97289) - mkinitrd: use pvscan instead of lvmdiskscan to find PVs to work better on other arches - mkinitrd: better check for dasd existence - mkinitrd: make certain lvm-mod is included if root on lvm * Wed Jun 11 2003 Jeremy Katz 3.5.2-1 - mkinitrd: revert use of modprobe -c. it breaks in the installer when we don't have a modules.dep for the BOOT kernel - nash: return pivot_root call correctly (#97753) * Wed Jun 11 2003 Jeremy Katz 3.5.1-1 - nash: fix syscall bits with gcc 3.3 on s390 - new-kernel-pkg: do depmod before mkinitrd (#97218) * Tue Jun 10 2003 Jeremy Katz 3.5.0-1 - mkinitrd: add patch from gc@mandrakesoft.com to determine module deps from modules.dep (#87873) - tweak patch to not break weird cases where module deps aren't all you need :/ - grubby: don't remove the last kernel (#60041) - mkinitrd: use modprobe -c to find module options (#89794) * Tue May 20 2003 Matt Wilson 3.4.52-1 - use addSystemMap to build the image for iSeries (#91187) * Fri May 16 2003 Jeremy Katz 3.4.51-1 - grubby: error out gracefully if we run out of space (#85424) - mkinitrd: copy parent dirs for pvs (#88962) - mkinitrd: exit with an exit status if tar fails (#90123) - new-kernel-pkg: only use the first entry for / (#90155) - grubby: fix a buffer overflow (#90444) * Wed Apr 30 2003 Jeremy Katz 3.4.50-1 - fix typo in new-kernel-pkg for iSeries * Wed Apr 30 2003 Elliot Lee - BuildRequires: popt - Change grubby Makefile to static-link popt a bit more cleanly * Thu Apr 24 2003 Jeremy Katz 3.4.49.1-1 - use Arjan's suggestion of vmlinitrd for the kernel + initrd combo file * Thu Apr 24 2003 Jeremy Katz 3.4.49-2 - fix description referencing /etc/conf.modules (#89558) * Thu Apr 24 2003 Jeremy Katz 3.4.49-2 - require ppc64-utils on ppc * Fri Apr 18 2003 Jeremy Katz 3.4.49-1 - new-kernel-pkg: on iSeries, we don't have a boot loader, just make the kernel + initrd combo file (/boot/vmlinux-version.img) * Mon Apr 07 2003 Karsten Hopp 3.4.48-1 - Fix segfault on mainframe * Wed Mar 26 2003 Jeremy Katz 3.4.47-1 - mkinitrd: fix using options for loading modules - mkinitrd: don't use kernel parameters for dasd at mkinitrd time, use what's in modules.conf * Mon Mar 24 2003 Jeremy Katz 3.4.46-1 - new-kernel-pkg: add necessary bits for s390, some logic cleanups - grubby: fix root detection for s390{,x} * Sun Mar 23 2003 Jeremy Katz 3.4.45-1 - grubby: add silo support (sparc) - grubby: add zipl support (s390{,x}) - add grubby test cases for zipl support * Wed Mar 19 2003 Jeremy Katz 3.4.44.1-1 - fix dasd option reading * Fri Mar 14 2003 Phil Knirsch 3.4.44 - Added automatic dasd= parameters for kernel parameter on s390(x). * Tue Mar 4 2003 Jeremy Katz 3.4.43-1 - apply ppc patches for new-kernel-pkg and installkernel from Dan Burcaw - man page tweak (#85471) * Tue Feb 18 2003 Jeremy Katz 3.4.42-1 - grubby: fix segfault from uninitialized variable (#84128) * Tue Feb 11 2003 Jeremy Katz 3.4.41-1 - nash: add readlink - use readlink for rootdev to handle symlinks to root devs (#83391) * Tue Feb 4 2003 Jeremy Katz 3.4.40-1 - fix i2o module ordering (#83447) - ifarch'd build requires of dietlibc now that the build system has a way to handle these * Sat Feb 01 2003 Florian La Roche - change one test from a number to a string test that could otherwise fail in not properly setup chroot environments * Fri Jan 31 2003 - added support for yaboot - test script runs tests for all platforms - separated elilo configuration from lilo mode, allowing elilo specific tests to be run on any platform * Sun Jan 26 2003 - grubby now shortens lilo titles to ensure they are less then 16 characters long (76236) - mkinitrd would only turn on /dev/md0 if raid was needed; now it enables all raid devices listed in /proc/mdstat (82209) - use product name from /etc/redhat-release to generate label in grub.conf (82352) * Mon Jan 20 2003 Bill Nottingham 3.4.36-1 - don't error out running awk on /proc/mdstat if /proc/mdstat isn't there * Tue Jan 14 2003 - all mkdev() actions will create directories as needed (some code in mkdevices is now obsolete; I'll remove it later) (#73317) - added mkdev command to test the above - support diratime/nodiratime mount options (#78738) - grubby will follow symlinks when writing new config file (#78713) - don't depend on raidtab, use /proc/mdstat instead (#80424) this covers both mkinitrd and grubby * Sun Jan 5 2003 Jeremy Katz 3.4.34-1 - grubby: fix segfault finding default if default doesn't have a root= (#66000) - don't include usb modules by default. pass --with-usb to get usb modules - make sure kudzu exists before trying to exec it - handle multiple scsi hosts being present (#77422) - add /usr/sbin to default path (#79581) - fix using --builtin= (#80448) - grubby: preserve the mode on config files (#80776) * Mon Dec 16 2002 Jeremy Katz - errno fixes * Tue Dec 03 2002 Florian La Roche - /sbin/new-kernel-pkg: fix a test to have correct "" * Fri Nov 22 2002 Jeremy Katz - mkinitrd: more gzipped module fixes * Thu Nov 21 2002 Jeremy Katz - mkinitrd: add support for finding gzipped modules - mkinitrd: don't be noisy if we don't have lvm-mod loaded * Wed Nov 6 2002 Jeremy Katz - grubby: don't bail when looking for root in appends of lilo-style configs - include grubby on x86_64 * Thu Sep 26 2002 Nalin Dahyabhai - fix some syntax errors - use grep's -q flag to save a redirect in places where we're not redirecting stderr * Thu Sep 5 2002 Jeremy Katz - grubby could segfault by going into its lilo checking if it couldn't find a default to copy (default had no root= and --bad-image-okay wasn't being used) * Mon Sep 2 2002 Jeremy Katz - nash: create directories if needed in mkdevices command (#73090) - grubby: handle lilo case of non-linux default (#72202) * Sat Aug 31 2002 Jeremy Katz - grubby: fix for case like 'append = " hdc=ide-scsi "' (#68802) * Fri Aug 30 2002 Bill Nottingham - fix firewire stuff (#72916) * Fri Aug 23 2002 Bill Nottingham - fix mpt fusion stuff * Tue Aug 13 2002 Jeremy Katz - /boot/efi/redhat -> /boot/efi/EFI/redhat on ia64 * Sun Aug 11 2002 Jeremy Katz - fix grubby to work correctly on ia64 * Thu Aug 08 2002 Michael Fulbright - added sleep command to nash and fixed creating initrd with / or /boot on usb * Tue Jul 30 2002 Jeremy Katz - grubby: adding kernels to lilo.conf when not using root=LABEL will work now too * Fri Jul 26 2002 Erik Troan - didn't close /proc/partitions in mkdevices * Thu Jul 25 2002 Jeremy Katz - grubby: fix adding kernels to lilo when using root=LABEL * Wed Jul 24 2002 Erik Troan - added and used mkdevices command (68959) * Wed Jul 17 2002 Erik Troan - do proper probing to check root=LABEL - --bootloader-probe didn't support /etc/sysconfig/grub * Fri Jul 12 2002 Erik Troan - don't sanity check root=LABEL right now; probing might make sense? * Wed Jul 10 2002 Erik Troan - --ifneeded is obsolete; we always need initrds - grubby lets you specify multiple indexes for --info - grubby lets you select kernels by title - added showlabels to nash - new-kernel-pkg sets the root device from /etc/fstab rather then inheriting it - new-kernel-pkg removes all entries w/ a duplicate label (67459) * Mon Jul 08 2002 Erik Troan - usb root device code could fail, causing no initrd to be made * Thu Jun 27 2002 Erik Troan - grubby didn't add new kernels properly * Thu Jun 27 2002 Erik Troan - support root on usb devices * Wed Jun 26 2002 Erik Troan - other= in lilo.conf wasn't being parsed out properly * Mon Jun 24 2002 Erik Troan - changed --add-kernel implementation so that --args gets handled properly * Sun Jun 23 2002 Erik Troan - added loadinitrd (used by mkbootdisk) on ia32 and sparc - modules "off" and "null" should be ignored (67086) - mkrootdev looks for root=LABEL=/ in /proc/cmdline, so root by label works again (fully determined by root= kernel parameter) - added --update-kernel and --remove-args arguments to grubby - kernel specification of ALL supported by grubby - DEFAULT accepted much more consistently - grubby --info displays info on all kernels specified, not just the first - ext3 need mbcache now (67354) - grubby allows config file entry numbers to be used as kernel paths - support /etc/sysconfig/grub.conf - display lba info from lilo.conf file in --info * Thu Jun 13 2002 Jeremy Katz - don't run lilo twice on kernel removal in new-kernel-pkg - don't run grubby to add/remove kernels from new-kernel-pkg if bootloader config doesn't * Tue Jun 11 2002 Erik Troan - added --bootloader-probe to grubby - wrote a man page for grubby - include grubby on ia64 - updated new-kernel-pkg to work with lilo/elilo - added --info=DEFAULT option * Mon Jun 10 2002 Jeremy Katz - start raid before lvm so that you can have root on lvm on raid (#66175) * Tue Jun 04 2002 Erik Troan - failed to initialize a variable in grubby * Fri May 31 2002 Erik Troan - added --grub option so grub tests could run on ia64 - added some basic tests of lilo default directive handling * Wed May 29 2002 Jeremy Katz - require lvm * Tue May 28 2002 Bill Nottingham - fix umounting of /initrd when pivoting * Tue May 28 2002 Erik Troan - marked /sbin/installkernel as %config (53006) - run make test during build * Wed May 22 2002 Erik Troan - added --nopivot (53679) - honor INSTALL_PATH in installkernel (32833) - installkernel versions old kernels as well (52756) - lilo support added to grubby * Tue May 21 2002 Erik Troan - cleaned up usage message - added --omit-lvm-modules to man page - added --builtin option (65250) - skip comments in fstab (65249) - added findlodev to nash, use that to pick block device (63421) - support -o option in nash's mount (59185) - look for xfs_dmapi (60066) - added > support for executed commands (61180) - grubby copies permissions from old config file (59227) - use options from fstab for root filesystem (56071) - try and be better about returning nonzero on error (60203) - make modprobe symlink properly to avoid kernel message (62145) - support linear raid (12775) - support fallback option in grub config (54794) - comments in template entries not handled quite right (65198) * Sat Apr 20 2002 Erik Troan - grubby does a better job of not adding superfluous default= lines * Wed Apr 17 2002 Erik Troan - preload works again * Wed Apr 10 2002 Jeremy Katz - revert to not mounting by label * Fri Apr 5 2002 Jeremy Katz - include pbrown's changes to load parport_pc when needing ppa.o (#35360) * Thu Apr 4 2002 Jeremy Katz - fix redirection bug (#62623) - create proper link of /sbin->/bin in initrd (#62199) * Thu Mar 28 2002 Jeremy Katz - prereq dev package so that we always have the dev package before we get run * Fri Mar 22 2002 Jeremy Katz - duh, that won't work. fix it - don't require lvm tools right now * Thu Mar 21 2002 Jeremy Katz - fix nash to create directories for devices like cciss and ida * Tue Feb 5 2002 Bill Nottingham - run mkinitrd with -f in new-kernel-pkg - don't run lilo in /sbin/installkernel * Fri Feb 1 2002 Jeremy Katz - require lvm * Thu Jan 31 2002 Jeremy Katz - clean up warnings for when /proc isn't mounted * Tue Jan 29 2002 Jeremy Katz - fix probing for LVM usage to require a volume group to exist before adding the module - --omit-lvm-modules will omit LVM modules - add support for root device being LVM * Wed Jan 16 2002 Erik Troan - look for a non /tmpfs directory - added support for xfs - use with raid md.o if it exists - fixed bug in echo - use find form nash rather then /usr (mkinitrd shouldn't need /usr mounted) * Fri Jan 11 2002 Erik Troan - added support for mounting root filesystem by label - switched to dietlibc from minilibc - fix so --preload= works [33675,57560,44377] - added info on --image-version and --nocompress to man page [57560] - set fileystem check interval to 0 in case the system clock is borked [51454] - give a proper error when run by a user other then root [27218,53159] - grubby statically linked against popt [55305] - cleaned up verbose output a bit [21791] * Tue Dec 18 2001 Trond Eivind Glomsrød - Add LVM module when LVM is used * Wed Sep 5 2001 Jeremy Katz - grubby shouldn't blow away default=saved lines (#52981) * Fri Aug 31 2001 Jeremy Katz - fix new-kernel-pkg --mkinitrd for ia64 * Thu Aug 30 2001 Erik Troan - fixed bug handling invalid default (MF #52889) - in some cases we would set the default to point at a removed image * Wed Aug 29 2001 Erik Troan - minor grubby fixes * Tue Aug 28 2001 Jeremy Katz - let new-kernel-pkg be able to do more (initrds, modules.*) - include grubby only on x86 * Mon Aug 27 2001 Jeremy Katz - more grubby fixups for having a /boot - added new-kernel-pkg * Sun Aug 26 2001 Erik Troan - added grubby - added installkernel * Fri Aug 3 2001 Matt Wilson - make consoles with the correct minor numbers - applied patch from hjl to fix fstab parsing (#50819) * Fri Jul 20 2001 Jeremy Katz - skip errors finding jbd as a module if we're skipping them trying to find ext3 so that you can build a kernel with ext3 built-in and still use an initrd * Wed Jul 11 2001 Bill Nottingham - don't print errors if /etc/raidtab doesn't exist - or /etc/{modules.conf,conf.modules}, for that matter * Fri Jul 6 2001 Matt Wilson - don't dig through /etc/fstab to find out if we have a filesystem on a RAID device, it's usually mounted by label so /dev/mdN isn't there at all (#46525) * Tue Jun 26 2001 Bill Nottingham - require filesystem >= 2.1.0, otherwise we don't boot * Thu Jun 21 2001 Erik Troan - added a bunch of commands to nash - use pivot_root - support ext3 * Fri Jun 08 2001 Florian La Roche - delete the exclusivearch line completely * Fri Mar 23 2001 Matt Wilson - reset the state of findmodule after getting the modules we need * Wed Feb 28 2001 Matt Wilson - changed the Requires on mktemp from >= 1.5 to >= 1.5-5 (which included -d support) (#30127) * Fri Feb 23 2001 Erik Troan - let nash be invoked as modprobe to avoid a modprobe failure to exec - nash will try to run arbitrary commands now (removing insmod as a special case) * Mon Feb 12 2001 Matt Wilson - add findutils to Requires line (#27269) * Thu Feb 8 2001 Matt Wilson - added checks to load the modules i2o_block needs * Wed Feb 7 2001 Bill Nottingham - fix utterly broken build * Wed Jan 31 2001 Helge Deller - added mandir to nash Makefile (RH 6.x compatibility) * Tue Jan 30 2001 Erik Troan - added dependency on mktemp * Thu Jan 25 2001 Erik Troan - we need to insert xor.o before raid5.o * Wed Jan 24 2001 Matt Wilson - code in RAID_AUTORUN ioctl fallback - fixed raidstart check flag from -z to -n * Tue Jan 23 2001 Erik Troan - switched to using nash from sash * Tue Jan 23 2001 Matt Wilson - added patch from twaugh to avoid blindly adding scsi_mod and sd_mod to initrd if they are not needed (#24114) * Thu Jan 11 2001 Bernhard Rosenkraenzer - Enlarge initrds, needed for systems with both IDE and SCSI (Bug #23846) - Version 2.[6789] probably shouldn't identify itself as 2.6 with --version. ;) - bzip2 source * Wed Dec 20 2000 Erik Troan - let the kernel autoload ide-cd * Fri Dec 08 2000 Erik Troan - added modular ide support * Wed Aug 30 2000 Nalin Dahyabhai - use mktemp to create temporary files and directories * Sat Aug 05 2000 Erik Troan - changes from Keith Owens for 2.4 * Tue Jul 4 2000 Matt Wilson - build on alpha * Mon Jun 26 2000 Bill Nottingham - ignore 'unknown' aliases (they shouldn't be there anyways) * Thu Jun 1 2000 Bill Nottingham - build on ia64 - bump up initrd size on ia64 - modules.confiscation, /usr/man -> /usr/share/man * Tue May 2 2000 Nalin Dahyabhai - make RPM pick up man page, regardless of compression * Tue Feb 29 2000 Matt Wilson - add requirement for /sbin/losetup * Mon Feb 7 2000 Matt Wilson - gzip manpage * Thu Feb 3 2000 Matt Wilson - gzip manpage * Mon Jan 10 2000 Erik Troan - use sash, not ash * Mon Jan 3 2000 Matt Wilson - use ash.static for /bin/sh, not sash * Sat Jan 1 2000 Erik Troan - configure loopback devices * Tue Sep 28 1999 Bill Nottingham - sparc fixup from jakub * Wed Sep 22 1999 Michael K. Johnson - fix cleanup (blush!) * Tue Sep 21 1999 Michael K. Johnson - now works when /usr is not mounted (do not rely on /usr/bin/install) - slight cleanups, better usage message * Thu Jul 29 1999 Michael K. Johnson - Now automatically includes necessary raid modules - --omit-raid-modules now omits raid modules - tiny doc updates * Thu Jul 29 1999 Bill Nottingham - updates from bugzila (#4243, #4244) * Sat Mar 27 1999 Matt Wilson - --omit-scsi-modules now omits all scsi modules - updated documentation - mkinitrd now grabs scsi_hostadapter modules from anywhere - some RAID controller modules live in block/ * Thu Feb 25 1999 Matt Wilson - updated description * Mon Jan 11 1999 Matt Wilson - Ignore the absence of scsi modules, include them if they are there, but don't complain if they are not. - changed --no-scsi-modules to --omit-scsi-modules (as it should have been) * Thu Nov 5 1998 Jeff Johnson - import from ultrapenguin 1.1. * Tue Oct 20 1998 Jakub Jelinek - fix for combined sparc/sparc64 insmod, also pluto module is really fc4:soc:pluto and we don't look at deps, so special case it. * Sat Aug 29 1998 Erik Troan - replaced --needs-scsi-mods (which is now the default) with --omit-scsi-mods * Fri Aug 7 1998 Jeff Johnson - correct obscure regex/shell interaction (hardwires tabs on line 232) * Mon Jan 12 1998 Erik Troan - added 'make archive' rule to Makefile - rewrote install procedure for more robust version handling - be smarter about grabbing options from /etc/conf.modules * Mon Oct 20 1997 Erik Troan - made it use /bin/ash.static * Wed Apr 16 1997 Erik Troan - Only use '-s' to install binaries if /usr/bin/strip is present. - Use an image size of 2500 if binaries can't be stripped (1500 otherwise) - Don't use "mount -o loop" anymore -- losetup the proper devices manually - Requires losetup, e2fsprogs * Wed Mar 12 1997 Michael K. Johnson - Fixed a bug in parsing options. - Changed to use a build tree, then copy the finished tree into the image after it is built. - Added patches derived from ones written by Christian Hechelmann which add an option to put the kernel version number at the end of the module name and use install -s to strip binaries on the fly.