opensuse:seifes-mkinitrd.git
7 years agosetup-storage.sh: Fix beautify_blockdev() SLES-11
Michal Marek [Mon, 10 May 2010 11:21:55 +0000 (13:21 +0200)]
setup-storage.sh: Fix beautify_blockdev()

References: bnc#604150
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoUpdated rpm changelog
Michal Marek [Mon, 30 Aug 2010 16:44:44 +0000 (18:44 +0200)]
Updated rpm changelog

7 years agoFix handling of minor/major device numbers for minor device numbers > 255
Bernhard Walle [Thu, 8 Jan 2009 17:09:31 +0000 (18:09 +0100)]
Fix handling of minor/major device numbers for minor device numbers > 255

New kernels may use minor device numbers larger than 255 for storage. One can
enable that for debugging with CONFIG_DEBUG_BLOCK_EXT_DEVT set in the kernel
configuration.

That patch changes the handling of minor/major device numbers in a way
that the first 20 bits are used for the minor number and the rest for the
major number. That's what the kernel currently does, so we're on the safe
side.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
Cherry-picked from 9d62c04e231c35087e1a1e98630205da8233737f
Signed-off-by: Michal Marek
7 years agosetup-block.sh: Map /dev/VxDMP* to vxdmp.ko
Michal Marek [Tue, 20 Jul 2010 20:32:51 +0000 (22:32 +0200)]
setup-block.sh: Map /dev/VxDMP* to vxdmp.ko

References: bnc#623776
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoboot-start.sh: Parse /proc/cmdline more robustly
Michal Marek [Wed, 5 May 2010 12:51:20 +0000 (14:51 +0200)]
boot-start.sh: Parse /proc/cmdline more robustly

References: bnc#598063#c3
Signed-off-by: Michal Marek <mmarek@suse.cz>
Conflicts:

scripts/boot-start.sh

7 years agoboot-start: Support double-quoted strings in /proc/cmdline
Michal Marek [Fri, 16 Apr 2010 13:21:10 +0000 (15:21 +0200)]
boot-start: Support double-quoted strings in /proc/cmdline

References: bnc#551967
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agosetup-prepare: Fix feature check if nullglob is not set
Michal Marek [Wed, 14 Apr 2010 14:34:20 +0000 (16:34 +0200)]
setup-prepare: Fix feature check if nullglob is not set

In SLES-11 branch we do not use shopt -s nullglob and it would be risky
to enable it in a maintenance update.

Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agosetup-prepare: Fix feature check
Michal Marek [Tue, 13 Apr 2010 12:20:31 +0000 (14:20 +0200)]
setup-prepare: Fix feature check

References: bnc#596086
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoDo not call update-bootloader if not available
Michal Marek [Fri, 9 Apr 2010 13:53:00 +0000 (15:53 +0200)]
Do not call update-bootloader if not available

References: bnc#595071
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoUpdate mkinitrd.changes
Michal Marek [Thu, 25 Mar 2010 12:59:01 +0000 (13:59 +0100)]
Update mkinitrd.changes

Add entries for commits 6dd88aa and f9952ad.

Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoboot-killudev: do not use the obsolete udevsettle command
Michal Marek [Tue, 23 Mar 2010 13:44:02 +0000 (14:44 +0100)]
boot-killudev: do not use the obsolete udevsettle command

7 years agoMake the build_rpm script suck less
Michal Marek [Tue, 26 Jan 2010 16:10:19 +0000 (17:10 +0100)]
Make the build_rpm script suck less

7 years agoscripts/boot-start.sh: avoid using eval statements
Michal Marek [Mon, 15 Mar 2010 13:14:20 +0000 (14:14 +0100)]
scripts/boot-start.sh: avoid using eval statements

References: bnc#525668
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoCheck for a list of available mkinitrd features.
Milan Vancura [Wed, 10 Mar 2010 16:56:41 +0000 (17:56 +0100)]
Check for a list of available mkinitrd features.

References: bnc#551339

Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoParse iBFT settings correctly
Hannes Reinecke [Mon, 19 Oct 2009 09:49:39 +0000 (11:49 +0200)]
Parse iBFT settings correctly

We should be parsing iBFT settings correctly to enable
the correct network interface.

