opensuse:seifes-mkinitrd.git
5 years agoboot-udev: add blkid dependency master
Stefan Seyfried [Thu, 22 Mar 2012 09:59:13 +0000 (10:59 +0100)]
boot-udev: add blkid dependency

udev really needs blkid and it is not copied correctly after the usr
move. Adding it as a dependency to boot-udev.sh is a hack but makes
it work again.

5 years agoboot-udev: Trigger add action for subsystems
Michal Marek [Tue, 20 Mar 2012 13:20:29 +0000 (14:20 +0100)]
boot-udev: Trigger add action for subsystems

References: bnc#750668
Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agosetup-network: Print warnings to stderr
Michal Marek [Thu, 15 Mar 2012 15:12:44 +0000 (16:12 +0100)]
setup-network: Print warnings to stderr

Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agoMerge branch 'openSUSE-12.1'
Michal Marek [Wed, 14 Mar 2012 13:50:06 +0000 (14:50 +0100)]
Merge branch 'openSUSE-12.1'

5 years agoCopy ifcfg settings regardless of nettype value openSUSE-12.1
Rubin Simons [Wed, 14 Mar 2012 13:45:53 +0000 (14:45 +0100)]
Copy ifcfg settings regardless of nettype value

Hi All, I encountered this issue this morning on a fresh-install
openSUSE 12.1 x64. I dug a little deeper and tracked the issue down to
the following setup script in the mkinitrd-2.7.0-39.3.1 package:

/lib/mkinitrd/setup/82-network.sh

In there, there's a codeblock which copies /etc/sysconfig/network
recursively when $nettype equals 'ifup'. I simply moved the mkdir and cp
statements one line up so the logic stays intact for the other actions
that happen within the code block but the sysconfig/network directory is
now always created within the initrd image.

I verified this works. I don't have the (rather ugly and confusing) boot
message anymore since my initrd now contains /etc/sysconfig/network

References: bnc#724775
Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agoUpdate rpm changelog
Michal Marek [Thu, 23 Feb 2012 15:32:27 +0000 (16:32 +0100)]
Update rpm changelog

Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agoMerge commit 'refs/merge-requests/5' of git://gitorious.org/opensuse/mkinitrd
Michal Marek [Thu, 23 Feb 2012 15:16:29 +0000 (16:16 +0100)]
Merge commit 'refs/merge-requests/5' of git://gitorious.org/opensuse/mkinitrd

5 years agoSimplify calling of get_kernel_version.
Michal Marek [Wed, 15 Feb 2012 14:59:10 +0000 (15:59 +0100)]
Simplify calling of get_kernel_version.

Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agoAdd support for ARM uImages
Marcus Schäfer [Wed, 15 Feb 2012 13:56:18 +0000 (14:56 +0100)]
Add support for ARM uImages

Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years ago- support binaries in /usr tree
Robert Schweikert [Tue, 14 Feb 2012 19:40:14 +0000 (14:40 -0500)]
- support binaries in /usr tree
  This is related to sr 105016 for the coreutils package.

5 years agoInstall /boot/vmlinux for self compiled kernels
Leonardo Chiquitto [Thu, 9 Feb 2012 11:02:22 +0000 (12:02 +0100)]
Install /boot/vmlinux for self compiled kernels

...in the installkernel script

References: bnc#739822
Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agoInclude PV drivers even if running on emulated hardware
Olaf Hering [Wed, 1 Feb 2012 16:17:09 +0000 (17:17 +0100)]
Include PV drivers even if running on emulated hardware

To be able to boot when the virtualization setup changes.

References: bnc#710035
Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agoAdd support for xz compressed initrd and use it on PPC
Michal Marek [Wed, 1 Feb 2012 11:13:40 +0000 (12:13 +0100)]
Add support for xz compressed initrd and use it on PPC

References: bnc#742328
Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agoLoad all scsi_dh_* modules early during boot
Michal Marek [Fri, 20 Jan 2012 16:18:51 +0000 (17:18 +0100)]
Load all scsi_dh_* modules early during boot

Referenes: bnc#727428
Suggested-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agosetup-network: Properly install awk
Michal Marek [Fri, 6 Jan 2012 12:54:20 +0000 (13:54 +0100)]
setup-network: Properly install awk