References: bnc#541892
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agosetup-block: Add warning for loop devices
Hannes Reinecke [Mon, 25 Jan 2010 09:28:47 +0000 (10:28 +0100)]
setup-block: Add warning for loop devices

When a loop device is detected we have no information on how the
system should be setup properly.
So add a warning message here to allow the user to specify the
driver manually.

References: bnc#523749
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agosetup-storage: Ignore error messages from dmsetup
Hannes Reinecke [Mon, 25 Jan 2010 09:27:43 +0000 (10:27 +0100)]
setup-storage: Ignore error messages from dmsetup

When device-mapper is not used or no devices are present
'dmsetup' will be writing some messages to stderr.
Ignore them.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoUse udevsettle before killing udevd
Michal Marek [Wed, 10 Mar 2010 11:39:02 +0000 (12:39 +0100)]
Use udevsettle before killing udevd

References: bnc#543612.
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoRemove changelog entries from the specfile
Michal Marek [Wed, 10 Mar 2010 09:59:24 +0000 (10:59 +0100)]
Remove changelog entries from the specfile

Signed-off-by: Michal Marek <mmarek@suse.cz>
8 years agoFix mkinitrd.changes
Milan Vancura [Wed, 11 Nov 2009 21:30:09 +0000 (22:30 +0100)]
Fix mkinitrd.changes

8 years agoscripts/setup-blockpartition.sh: fix partition->disk name convertion
Milan Vancura [Thu, 22 Oct 2009 12:36:50 +0000 (14:36 +0200)]
scripts/setup-blockpartition.sh: fix partition->disk name convertion

scripts/setup-blockpartition.sh: fix sed regexp converting a
partition device name to the disk name

References: bnc#531663

8 years agoReport the right exit_code if update-bootloader was called
Milan Vancura [Tue, 13 Oct 2009 13:54:08 +0000 (15:54 +0200)]
Report the right exit_code if update-bootloader was called

References: bnc#531252

8 years agoAdd "net_delay" kernel cmdline option for kdump purposes
Milan Vancura [Tue, 13 Oct 2009 12:57:54 +0000 (14:57 +0200)]
Add "net_delay" kernel cmdline option for kdump purposes

References: bnc#471943

8 years agoFix mkinitrd.changes
Milan Vancura [Tue, 13 Oct 2009 07:16:55 +0000 (09:16 +0200)]
Fix mkinitrd.changes

8 years agoProvide kernel version to modinfo
Tony Ernst [Tue, 13 Oct 2009 07:08:43 +0000 (09:08 +0200)]
Provide kernel version to modinfo

In case running kernel and kernel initrd is being build for are different
modinfo got wrong information about modules.

References: bnc#494364

Signed-off-by: Milan Vancura <mvancura@suse.cz>
8 years agoUsing ifup for network initialisation
Hannes Reinecke [Thu, 30 Apr 2009 08:00:34 +0000 (10:00 +0200)]
Using ifup for network initialisation

For multipathed iSCSI installation we have to enable all network
interfaces to avoid boot hangs due to temporary network stalls.
This patch adds a new feature 'ifup' which will include and
configure all interfaces configured by ifup in the initrd.

References: bnc#487723

Signed-off-by: Hannes Reinecke <hare@suse.de>
8 years agoAdd a support for "tmpfs_options" option on command line
Milan Vancura [Wed, 18 Mar 2009 20:01:43 +0000 (21:01 +0100)]
Add a support for "tmpfs_options" option on command line

Allow to specify extra mount options for /dev (bnc#483965)

8 years agoHandle extended minor numbers correctly
Hannes Reinecke [Tue, 24 Feb 2009 09:51:53 +0000 (10:51 +0100)]
Handle extended minor numbers correctly

devminor() should handle extended minor numbers correctly,
otherwise we cannot detect disks properly.

References: bnc#471815

Signed-off-by: Hannes Reinecke <hare@suse.de>
8 years agoUpdate mkinitrd.changes
Bernhard Walle [Thu, 29 Jan 2009 15:49:13 +0000 (16:49 +0100)]
Update mkinitrd.changes

8 years agoDon't use the 'ip' variable from environment
Bernhard Walle [Thu, 29 Jan 2009 15:39:11 +0000 (16:39 +0100)]
Don't use the 'ip' variable from environment

Because YaST/Linuxrc exports 'ip', that can lead to false results. Don't
honor the 'ip' environment.

References: bnc #450680
Signed-off-by: Bernhard Walle <bwalle@suse.de>
8 years agoUpdate mkinitrd.changes
Bernhard Walle [Fri, 23 Jan 2009 10:34:21 +0000 (11:34 +0100)]
Update mkinitrd.changes

8 years agoFix detection of compiled-in modules
Bernhard Walle [Fri, 23 Jan 2009 10:24:13 +0000 (11:24 +0100)]
Fix detection of compiled-in modules

The detection of compiled-in modules didn't work properly in all cases.
The 'foo REQUIRES bla' syntax in the modprobe configuration files
were not catched.

That compiled-in modules checking is needed for PPC64 because their
kernel configuration contains compiled-in stuff (mostly USB) that other
architectures have as module in the default SUSE configuration. However,
it may also be useful on other architectures for self-compiled kernels.

References: bnc #449123
Signed-off-by: Bernhard Walle <bwalle@suse.de>
8 years agoUpdate mkinitrd.changes
Bernhard Walle [Thu, 22 Jan 2009 15:34:29 +0000 (16:34 +0100)]
Update mkinitrd.changes

8 years agoResolve hostnames in /etc/hosts
Bernhard Walle [Thu, 22 Jan 2009 15:21:22 +0000 (16:21 +0100)]
Resolve hostnames in /etc/hosts

To be able to use also hostnames in initrd which are not resolvable via DNS but
have been defined locally in /etc/hosts, we copy over the current /etc/hosts
into the initrd and change the /etc/nsswitch.conf.

References: bnc #468090
Signed-off-by: Bernhard Walle <bwalle@suse.de>
8 years agoUpdate mkinitrd.changes
Bernhard Walle [Wed, 21 Jan 2009 19:36:37 +0000 (20:36 +0100)]
Update mkinitrd.changes

8 years agoInclude libunwind on IA64
Bernhard Walle [Wed, 21 Jan 2009 19:30:27 +0000 (20:30 +0100)]
Include libunwind on IA64

Because libgcc_s on IA64 (that is explicitly included) requires
libunwind on IA64, we also include that. This fixes the error

  libgcc_s.so.1 must be installed for pthread_cancel to work

that is shown during bootup.

References: bnc #459218
Signed-off-by: Bernhard Walle <bwalle@suse.de>
8 years agoMount /root/proc in initrd to make SELinux happy
Bernhard Walle [Mon, 19 Jan 2009 16:42:16 +0000 (17:42 +0100)]
Mount /root/proc in initrd to make SELinux happy

To make the selinux patch in sysvinit work we have to mount at least
/proc before init is started. mount --move does not work.

References: bnc #467342
Signed-off-by: Thomas Biege <thomas@suse.de>
Signed-off-by: Bernhard Walle <bwalle@suse.de>
8 years agoUse the mount options of the root file system from /etc/fstab
Bernhard Walle [Mon, 19 Jan 2009 16:31:20 +0000 (17:31 +0100)]
Use the mount options of the root file system from /etc/fstab

Use the mount options of the root file system from /etc/fstab when building the
initrd and save it in the initrd image as "rootfsopts". That setting can still
be overwritten by the "rootflags" boot parameter.

References: bnc #449369
Signed-off-by: Bernhard Walle <bwalle@suse.de>
8 years agoCopy the system resolv.conf for static IP configurations
Bernhard Walle [Tue, 13 Jan 2009 13:30:40 +0000 (14:30 +0100)]
Copy the system resolv.conf for static IP configurations

Copy the system resolv.conf for static IP configurations
to make name resolution work in the kdump case when static
IPs are used.

References: bnc #459065
Signed-off-by: Bernhard Walle <bwalle@suse.de>
8 years agoImplement bonding for network interfaces
Bernhard Walle [Mon, 12 Jan 2009 15:53:45 +0000 (16:53 +0100)]
Implement bonding for network interfaces

This is a first attemt to implement bonding. The patch is basically from
Tanvi Verma <tanvi@netapp.com> with some additions. It should work with
iSCSI. Known problems: Network setup (rcnetwork start) seems to re-condigure
and break stuff.

References: bnc #460720
Signed-off-by: Bernhard Walle <bwalle@suse.de>
8 years agoFix detection if the log directory is writable
Bernhard Walle [Sun, 14 Dec 2008 17:49:23 +0000 (18:49 +0100)]
Fix detection if the log directory is writable

The last commit contained a small bug that LOGFILE was checked for being
a directory. That cannot be true. Therefore introduce LOGFILE.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
8 years agoImplement logging
Bernhard Walle [Sun, 14 Dec 2008 17:46:04 +0000 (18:46 +0100)]
Implement logging

To increase debugging, log now to /var/log/YaST2/mkinitrd.log.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoGenerate manual pages using asciidoc
Bernhard Walle [Thu, 11 Dec 2008 11:12:30 +0000 (12:12 +0100)]
Generate manual pages using asciidoc

Instead of writing the manual pages in nroff directly, use asciidoc(1)
to generate them. The asciidoc format is more readable than nroff
(at least in my very personal opinion).

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoDon't output nroff formatted help when stdout is not a Terminal
Bernhard Walle [Wed, 10 Dec 2008 16:38:33 +0000 (17:38 +0100)]
Don't output nroff formatted help when stdout is not a Terminal

Check if stdout is a Terminal. If not, don't output control characters.
Improve the fallback formatting a bit.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoUse the right mkinitrd.{spec,changes} if build_rpm -b $BRANCH is used
Bernhard Walle [Wed, 10 Dec 2008 15:38:33 +0000 (16:38 +0100)]
Use the right mkinitrd.{spec,changes} if build_rpm -b $BRANCH is used

Don't just copy mkinitrd.{spec,changes} from the current working copy
to /tmp/mkinitrd, but use 'git show branch:file' to get the latest contents
from the repo.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoDon't build initrds for the kdump kernel when calling mkinitrd without arguments
Bernhard Walle [Wed, 10 Dec 2008 15:30:17 +0000 (16:30 +0100)]
Don't build initrds for the kdump kernel when calling mkinitrd without arguments

The kdump initrd is built with mkdumprd(8), not directly with mkinitrd(8).
mkdumprd(8) calls mkinitrd(8) with special options. Therefore, we don't
(re-)build the kdump initrd with mkinitrd calls that don't specify kernel
and initrd. 'rckdump start' does that on demand.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoFix exclusion of firmware modules from INITRD_MODULES
Bernhard Walle [Wed, 10 Dec 2008 09:31:34 +0000 (10:31 +0100)]
Fix exclusion of firmware modules from INITRD_MODULES

Commit 4b0eb6f67d6c8e258cf27efa90c5d466c88f5e08 introduced the problem that now
modules that require a firmware are not included into initrd at all if only
listed via INITRD_MODULES and not detected automatically. Now we include such
modules via the %udevmodules comment but don't load it manually with 'modprobe'
at system boot (i.e., via. %modules). That should work for that case.

References: bnc #457428
Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoFix multipath detection via dm-multipath module
Bernhard Walle [Tue, 9 Dec 2008 15:51:33 +0000 (16:51 +0100)]
Fix multipath detection via dm-multipath module

The code in setup-start.sh to detect dm-multipath feature could have never
worked.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoDon't load drivers via modprobe that require firmware
Bernhard Walle [Tue, 9 Dec 2008 15:43:51 +0000 (16:43 +0100)]
Don't load drivers via modprobe that require firmware

Drivers listed in INITRD_MODULES in /etc/sysconfig/kernel are loaded before
udev is started via modprobe. However, udev is required to load firmware files.
The fix is to exclude drivers that require firmware files from being loaded
via INITRD_MODULES. The resolution is done when creating the initrd, not at boot
time.

References: bnc #457428
Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoCheck for some modules if they are compiled-in
Bernhard Walle [Mon, 8 Dec 2008 16:27:37 +0000 (17:27 +0100)]
Check for some modules if they are compiled-in

For specific modules (in our case: usbcore, ohci_hcd, ehci_hcd and usbhid)
check if they are compiled in by grepping the /boot/config-$KERNELVERSION.
That removes warnings for PPC64.

References: bnc #449123
Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoExtend the 'SUSE INITRD' comment mechanism for programs
Bernhard Walle [Mon, 8 Dec 2008 15:23:53 +0000 (16:23 +0100)]
Extend the 'SUSE INITRD' comment mechanism for programs

For 'install' lines in /etc/modprobe.conf and friends you need to have
the binaries in the initrd so that the install lines don't fail. Add
parsing of

        # SUSE INITRD: foo REQUIRES /path/to/program

comments to the mkinitrd script.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoActually execute load_additional_dependencies
Bernhard Walle [Mon, 8 Dec 2008 15:11:59 +0000 (16:11 +0100)]
Actually execute load_additional_dependencies

Commit 9e82cd561d229469395b8f46e0322ba9ba24fb0d broke the execution of
load_additional_dependencies because we checked if the global
additional_module_dependencies array contained data. Because that commit
pre-filled additional_module_dependencies with data, the function was
never executed.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoUpdate Changelog.
Bernhard Walle [Sat, 6 Dec 2008 16:21:40 +0000 (17:21 +0100)]
Update Changelog.

9 years agoInclude virtio_pci if necessary
Bernhard Walle [Sat, 6 Dec 2008 16:13:37 +0000 (17:13 +0100)]
Include virtio_pci if necessary

When using virtio_net as network device, we also need virtio_pci (and its
dependency virtio_ring) in the initrd. The dependency isn't expressed in
udev rules or install-lines (/etc/modprobe.conf*). The virtio_pci driver is just
loaded by the modalias

    pci:v00001AF4d*sv*sd*bc*sc*i*

in the module. Therefore we have to hardcode that dependency, at least for now.

References: bnc #456439

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoInclude added files in the build_rpm patch (--uncommitted-changes)
Bernhard Walle [Sat, 6 Dec 2008 16:02:34 +0000 (17:02 +0100)]
Include added files in the build_rpm patch (--uncommitted-changes)

When the file is already added, it's not displayed in 'git diff'.
Therefore, use 'git diff HEAD'. It displays both the not added and the
added files (combination of 'git diff' and 'git diff --cached').

This is only to build test RPMs.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoRun mkinitrd_setup in '%posttrans' instead of '%post'
Bernhard Walle [Fri, 5 Dec 2008 13:52:30 +0000 (14:52 +0100)]
Run mkinitrd_setup in '%posttrans' instead of '%post'

Run mkinitrd_setup in '%posttrans' instead of '%post' to fix danging symlinks
after removal of some scripts.

References: bnc #456417

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoUpdate Changelog.
Bernhard Walle [Wed, 3 Dec 2008 18:57:59 +0000 (19:57 +0100)]
Update Changelog.

9 years agoAdd 'SUSE INITRD foo REQUIRES bar' comment parsing
Bernhard Walle [Wed, 3 Dec 2008 18:52:28 +0000 (19:52 +0100)]
Add 'SUSE INITRD foo REQUIRES bar' comment parsing

To express dependencies of modules that use install lines in /etc/modprobe.conf
and friends we add a new comment syntax

    # SUSE INITRD foo REQUIRES bar

in /etc/modprobe.conf, /etc/modprobe.conf.local and /etc/modprobe.conf.d/*
files. That allows us for example to add

    # SUSE INITRD: uhci-hcd REQUIRES ehci-hcd
    install uhci-hcd /sbin/modprobe ehci-hcd; /sbin/modprobe --ignore-install uhci-hcd
    # SUSE INITRD: ohci-hcd REQUIRES ehci-hcd
    install ohci-hcd /sbin/modprobe ehci-hcd; /sbin/modprobe --ignore-install ohci-hcd

in /etc/modprobe.conf. That makes that install lines actually working because
then mkinitrd includes the ehci-hcd module if uhci-hcd or ohci-hcd is required.

We need to replace that for Code 11++ (openSUSE 11.2 and later).

References: bnc #449853

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoDon't filter out install lines from the initrd
Bernhard Walle [Wed, 3 Dec 2008 15:51:14 +0000 (16:51 +0100)]
Don't filter out install lines from the initrd

Another rework of the module handling: Copy the install lines over into the
initrd. When some commands fail this is not fatal since the modprobe which is
important is executed in any case.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoCopy persistent net rules into the initrd
Hannes Reinecke [Wed, 3 Dec 2008 15:39:01 +0000 (16:39 +0100)]
Copy persistent net rules into the initrd

We need to copy the persistent network configuration into the
initrd to avoid name clashes when the network setup is done.

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoFixup ip= line to reflect interface changes from the commandline
Hannes Reinecke [Wed, 3 Dec 2008 15:34:43 +0000 (16:34 +0100)]
Fixup ip= line to reflect interface changes from the commandline

When setting a different interface from commandline / iBFT settings
the original ip= setting won't be updated to reflect this.

References: 442074

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoAdding myself as Author in the manpage
Bernhard Walle [Tue, 2 Dec 2008 17:43:24 +0000 (18:43 +0100)]
Adding myself as Author in the manpage

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoRework module dependency resolution with install lines
Bernhard Walle [Tue, 2 Dec 2008 16:46:49 +0000 (17:46 +0100)]
Rework module dependency resolution with install lines

This commit

 1. Removes the hack which was included in
    5f714ed433d6d10a95e07b85b59ffbe8bd392fe2.

 2. Calls modprobe with -C /dev/null which ignores any configuration options
    then, including the install lines. This prints additional dependencies
    (like 'sunrpc' for 'nfs') that would only be displayed in form of a install
    line otherwise.

 3. Doesn't copy over the install lines into the initrd. It filters them out
    with 'grep -v ^install'.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoDon't use ext3 to check if a kernel is supported but ipv6
Bernhard Walle [Tue, 2 Dec 2008 15:50:15 +0000 (16:50 +0100)]
Don't use ext3 to check if a kernel is supported but ipv6

Since ext3 is compiled-in on ppc64 kernel, we need to use a module that
exists as module on very flavour to make the 'check if we are generating
the initrd for a supported kernel' hack working. ipv6 is such a candidate,
it's also in the -base packages.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoMake -v a global option
Bernhard Walle [Tue, 2 Dec 2008 14:05:55 +0000 (15:05 +0100)]
Make -v a global option

Change evaluation of -v option. Now it's really global, not local to the
subshell spawned by mkinitrd. Discovered while debugging bnc #450522.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoUpdate Changelog.
Bernhard Walle [Tue, 2 Dec 2008 13:40:06 +0000 (14:40 +0100)]
Update Changelog.

9 years agoAdd new -B option: Don't refresh bootloader configuration
Bernhard Walle [Tue, 2 Dec 2008 13:37:02 +0000 (14:37 +0100)]
Add new -B option: Don't refresh bootloader configuration

Add a new option -B that prevents the "update-bootloader" script from
being called after the initrd(s) have been generated. That is meant to be
called from the spec file from s390-tools because that is not exeucted in
the running system but in a build system.

References: Bug #450522
Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoAdd --uncommitted-changes to build_rpm
Bernhard Walle [Tue, 2 Dec 2008 12:15:16 +0000 (13:15 +0100)]
Add --uncommitted-changes to build_rpm

This change set adds the option --uncommitted-changes which includes a patch
into the RPM package that contains the output of 'git diff', i.e. the
uncommitted changes of the working copy.

This is for testing purposes.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoMakefiles needs tabs
Bernhard Walle [Mon, 1 Dec 2008 21:39:14 +0000 (22:39 +0100)]
Makefiles needs tabs

Use tabs for Makefiles.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoConvert tabs to spaces
Bernhard Walle [Mon, 1 Dec 2008 21:38:16 +0000 (22:38 +0100)]
Convert tabs to spaces

I don't like that mix of tabs and spaces.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoActually check for ext3 module
Bernhard Walle [Mon, 1 Dec 2008 21:29:56 +0000 (22:29 +0100)]
Actually check for ext3 module

That fixes d229eac57c5d7adf839bffb26998d78a105ad686.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoUpdate Changelog.
Bernhard Walle [Mon, 1 Dec 2008 21:13:59 +0000 (22:13 +0100)]
Update Changelog.

9 years agoAdd handling for unsupported kernels
Bernhard Walle [Mon, 1 Dec 2008 20:38:00 +0000 (21:38 +0100)]
Add handling for unsupported kernels

mkinitrd doesn't add kernel modules which are unsupported. However, that does
not make sense when you have a non-SUSE kernels because it prevents users from
using a non-SUSE kernel on SLES at all without changing
/etc/modprobe.d/unsupported-modules.

This patch checks if the 'ext3.ko' (because it's always present) module
is unsupported. If it is, then we assume that the kernel is unsupported as a
whole. Then we add that kernel modules to initrd.

Because the patch in module-init-tools checks if we're running on a unsupported
kernel and loads the kernel modules then, that initrd is actually usable.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoAdd .gitignore
Bernhard Walle [Mon, 1 Dec 2008 20:31:56 +0000 (21:31 +0100)]
Add .gitignore

Add .gitignore file to ignore '*.marks' files of jEdit.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoPrint the verbose output to stderr
Bernhard Walle [Mon, 1 Dec 2008 19:18:09 +0000 (20:18 +0100)]
Print the verbose output to stderr

The verbose output should be printed to stderr, not stdout. That is important
when you call verbose inside a function that prints something to stdout
which is used as input in the function that calls this function.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoRemove #ident
Bernhard Walle [Mon, 1 Dec 2008 16:12:40 +0000 (17:12 +0100)]
Remove #ident

Since we switched from CVS to git a long time ago, remove that '#ident'
pragma with a CVS/RCS $Id$ in it. That is not up to date anyway.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoUpdate Changelog.
Bernhard Walle [Sat, 29 Nov 2008 19:44:34 +0000 (20:44 +0100)]
Update Changelog.

9 years agoAdd '-D default' parameter to documentation
Bernhard Walle [Sat, 29 Nov 2008 19:15:21 +0000 (20:15 +0100)]
Add '-D default' parameter to documentation

This change documents the "default" interface for DHCP.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoResolve bridge network devices when auto-detecting the network interfaces
Bernhard Walle [Sat, 29 Nov 2008 19:09:54 +0000 (20:09 +0100)]
Resolve bridge network devices when auto-detecting the network interfaces

For the case that a bridge contains only one network device as usual when
using Xen or some other visualization environment (KVM, VirtualBox at least),
resolve the bridge name. This means when the bridge br0 contains only eth0,
we use eth0 as automatic network interface.

The patch is important to be able to use mkinitrd ... -D default to build a
kdump initrd (calling mkinitrd(8) from mkdumprd(8)).

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoUpdate git references to opensuse.org
Bernhard Walle [Fri, 28 Nov 2008 12:42:42 +0000 (13:42 +0100)]
Update git references to opensuse.org

We moved from kernel.org to opensuse.org. Reflect that in the source code
comments.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
9 years agoUpdate Changelog.
Bernhard Walle [Fri, 28 Nov 2008 12:36:20 +0000 (13:36 +0100)]
Update Changelog.

9 years agoCompress tarballs with bzip2 instead of gzip because of rpmlint.
Bernhard Walle [Fri, 28 Nov 2008 12:35:12 +0000 (13:35 +0100)]
Compress tarballs with bzip2 instead of gzip because of rpmlint.

9 years agoUpdate shared library handling for PowerPC
Hannes Reinecke [Thu, 27 Nov 2008 15:31:45 +0000 (16:31 +0100)]
Update shared library handling for PowerPC

PowerPC have several architecture-optimized libraries; make sure
to always include the base one.

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoWork around mptctl modprobe issue
Hannes Reinecke [Tue, 25 Nov 2008 15:22:26 +0000 (16:22 +0100)]
Work around mptctl modprobe issue

mptctl is loaded via modprobe 'install' lines, which
cannot be parsed by mkinitrd. But as we don't actually
need the mptctl module in the initrd we work around it
by temporarily removing the offending modprobe script
and re-enabling it later on.
Ugly as hell.

References: 448716

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoAdd syntax checker
Hannes Reinecke [Tue, 25 Nov 2008 09:02:53 +0000 (10:02 +0100)]
Add syntax checker

The last two error were the last straw. Now I've put in a syntax
checker during built time which will catch all the most obvious
errors. Finally.

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agosetup network devices correctly
Hannes Reinecke [Tue, 25 Nov 2008 08:16:47 +0000 (09:16 +0100)]
setup network devices correctly

The change to assigne the correct network interface broke dhcp
setups. Make it work again.

References: 448395

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoFixup syntax error in modules script
Hannes Reinecke [Tue, 25 Nov 2008 07:56:23 +0000 (08:56 +0100)]
Fixup syntax error in modules script

And another one. Rah.

References: 448511

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoUpdate changelog.
Hannes Reinecke [Mon, 24 Nov 2008 15:50:42 +0000 (16:50 +0100)]
Update changelog.

9 years agoFix typo in boot-network.sh
Hannes Reinecke [Mon, 24 Nov 2008 15:44:26 +0000 (16:44 +0100)]
Fix typo in boot-network.sh

Oops. My bad.

References: 448241

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoRemove stderr redirection from modprobe
Hannes Reinecke [Mon, 24 Nov 2008 11:08:23 +0000 (12:08 +0100)]
Remove stderr redirection from modprobe

Modprobe has several error messages, not all of which can actually
be solved by running 'depmod -a'. So remove the irritating output
and display the proper modprobe error instead.

References: 441327

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoProperly quote variables
Hannes Reinecke [Mon, 24 Nov 2008 08:44:30 +0000 (09:44 +0100)]
Properly quote variables

We should quote variables properly.

References: 447966

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoUpdate spec file to depend on perl-bootloader, not perl itself
Hannes Reinecke [Mon, 24 Nov 2008 08:25:35 +0000 (09:25 +0100)]
Update spec file to depend on perl-bootloader, not perl itself

We only depend on the bootloader, not the entire perl package.

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoDo not use 'has_module' in setup-start
Hannes Reinecke [Fri, 21 Nov 2008 12:26:11 +0000 (13:26 +0100)]
Do not use 'has_module' in setup-start

The 'has_module' script has been moved to the module script, so we
cannot check for it here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agobuild_rpm: Do not check for git-archive
Hannes Reinecke [Fri, 21 Nov 2008 12:25:13 +0000 (13:25 +0100)]
build_rpm: Do not check for git-archive

All git binaries have been merged, so we shouldn't check for them.

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoRemove 'is_final'
Hannes Reinecke [Fri, 21 Nov 2008 12:24:38 +0000 (13:24 +0100)]
Remove 'is_final'

Remainder of zfcpdump testing. Remove.

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoDisable fsck for kdump
Hannes Reinecke [Fri, 21 Nov 2008 11:09:38 +0000 (12:09 +0100)]
Disable fsck for kdump

We want to save our dump as fast as possible, not check the file system every
30 mount. We do that after the reboot which is necessary after kdump anyway.

Signed-off-by: Bernhard Walle <bwalle@suse.de>
Signed-off-by: Alexander Graf <agraf@novell.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agonetwork: select correct interface when ip= is given
Hannes Reinecke [Fri, 21 Nov 2008 11:05:30 +0000 (12:05 +0100)]
network: select correct interface when ip= is given

We currently match the mac address for the interface, but do
not update the 'ip=' parameter so that static configuration
will fail here.

References: 442074

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoUpdate modules script for zfcpdump
Hannes Reinecke [Thu, 20 Nov 2008 15:30:43 +0000 (16:30 +0100)]
Update modules script for zfcpdump

Cleanup scripts for zfcpdump. No functional change.

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agonetwork: use wildcard match for 'dhcp'
Hannes Reinecke [Wed, 12 Nov 2008 13:20:09 +0000 (14:20 +0100)]
network: use wildcard match for 'dhcp'

We now also have dhcp4 and dhcp6 as valid bootproto options,
so we should rather use a wildcard match here.

Signed-off-by: Hannes Reinecke <hare@suse.de>
9 years agoAdd manpage and installation rules for lsinitrd
Hannes Reinecke [Wed, 29 Oct 2008 09:54:54 +0000 (10:54 +0100)]
Add manpage and installation rules for lsinitrd

And of course we'll have to install and reference it properly.

Signed-off-by: Hannes Reinecke <hare@suse.de>