Reported-by: Petr Tesarik <ptesarik@suse.cz>
Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agoFix ibft for virtio devices
Michal Marek [Tue, 3 Jan 2012 14:25:10 +0000 (15:25 +0100)]
Fix ibft for virtio devices

References: bnc#735058
Signed-off-by: Michal Marek <mmarek@suse.cz>
5 years agoboot-ibft: Do not hardcode eth* device names
Michal Marek [Tue, 3 Jan 2012 14:21:46 +0000 (15:21 +0100)]
boot-ibft: Do not hardcode eth* device names

References: bnc#728631, bnc#735058#c1
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agolicense update: GPL-2.0+
Ciaran Farrell [Thu, 8 Dec 2011 11:58:55 +0000 (12:58 +0100)]
license update: GPL-2.0+

Use SPDX format (http://www.spdx.org/licenses)

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agosetup-network: Remember the interface name as a fallback
Michal Marek [Wed, 7 Dec 2011 21:15:51 +0000 (22:15 +0100)]
setup-network: Remember the interface name as a fallback

If the  mac address does not match

References: bnc#733375
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agosetup-ibft: Do not assume that interface names start with 'eth'
Michal Marek [Mon, 28 Nov 2011 15:32:05 +0000 (16:32 +0100)]
setup-ibft: Do not assume that interface names start with 'eth'

References: bnc#728631
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agosetup-modules: Allow aliases as dependencies in the SUSE INITRD REQUIRES syntax
Michal Marek [Tue, 22 Nov 2011 12:48:57 +0000 (13:48 +0100)]
setup-modules: Allow aliases as dependencies in the SUSE INITRD REQUIRES syntax

References: bnc#730617
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agosetup-modules: Fix adding more than one additional dependency to modules
Michal Marek [Tue, 22 Nov 2011 11:03:01 +0000 (12:03 +0100)]
setup-modules: Fix adding more than one additional dependency to modules

References: bnc#730617
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoDo not use the chroot binary from the target system
Michal Marek [Thu, 2 Sep 2010 11:23:13 +0000 (13:23 +0200)]
Do not use the chroot binary from the target system

References: bnc#635856
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoRevert the NO_KMS_IN_INITRD -> KMS_IN_INITRD rename
Michal Marek [Mon, 7 Nov 2011 12:55:24 +0000 (13:55 +0100)]
Revert the NO_KMS_IN_INITRD -> KMS_IN_INITRD rename

It breaks other scripts for no good reason (bnc#619218#c12).

Reported-by: Stefan Dirsch <sndirsch@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoDo not create /dev/shm/initrd_exports.sh
Michal Marek [Tue, 18 Oct 2011 08:45:45 +0000 (10:45 +0200)]
Do not create /dev/shm/initrd_exports.sh

It was only needed by upstart

References: bnc#724494
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agopurge-kernels: Fix dependencies
Michal Marek [Fri, 14 Oct 2011 13:06:47 +0000 (15:06 +0200)]
purge-kernels: Fix dependencies

Only remove kernel-source and kernel-devel, if there is no runtime
package left

References: bnc#721481, bnc#723647
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agopurge-kernels: Add a couple of debugging options
Michal Marek [Fri, 14 Oct 2011 10:56:30 +0000 (12:56 +0200)]
purge-kernels: Add a couple of debugging options

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoInclude thermal, processor and fan acpi modules on x86 and ia64
Michal Marek [Tue, 11 Oct 2011 13:51:28 +0000 (15:51 +0200)]
Include thermal, processor and fan acpi modules on x86 and ia64

References: bnc#716785#c11
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agocross-build fix: use %__cc macro
Ulrich Hecht [Fri, 7 Oct 2011 09:04:34 +0000 (11:04 +0200)]
cross-build fix: use %__cc macro

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoFix the module dependency resolver to include dependencies of sd_mod
Michal Marek [Fri, 7 Oct 2011 08:51:28 +0000 (10:51 +0200)]
Fix the module dependency resolver to include dependencies of sd_mod

References: bnc#722484
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoInclude sd_mod if scsi_mod is used
Michal Marek [Thu, 22 Sep 2011 12:20:08 +0000 (14:20 +0200)]
Include sd_mod if scsi_mod is used

References: bnc#714924
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agosetup-network: 77-network.rules has moved to /lib/udev/rules.d/
Michal Marek [Wed, 21 Sep 2011 08:20:18 +0000 (10:20 +0200)]
setup-network: 77-network.rules has moved to /lib/udev/rules.d/

References: bnc#707855
Reported-by: Neil Brown <nfbrown@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoUpdate changelog
Michal Marek [Wed, 21 Sep 2011 07:28:30 +0000 (09:28 +0200)]
Update changelog

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoMerge branch 'fixes' of git://gitorious.org/~egbert/opensuse/egberts-mkinitrd
Michal Marek [Wed, 21 Sep 2011 07:26:01 +0000 (09:26 +0200)]
Merge branch 'fixes' of git://gitorious.org/~egbert/opensuse/egberts-mkinitrd

6 years agoAdd /etc/{protocols,netconfig,services} to the initrd
Michal Marek [Tue, 20 Sep 2011 21:20:44 +0000 (23:20 +0200)]
Add /etc/{protocols,netconfig,services} to the initrd

References: bnc#714945
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agopurge-kernels: Also handle kernel-source packages
Michal Marek [Mon, 19 Sep 2011 11:38:22 +0000 (13:38 +0200)]
purge-kernels: Also handle kernel-source packages

References: bnc#718753
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoFix mkinitrd -d <rootdev>
Stephan Kulow [Tue, 30 Aug 2011 12:12:52 +0000 (14:12 +0200)]
Fix mkinitrd -d <rootdev>

$dev, $major and $minor need to be set also in the else case of -z
$rootdev

Then it works.

References: bnc#714650
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoFix mkinitrd -D default
Michal Marek [Sat, 20 Aug 2011 12:26:40 +0000 (14:26 +0200)]
Fix mkinitrd -D default

References: bnc#713103
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoAdd the 'root' argument in the call to check_for_device()
Hannes Reinecke [Tue, 9 Aug 2011 14:52:37 +0000 (16:52 +0200)]
Add the 'root' argument in the call to check_for_device()

References: bnc#699870
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoOutput fsck result on root partitionto /run/initramfs/root-fsck.
Frederic Crozat [Thu, 4 Aug 2011 08:39:04 +0000 (10:39 +0200)]
Output fsck result on root partitionto /run/initramfs/root-fsck.

Prevent systemd to run fsck on / again.

Signed-off-by: Frederic Crozat <fcrozat@suse.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoMount the /usr filesystem in the initrd
Michal Marek [Tue, 2 Aug 2011 14:56:40 +0000 (16:56 +0200)]
Mount the /usr filesystem in the initrd

It has still some rough edges, like support for journal device or
booting from nfs, but simple cases should work.

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoRun cpio with the --quiet option
Michal Marek [Tue, 2 Aug 2011 12:12:48 +0000 (14:12 +0200)]
Run cpio with the --quiet option

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoOnly copy /usr/bin/on_ac_power if it exists
Michal Marek [Mon, 1 Aug 2011 15:10:21 +0000 (17:10 +0200)]
Only copy /usr/bin/on_ac_power if it exists

References: bnc#708326
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoAdd the dmesg utility for easier debugging
Michal Marek [Fri, 29 Jul 2011 13:47:20 +0000 (15:47 +0200)]
Add the dmesg utility for easier debugging

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoFix typo in boot-mount.sh
Michal Marek [Wed, 20 Jul 2011 08:33:16 +0000 (10:33 +0200)]
Fix typo in boot-mount.sh

References: bnc#704867#c6
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agopurge-kernels: Fix matching of -rc kernels
Michal Marek [Mon, 18 Jul 2011 11:17:18 +0000 (13:17 +0200)]
purge-kernels: Fix matching of -rc kernels

Reported-by: Bruno Friedmann <bruno@ioda-net.ch>
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoMap /dev/fio* to the iomemory-vsl driver
Michal Marek [Thu, 2 Jun 2011 11:36:46 +0000 (13:36 +0200)]
Map /dev/fio* to the iomemory-vsl driver

References: bnc#695620
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoAllow scripts to set multiple interfaces in the $interface variable
Michal Marek [Thu, 30 Jun 2011 21:07:59 +0000 (23:07 +0200)]
Allow scripts to set multiple interfaces in the $interface variable

References: fate#311345
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agosetup-network: Fix typo
Michal Marek [Thu, 30 Jun 2011 09:34:41 +0000 (11:34 +0200)]
setup-network: Fix typo

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoFix typo in resolve_device()
Michal Marek [Thu, 30 Jun 2011 09:47:38 +0000 (11:47 +0200)]
Fix typo in resolve_device()

References: bnc#698946
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoAdd support for configuring multiple network interfaces
Michal Marek [Thu, 16 Jun 2011 12:18:18 +0000 (14:18 +0200)]
Add support for configuring multiple network interfaces

References: fate#311345
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoExtend %param_ syntax to allow "array" parameters
Michal Marek [Wed, 15 Jun 2011 14:34:49 +0000 (16:34 +0200)]
Extend %param_ syntax to allow "array" parameters

E.g. %param_D: "Run dhcp ..." interface @interface
will remember add -D <interface> options passed and store them as a
space-separated list in $interface.

References: fate#311345
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoscripts/boot-network.sh: really fix net_delay handling
Michal Marek [Fri, 19 Feb 2010 09:30:52 +0000 (10:30 +0100)]
scripts/boot-network.sh: really fix net_delay handling

References: bnc#575816
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 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

6 years agodcbd was replaced with lldpad
Michal Marek [Wed, 22 Jun 2011 15:02:47 +0000 (17:02 +0200)]
dcbd was replaced with lldpad

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoFATE#307444: add a bridge to support fcoe and dcbd
Milan Vancura [Wed, 11 Nov 2009 12:12:08 +0000 (13:12 +0100)]
FATE#307444: add a bridge to support fcoe and dcbd

6 years agopurge-kernels: Change the variable to multiversion.kernels
Michal Marek [Tue, 21 Jun 2011 09:12:13 +0000 (11:12 +0200)]
purge-kernels: Change the variable to multiversion.kernels

Match the syntax of other zypp variables.

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoMark scripts under sbin/ executable
Michal Marek [Mon, 20 Jun 2011 15:08:57 +0000 (17:08 +0200)]
Mark scripts under sbin/ executable

6 years agoUpdate changelog
Michal Marek [Mon, 20 Jun 2011 08:59:20 +0000 (10:59 +0200)]
Update changelog

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agopurge-kernels: Change multiversion_kernels to a comma separated list
Michal Marek [Mon, 20 Jun 2011 08:53:59 +0000 (10:53 +0200)]
purge-kernels: Change multiversion_kernels to a comma separated list

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agopurge-kernels: Update --help
Michal Marek [Mon, 20 Jun 2011 08:45:06 +0000 (10:45 +0200)]
purge-kernels: Update --help

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoAdd purge-kernels script
Michal Marek [Sun, 19 Jun 2011 13:29:44 +0000 (15:29 +0200)]
Add purge-kernels script

This script will automatically delete old kernel packages on boot, based on
configuration in /etc/zypp/zypp.conf, variable multiversion_kernels.

References: fate#312018
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoCall udevadm trigger --action=add, because the default is "change"
Michal Marek [Thu, 16 Jun 2011 13:32:19 +0000 (15:32 +0200)]
Call udevadm trigger --action=add, because the default is "change"
in newer udev.

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoAdd a note to the spec file that the package is maintained in git
Michal Marek [Tue, 14 Jun 2011 13:56:40 +0000 (15:56 +0200)]
Add a note to the spec file that the package is maintained in git

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoMerge Factory changes by Rudi
Michal Marek [Tue, 14 Jun 2011 13:40:26 +0000 (15:40 +0200)]
Merge Factory changes by Rudi

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoboot-start: Mount /run without noexec to match systemd
Michal Marek [Tue, 14 Jun 2011 13:30:47 +0000 (15:30 +0200)]
boot-start: Mount /run without noexec to match systemd

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoDo not hardcode the xenblk driver, use the xen:vbd alias instead
Michal Marek [Wed, 4 May 2011 14:45:26 +0000 (16:45 +0200)]
Do not hardcode the xenblk driver, use the xen:vbd alias instead

References: bnc#558278
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 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>
6 years agoDelete unused hoplug.sh
Michal Marek [Wed, 4 May 2011 14:37:01 +0000 (16:37 +0200)]
Delete unused hoplug.sh

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoFix typo in boot-devfunctions.sh
Michal Marek [Wed, 4 May 2011 14:32:54 +0000 (16:32 +0200)]
Fix typo in boot-devfunctions.sh

References: bnc#642011
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoAlso update mkinitrd.changes.
Johannes Obermayr [Tue, 26 Apr 2011 19:47:49 +0000 (21:47 +0200)]
Also update mkinitrd.changes.

6 years agoInstall lsinitrd to /bin directory.
Johannes Obermayr [Tue, 26 Apr 2011 19:37:48 +0000 (21:37 +0200)]
Install lsinitrd to /bin directory.

6 years ago[netconsole]: Protect against multiple entries on arp output.
Egbert Eich [Tue, 19 Apr 2011 14:35:08 +0000 (16:35 +0200)]
[netconsole]: Protect against multiple entries on arp output.

'arp <ipaddr>' has been seen to dump output like:
Address                  HWtype  HWaddress           Flags Mask  Iface
debian.fritz.box         ether   00:10:75:1a:de:da   C           eth0
debian.fritz.box         ether   00:10:75:1a:de:da   C           eth0
:((
Protect against this by just picking the first matching line and
hoping for the best.

6 years ago[netconsole]: Make the netconsole startup script more robust.
Egbert Eich [Tue, 19 Apr 2011 12:25:01 +0000 (14:25 +0200)]
[netconsole]: Make the netconsole startup script more robust.

Check if the specified logging host really responds (check for
"(incomplete)" in the arp-output) and refrain from setting up
module options if no MAC address can be found.

6 years ago[netconsole]: Add deadline to initial ping command.
Egbert Eich [Tue, 19 Apr 2011 11:59:26 +0000 (13:59 +0200)]
[netconsole]: Add deadline to initial ping command.

So far 'single shot' ping was sent to the destination address using
the '-c1' option. This timed out after two RTT (default for ping).
If the network interface was not quite ready when ping tried to send
the packet it was waiting for a reply that never came - with a timeout
that's quite high for a local network.
Giving ping a deadline, it will send packages until the deadline is
exceeded or until the number of reply packages as specified with the
'-c' option have been received.
This results in a more reliable operation in this context and a shorter
timeout if the other end doesn't respond.

6 years agoChange from /dev/.run to /run
Michal Marek [Tue, 29 Mar 2011 21:38:07 +0000 (23:38 +0200)]
Change from /dev/.run to /run

References: bnc#678270#c2
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoCreate /dev/.run tmpfs mountpoint
Michal Marek [Mon, 14 Mar 2011 21:39:22 +0000 (22:39 +0100)]
Create /dev/.run tmpfs mountpoint

Bump version to 2.7.0.

References: bnc#678270
Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoSurvive dangling symlinks in /lib/mkinitrd/setup
Michal Marek [Fri, 17 Dec 2010 14:41:29 +0000 (15:41 +0100)]
Survive dangling symlinks in /lib/mkinitrd/setup

Dangling symlinks after package uninstall should be solved by the
previous fix, but more robustness does not hurt.

Signed-off-by: Michal Marek <mmarek@suse.cz>
6 years agoReally check mtime when determining whether to run mkinitrd_setup
Michal Marek [Fri, 17 Dec 2010 14:21:04 +0000 (15:21 +0100)]
Really check mtime when determining whether to run mkinitrd_setup

The variables are called *_mtime and checking for atime really makes no
sense, so change it to mtime to avoid bugs like bnc#641513.

Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agosetup-storage: Fix for devices not found in /proc/partitions
Michal Marek [Mon, 8 Nov 2010 15:18:25 +0000 (16:18 +0100)]
setup-storage: Fix for devices not found in /proc/partitions

References: bnc#561656

7 years agoFix for new coreutils
Philipp Thomas [Wed, 24 Nov 2010 14:56:36 +0000 (15:56 +0100)]
Fix for new coreutils

Starting with 8.6 stat(1) will report file times with nanoseconds
as a floating point if the system supports it. This implements
POSIX behaviour.  The drawback is that you can't compare them in
a script easily. This patch simply truncates the numbers.

References: bnc#654364
Signed-off-by: Philipp Thomas <pth@suse.de>
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years ago- setup-modules.sh: Cleanup.
Michal Marek [Wed, 25 Aug 2010 13:05:18 +0000 (15:05 +0200)]
- setup-modules.sh: Cleanup.

No need to chdir here, depmod supports the -b option. Unfortunatelly, we
are in $tmp_mnt at this point (see mkinitrd_kernel() in sbin/mkinitrd,
so bnc#632839 remains unfixed).

Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agohandle /sbin/init being a symlink
Kay Sievers [Fri, 9 Jul 2010 13:09:39 +0000 (15:09 +0200)]
handle /sbin/init being a symlink

systemd, the next-generation init system, installs /sbin/init as a
symlink to /bin/systemd, because /bin/systemd is also used to manage
user sessions.

mkinitrd is unable to handle absolute symlinks in the mountpoint of
/root/*. The attached seems to work for me.

References: bnc#621147
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoCopy modules.builtin to the initrd
Michal Marek [Thu, 24 Jun 2010 04:15:30 +0000 (06:15 +0200)]
Copy modules.builtin to the initrd

References: bnc#541519

Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoBump version to 2.6.0
Michal Marek [Mon, 21 Jun 2010 12:25:30 +0000 (14:25 +0200)]
Bump version to 2.6.0

KMS is a new feature which deserves a version bump.

Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoReport non-zero exit code before exiting
Michal Marek [Fri, 11 Jun 2010 14:31:15 +0000 (16:31 +0200)]
Report non-zero exit code before exiting

References: bnc#611696
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agosetup-kmp.sh: Fix for nouveau
Egbert Eich [Mon, 31 May 2010 11:34:35 +0000 (13:34 +0200)]
setup-kmp.sh: Fix for nouveau

References: bnc#595570
Signed-off-by: Egbert Eich <eich@novell.com>
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agosetup-storage.sh: Fix beautify_blockdev()
Michal Marek [Mon, 10 May 2010 11:54:37 +0000 (13:54 +0200)]
setup-storage.sh: Fix beautify_blockdev()

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

scripts/setup-storage.sh

7 years agoboot-start.sh: Parse /proc/cmdline more robustly
Michal Marek [Wed, 5 May 2010 12:05:28 +0000 (14:05 +0200)]
boot-start.sh: Parse /proc/cmdline more robustly

References: bnc#598063#c3
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoboot-boot.sh: Fix selinux_loadpolicy
Thomas Biege [Wed, 21 Apr 2010 08:38:18 +0000 (10:38 +0200)]
boot-boot.sh: Fix selinux_loadpolicy

Load selinux only if selinux=1 and enforcing=[0|1] is given on
the command line.

References: bnc#598075
Signed-off-by: Thomas Biege <thomas@novell.com>
Signed-off-by: Michal Marek <mmarek@suse.cz
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 agoClean up load_modules()
Michal Marek [Fri, 16 Apr 2010 12:07:40 +0000 (14:07 +0200)]
Clean up load_modules()

Recent modprobe reads module parameters from /proc/cmdline itself.

Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoLoad KMS modules after udev has started
Michal Marek [Fri, 16 Apr 2010 11:31:46 +0000 (13:31 +0200)]
Load KMS modules after udev has started

Loading firmware files for KMS modules needs udev; hence make
sure that udev is started before loading KMS modules. But then
we also need the KMS udev rule, so that the KMS is not
accidently loaded before the appropriate agp module, which
would be fatal.

References: bnc #596268
Signed-off-by: Michal Marek <mmarek@suse.cz>
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 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 agosetup-ibft: Include the NIC driver
Michal Marek [Tue, 13 Apr 2010 11:17:09 +0000 (13:17 +0200)]
setup-ibft: Include the NIC driver

References: bnc#596076.
Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoOnly set nettype to 'dhcp' if valid address was found
Hannes Reinecke [Tue, 13 Apr 2010 08:20:25 +0000 (10:20 +0200)]
Only set nettype to 'dhcp' if valid address was found

The attribute 'dhcp' is not sufficient to determine if
dhcp was activated. We should be reading the contents of it
and only enable dhcp if a valid address was found.

References: bnc#576601

Signed-off-by: Hannes Reinecke <hare@suse.de>
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 copyright headers
Michal Marek [Thu, 8 Apr 2010 13:50:26 +0000 (15:50 +0200)]
Update copyright headers

Signed-off-by: Michal Marek <mmarek@suse.cz>
7 years agoAdded call to load_policy to load the SELinux policy during the boot process
Thomas Biege [Wed, 7 Apr 2010 12:18:30 +0000 (14:18 +0200)]
Added call to load_policy to load the SELinux policy during the boot process

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