]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
9 years agodracut: Do not stop installing drivers if one fails
Thomas Renninger [Thu, 11 Dec 2014 14:46:20 +0000 (15:46 +0100)] 
dracut: Do not stop installing drivers if one fails

--add-drivers and --filesystems kernel drivers are added via:
instmods -c
The check option makes the function return if one driver could not get
installed without trying to install further drivers which is bad.

The user is still informed ($_silent is by default no), but all modules
passed to instmods are tried to be loaded, even if one fails.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: parse output from iscsiadm correctly
Hannes Reinecke [Thu, 11 Dec 2014 14:46:19 +0000 (15:46 +0100)] 
95iscsi: parse output from iscsiadm correctly

Due to some obsure reason the IFS parameter is not set correctly
when evaluating get_ibft_mod(). So change the parsing to not rely
on IFS altogether.

References: bnc#886199

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agonfs: Add ip=... and root=nfs... parameters to internal dracut
Thomas Renninger [Thu, 11 Dec 2014 14:46:18 +0000 (15:46 +0100)] 
nfs: Add ip=... and root=nfs... parameters to internal dracut

 cmdline

If the rootfs is an nfs mount, also know as nfsroot, add the correct
parameter to the dracut cmdline.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodracut.usage.asc: Remove distro specific help from manpage
Thomas Renninger [Thu, 11 Dec 2014 14:46:17 +0000 (15:46 +0100)] 
dracut.usage.asc: Remove distro specific help from manpage

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodracut.sh: Fix UUID= fstab parsing in case --mount option is passed
Thomas Renninger [Thu, 11 Dec 2014 14:46:16 +0000 (15:46 +0100)] 
dracut.sh: Fix UUID= fstab parsing in case --mount option is passed

Dracut parses /etc/fstab when --mount is option is passed (e.g. kdump).

In host_devs variable the real block device must be stored, not UUID=
There are other /etc/fstab syntax possibilities we now warn that they
are not correctly parsed. This will be fixed by another patch
when there is time to test this properly.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodracut.sh: Avoid duplicate devices in host_devs
Thomas Renninger [Thu, 11 Dec 2014 14:46:15 +0000 (15:46 +0100)] 
dracut.sh: Avoid duplicate devices in host_devs

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoCheck for logfile (--logfile option) and create it if necessary
jloeser [Thu, 11 Dec 2014 14:46:14 +0000 (15:46 +0100)] 
Check for logfile (--logfile option) and create it if necessary

If a logfile is passed to dracut via --logfile option and doesn't
exist, dracut doesn't create it and logs nothing. Instead, dracut
should try to touch the file and print a warning if creating fails.

References: bnc#892191
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago90lvm: Install dm-snapshot module
Thomas Renninger [Thu, 11 Dec 2014 14:46:13 +0000 (15:46 +0100)] 
90lvm: Install dm-snapshot module

bnc#888530

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago99base: Increase initqueue timeout in non systemd case
Thomas Renninger [Thu, 11 Dec 2014 14:46:12 +0000 (15:46 +0100)] 
99base: Increase initqueue timeout in non systemd case

In case of systemd is used the timeout already is set to 180s, compare
with file: modules.d/98systemd/dracut-initqueue.sh

Do the same if systemd is not used, e.g. in kdump case.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoHandle module alias properly
Hannes Reinecke [Thu, 11 Dec 2014 14:46:11 +0000 (15:46 +0100)] 
Handle module alias properly

Some modules (like ext4) provide aliases by which the modules
can be accessed, too. But when using aliases directly dracut
fails to include the correct module. So translate the alias
into the correct module name before checking the module.

References: bnc#886839

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago99base: warn on invalid command for initqueue
Hannes Reinecke [Thu, 11 Dec 2014 14:46:10 +0000 (15:46 +0100)] 
99base: warn on invalid command for initqueue

When 'initqueue' is called with an invalid command it'll generate
invalid job scripts. This will lead to confusing error messages
later on.
So abort in these cases and print out a warning.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoGenerate fallback mount unit for root filesystem
Thorsten Behrens [Thu, 11 Dec 2014 14:46:09 +0000 (15:46 +0100)] 
Generate fallback mount unit for root filesystem

If kernel cmdline has no root= provided, *and* the initrd carries
a default value, create a systemd mount unit to have it available
in /sysroot

References: bnc#855258

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoAlign dev_unit_name() with systemd's function.
Thorsten Behrens [Thu, 11 Dec 2014 14:46:08 +0000 (15:46 +0100)] 
Align dev_unit_name() with systemd's function.

Add more corner cases from systemd's
unit_name_from_path_instance() C function.

Signed-off-by: Thorsten Behrens <tbehrens@suse.com>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoPrint stored dracut commandline during initramfs build
Hannes Reinecke [Thu, 11 Dec 2014 14:46:07 +0000 (15:46 +0100)] 
Print stored dracut commandline during initramfs build

When generating the initramfs we should be printing out the
generated dracut commandline used for booting.
This will simplify debugging.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoDo not call 'lvm' for non-LVM device-mapper devices
Hannes Reinecke [Thu, 11 Dec 2014 14:46:06 +0000 (15:46 +0100)] 
Do not call 'lvm' for non-LVM device-mapper devices

If a device-mapper device is not created by LVM it's pointless
to call any 'lvm' programs got extract details; they'll be
failing anyway. So check the UUID before calling 'lvm'.
This speeds up initrd creation and avoids I/O errors on
multipath devices.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoImplement 'rd.timeout' to modify the device timeout
Hannes Reinecke [Thu, 11 Dec 2014 14:46:05 +0000 (15:46 +0100)] 
Implement 'rd.timeout' to modify the device timeout

When generating units for devices the administrator might
want to use a different timeout than the default.
So implement a new parameter 'rd.timeout' for this.

References: bnc#878770

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoiscsi: iscsi.initiator and others can and must only show up once
Thomas Renninger [Thu, 11 Dec 2014 14:46:04 +0000 (15:46 +0100)] 
iscsi: iscsi.initiator and others can and must only show up once

Make sure duplicates of iscsi.initiator vanish.
Only get one rd.iscsi.* paramter value. If getargs is used and several
parameters are parsed, one gets two values separated by whitespace in a
variable which breaks later code and is not suppported.

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: generate commandline for software iscsi
Hannes Reinecke [Thu, 11 Dec 2014 14:46:03 +0000 (15:46 +0100)] 
95iscsi: generate commandline for software iscsi

When installing on an software iscsi root we need to generate
the correct commandline, otherwise the system cannot boot.

References: bnc#880108
Patch: 0093

When using software iscsi we should be using the existing
configuration from the system for the time being.

References: bnc#884768
Patch: 0095

Avoid bad ip route call on empty address
Patch: 0143

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: More empty cmdline fixes
Hannes Reinecke [Thu, 11 Dec 2014 14:46:02 +0000 (15:46 +0100)] 
95iscsi: More empty cmdline fixes

This fixes up some 95iscsi/module-setup.sh which might print out empty
commandline files.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: Fixup bnx2i offload booting
Hannes Reinecke [Thu, 11 Dec 2014 14:46:01 +0000 (15:46 +0100)] 
95iscsi: Fixup bnx2i offload booting

bnx2i is using a separate iSCSI offload engine with a separate
MAC address. As a result, the iBFT information is displaying
a MAC address which does not relate to any MAC address from
the network interfaces.
In addition, the iSCSI offload engine works independently on
the NIC, so we do not need to enable the NIC for iSCSI offload
to work.
This patch modifies the automatic iBFT detection to not set
the 'ip=ibft' flag when bnx2i offload is detected.

References: bnc#855747

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: strip one set of quotes when calling initqueue
Hannes Reinecke [Thu, 11 Dec 2014 14:46:00 +0000 (15:46 +0100)] 
95iscsi: strip one set of quotes when calling initqueue

The bad initqueue parameter passing is already addressed by git commit:
commit bb8c16d12178373f17553294603ff5187e318b51
and
commit 486a8f33e2edaf249e3a09c98a910094e201cf9e

However this appraoch is slightly different:
"$netroot" instead of "'$netroot'", etc.

initqueue will process the arguments, assuming the first non-option
argument to be the program to be executed. Putting the entire
commandline into this argument confuses both, initqueue and the
program in question.

References: bnc#879038

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: Set correct iscsi_started value for iSCSI firmware
Hannes Reinecke [Thu, 11 Dec 2014 14:45:59 +0000 (15:45 +0100)] 
95iscsi: Set correct iscsi_started value for iSCSI firmware

When iSCSI firmware booting is selected we should not rely on
'netroot' or 'iscsiroot' variables to be set.

References: bnc#873448

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: Install libgcc_s library
Hannes Reinecke [Thu, 11 Dec 2014 14:45:58 +0000 (15:45 +0100)] 
95iscsi: Install libgcc_s library

iscsiuio is using pthread, which requires libgcc_s for
pthread_cancel to work.
Without this library iscsiuio will crash with SIGABRT.

References: bnc#881692

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95iscsi: Autodetect iSCSI firmware
Hannes Reinecke [Thu, 11 Dec 2014 14:45:57 +0000 (15:45 +0100)] 
95iscsi: Autodetect iSCSI firmware

Some iSCSI initiator present firmware information in
/sys/firmware/ibft or /sys/firmware/iscsi_bootX

Whenever we detect one of those directories we should assume
that the iSCSI devices should be activated.

Also incorporates SUSE patches:
0049:
95iscsi: Use 'ip=ibft' for ibft autoconfiguration

For iBFT autoconfiguration we should be setting 'ip=ibft'
instead of rd.neednet. This should instruct dracut to only
enable the iBFT interfaces and leave the rest alone.

References: bnc#879038

0054:
95iscsi: update commandline printing

dracut has a separate callout 'cmdline' which should be used
for printing out the generated commandline.

Signed-off-by: Pavel Wieczorkiewicz <pwieczorkiewicz@suse.com>
Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago90multipath: install correct multipath rules
Hannes Reinecke [Thu, 11 Dec 2014 14:45:56 +0000 (15:45 +0100)] 
90multipath: install correct multipath rules

The multipath and kpartx rules have different numbers in SUSE.

The 11-dm-mpath.rules file had been missing, causing
blacklisting to not work properly.

References: bnc#873151, bnc#872662, bnc#883149

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago95udev-rules: Include correct sg3_utils rules
Hannes Reinecke [Thu, 11 Dec 2014 14:45:55 +0000 (15:45 +0100)] 
95udev-rules: Include correct sg3_utils rules

sg3_utils now provides two rules 55-scsi-sg3_id.rules and
58-scsi-sg3_symlink.rules, which need to be included instead
of the older 59-scsi-sg3_utils.rules.

References: bnc#873151

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agoFixup mdraid setup
NeilBrown [Thu, 11 Dec 2014 14:45:54 +0000 (15:45 +0100)] 
Fixup mdraid setup

This sed script to edit 64-md-raid-assemble.rules needs to
be adjusted for latest mdadm

References: bnc#866660

Signed-off-by: NeilBrown <neilb@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agosystemd always tries to load autofs4
Thomas Renninger [Thu, 11 Dec 2014 14:45:53 +0000 (15:45 +0100)] 
systemd always tries to load autofs4

During boot systemd tries to load autofs4, but dracut will only
add it if it's loaded by the time dracut is run.
Modify dracut to always load autofs4.

References: bnc#869411

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agomkinitrd-suse: Update to sles12 SUSE state
Thomas Renninger [Thu, 11 Dec 2014 14:45:52 +0000 (15:45 +0100)] 
mkinitrd-suse: Update to sles12 SUSE state

Incorporates these patches:
- 0013 mkinitrd-suse: do not update bootloader if no kernel was found
  bnc#858268
- 0018 mkinitrd-suse: Fix whitespaces when adding drivers
- 0032 mkinitrd-suse.sh: Use '--hostonly' and '--hostonly-cmdline' correctly
  bnc#874000,bnc#874905,bnc#874363
- 0039 Remove --force parameter from mkinitrd
- 0041 mkinitd-suse: remove --hostonly and --hostonly-cmdline
  Should be set via configuration files, not in the script itself.
- 0051 mkinitrd-suse: add 'update bootloader' message
- 0120 mkinitrd-suse.sh: Bail out with exit 1 if initrd cannot be generated
  bnc#886630

Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodmsquash-live: setup the images in /run/initramfs
Harald Hoyer [Tue, 16 Dec 2014 11:53:18 +0000 (12:53 +0100)] 
dmsquash-live: setup the images in /run/initramfs

We want to cleanup / after switch_root. Placing the loop files in /
works, but it is more sane to put them in /run/initramfs

9 years agoFixed the dracut-shutdown.service
Harald Hoyer [Mon, 8 Dec 2014 09:43:54 +0000 (10:43 +0100)] 
Fixed the dracut-shutdown.service

Make the service a oneshot service, which remains after exit. This
ensures, that the ExecStop is executed later on, if a shutdown occurs.

9 years agodracut.conf.d/fedora.conf.example: turn on early_microcode
Harald Hoyer [Thu, 4 Dec 2014 10:54:47 +0000 (11:54 +0100)] 
dracut.conf.d/fedora.conf.example: turn on early_microcode

9 years agoinitrd-release: move from /etc to /usr/lib
Tom Gundersen [Mon, 1 Dec 2014 15:59:09 +0000 (16:59 +0100)] 
initrd-release: move from /etc to /usr/lib

This mimicks the similar move of os-release which was done in systemd. These
files are not configuration, but part of the OS.

Still symlinks are in place for compatibility, but those should probably be
dropped eventually.

9 years ago40network: Fix the syntax to correct the judgment sentence
Minfei Huang [Mon, 1 Dec 2014 04:37:06 +0000 (12:37 +0800)] 
40network: Fix the syntax to correct the judgment sentence

In the judgment sentence, it will print the following warning message,
becasuse of lacking the blank on the left of ']'.

/lib/net-lib.sh: line 110: [: missing `]'

Signed-off-by: Minfei Huang <mhuang@redhat.com>
9 years agocms/cms-write-ifcfg.sh: turn SUBCHANNELS into lowercase
Harald Hoyer [Mon, 1 Dec 2014 14:04:53 +0000 (15:04 +0100)] 
cms/cms-write-ifcfg.sh: turn SUBCHANNELS into lowercase

9 years agodo not symlink /var/log to /run/log
Harald Hoyer [Mon, 1 Dec 2014 11:36:20 +0000 (12:36 +0100)] 
do not symlink /var/log to /run/log

some programs e.g. systemd-journald expect a directory in /var/log as
the marker to do some actions. Here journald tries to flush
/run/log/journal to /var/log/journal, if the directory is seen.

/var/log is now a symlink to /run/initramfs/log.

9 years agodracut.sh: add $tmpfilesdir to install files to /usr/lib/tmpfiles.d
Harald Hoyer [Mon, 1 Dec 2014 11:34:54 +0000 (12:34 +0100)] 
dracut.sh: add $tmpfilesdir to install files to /usr/lib/tmpfiles.d

9 years agobase/init.sh: ignore exclamation mark for kmod static-nodes
Harald Hoyer [Mon, 1 Dec 2014 10:50:00 +0000 (11:50 +0100)] 
base/init.sh: ignore exclamation mark for kmod static-nodes

newer versions add an exclamation mark for the type, to mark it to be
created on boot only.

9 years agofips: add libfreeblpriv3.so and libfreeblpriv3.chk
Harald Hoyer [Fri, 28 Nov 2014 14:32:17 +0000 (15:32 +0100)] 
fips: add libfreeblpriv3.so and libfreeblpriv3.chk

9 years agodmsquash-live: do not abort, if user pressed ESC on checkisomd5
Harald Hoyer [Tue, 25 Nov 2014 12:44:54 +0000 (13:44 +0100)] 
dmsquash-live: do not abort, if user pressed ESC on checkisomd5

If the user pressed ESC while checkisomd5 runs the media check, it will
exit with "2". Previously that would mean, that the media check was not
successful.

9 years agomultipath/multipathd.service: add more Conditions
Harald Hoyer [Tue, 25 Nov 2014 12:23:21 +0000 (13:23 +0100)] 
multipath/multipathd.service: add more Conditions

Do not start multipathd on rd.multipath=0 rd_NO_MULTIPATH and if there
is no multipath.conf.

9 years ago90multipath: install dracut-specific service file
Hannes Reinecke [Thu, 20 Nov 2014 14:56:45 +0000 (15:56 +0100)] 
90multipath: install dracut-specific service file

The multipathd package might install a service and a socket
file. Using the original service file from the installed
system without the socket file triggers a bug in systemd,
causing systemd to crash.

As we don't actually need to socket file in the initrd we
should be installing our own service file which does not
reference the socket file at all.

References: bnc#871610

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago90multipath: Load device_handler modules early during boot
Hannes Reinecke [Thu, 20 Nov 2014 14:56:44 +0000 (15:56 +0100)] 
90multipath: Load device_handler modules early during boot

The device handler modules need to be loaded early during boot
to avoid I/O errors being printed to the system log.

References: bnc#871617

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years ago90multipath: Install libgcc_s library
Hannes Reinecke [Thu, 20 Nov 2014 14:56:43 +0000 (15:56 +0100)] 
90multipath: Install libgcc_s library

multipathd is using pthreads, which require libgcc_s for
pthread_cancel to work. Without it multipathd might crash
with SIGABRT.

Signed-off-by: Hannes Reinecke <hare@suse.de>
Signed-off-by: Thomas Renninger <trenn@suse.de>
9 years agodracut-functions.sh: check if dinfo is a function
Harald Hoyer [Mon, 24 Nov 2014 14:17:45 +0000 (15:17 +0100)] 
dracut-functions.sh: check if dinfo is a function

If "dinfo" is an executable, dracut-logger.sh would never be sourced.

See: https://bugzilla.redhat.com/show_bug.cgi?id=1167082

9 years agoTODO: update
Harald Hoyer [Thu, 20 Nov 2014 15:22:51 +0000 (16:22 +0100)] 
TODO: update

9 years agomultipath: add "rd.multipath=0" option
Harald Hoyer [Thu, 20 Nov 2014 10:27:40 +0000 (11:27 +0100)] 
multipath: add "rd.multipath=0" option

9 years agobase: Set udevd log level via environment var to cover early startup.
Colin Guthrie [Mon, 10 Nov 2014 14:17:39 +0000 (14:17 +0000)] 
base: Set udevd log level via environment var to cover early startup.

udevd will these days default to 'info' logging and thus will
often print out the 'starting version nnn' message (which is
logged at level 'info'), thus spamming the console, even on
'quiet' boots.

We generally expect a udev log level of err (the old default
from pre-October 2013) so we should set that explicilty before
launching udevd in order to suppress the spurious 'info' message.

As we are using the environment variable approach anyway, we
may as well use this method rather than setting the log level
later via udevadm control commands when rd.udev.info/debug are
given on the kernel command line.

The enviroment variable has been around since udev 6b493a20e1
around 2005 so should be safe to use in all cases without version
checks.

9 years agosystemd: add 90-vconsole.rules
Harald Hoyer [Thu, 6 Nov 2014 09:44:33 +0000 (10:44 +0100)] 
systemd: add 90-vconsole.rules

run systemd-vconsole-setup if fbcon device shows up

9 years agodracut.sh: don't check gzip for --rsyncable, if pigz is available
Harald Hoyer [Wed, 29 Oct 2014 13:18:34 +0000 (14:18 +0100)] 
dracut.sh: don't check gzip for --rsyncable, if pigz is available

9 years ago40network: Copy the customize dhcp config
Minfei Huang [Mon, 27 Oct 2014 06:33:11 +0000 (14:33 +0800)] 
40network: Copy the customize dhcp config

It is not available to valid the customize dhcp config
/etc/dhclient.conf in the initram environment.

Dracut uses the default follow config to construct the initramfs.

request subnet-mask, broadcast-address, time-offset, routers,
        domain-name, domain-name-servers, domain-search, host-name,
        root-path, interface-mtu;

Copy the customize config to make the config availably in the
initram environment.

Signed-off-by: Minfei Huang <mhuang@redhat.com>
9 years agokernel-modules: Drop explicit modules that are found with block_module_filter
Peter Robinson [Sun, 26 Oct 2014 11:48:15 +0000 (11:48 +0000)] 
kernel-modules: Drop explicit modules that are found with block_module_filter

The usb_storage, nvme and sdhci_acpi modules are discovered with the
block_module_filter so there's no need to explicitly list them here.

Signed-off-by: <pbrobinson@gmail.com>
9 years agoshutdown.sh: correct return code of _check_shutdown()
Harald Hoyer [Wed, 29 Oct 2014 12:51:15 +0000 (13:51 +0100)] 
shutdown.sh: correct return code of _check_shutdown()

fix commit b09faad8779f5579, which reversed the return code

9 years agoMerge pull request #30 from vtolstov/master
Harald Hoyer [Wed, 29 Oct 2014 12:53:40 +0000 (13:53 +0100)] 
Merge pull request #30 from vtolstov/master

fix gzip compress then it not supports rsyncable option

9 years agoMerge branch 'master' of github.com:haraldh/dracut 30/head
Vasiliy Tolstov [Wed, 29 Oct 2014 12:56:00 +0000 (15:56 +0300)] 
Merge branch 'master' of github.com:haraldh/dracut

9 years agoMerge pull request #28 from l1k/master
Harald Hoyer [Wed, 29 Oct 2014 12:42:25 +0000 (13:42 +0100)] 
Merge pull request #28 from l1k/master

shutdown/shutdown.sh: loop over shutdown hooks until all succeed

9 years agodracut-functions.sh: fixup for 34a1ec6 for non-local mode
Harald Hoyer [Wed, 29 Oct 2014 12:39:28 +0000 (13:39 +0100)] 
dracut-functions.sh: fixup for 34a1ec6 for non-local mode

9 years agoMerge pull request #29 from Quarky9/master
Harald Hoyer [Wed, 29 Oct 2014 12:37:15 +0000 (13:37 +0100)] 
Merge pull request #29 from Quarky9/master

Fix location of dracut-install for local mode

9 years agoFix location of dracut-install for local mode 29/head
Stefan Reimer [Wed, 29 Oct 2014 00:58:22 +0000 (17:58 -0700)] 
Fix location of dracut-install for local mode

9 years agoifcfg/write-ifcfg: only write DEVICE for non-kernel names
Harald Hoyer [Fri, 24 Oct 2014 13:47:24 +0000 (15:47 +0200)] 
ifcfg/write-ifcfg: only write DEVICE for non-kernel names

Rename an interface to the kernel namespace is not allowed, so don't add
DEVICE="<iface>", if HWADDR is given.

9 years agofix gzip compress then it not supports rsyncable option
Vasiliy Tolstov [Mon, 27 Oct 2014 10:42:06 +0000 (13:42 +0300)] 
fix gzip compress then it not supports rsyncable option

dracut fail to create initramfs when compressor gzip and
it not have rsyncable option

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
9 years agoNEWS: add 040 entry
Harald Hoyer [Fri, 24 Oct 2014 12:41:29 +0000 (14:41 +0200)] 
NEWS: add 040 entry

9 years agodracut: fixed module dependency handling 040
Harald Hoyer [Fri, 24 Oct 2014 11:19:58 +0000 (13:19 +0200)] 
dracut: fixed module dependency handling

Fail for "--modules" and "--force-add" dracut modules, if they or their
dependencies cannot be included.

9 years agotest: add "fs-lib" to dracut module list
Harald Hoyer [Fri, 24 Oct 2014 11:19:34 +0000 (13:19 +0200)] 
test: add "fs-lib" to dracut module list

9 years agoTEST-99-RPM: ignore more files
Harald Hoyer [Fri, 24 Oct 2014 11:18:35 +0000 (13:18 +0200)] 
TEST-99-RPM: ignore more files

9 years agoTEST-30-ISCSI: udev does not export path_id for iscsi
Harald Hoyer [Fri, 24 Oct 2014 11:17:30 +0000 (13:17 +0200)] 
TEST-30-ISCSI: udev does not export path_id for iscsi

therefore root=iscsi.... does not work anymore :-/

disabled for now

9 years agodmsquash-live: addresss the device via it's symlink
Harald Hoyer [Fri, 24 Oct 2014 09:16:26 +0000 (11:16 +0200)] 
dmsquash-live: addresss the device via it's symlink

Otherwise multipath parts might be passed, before it's assembled.

https://bugzilla.redhat.com/show_bug.cgi?id=1152948

9 years agoMakefile: removed dangling space 039
Harald Hoyer [Fri, 24 Oct 2014 07:37:19 +0000 (09:37 +0200)] 
Makefile: removed dangling space

9 years agoNEWS: update
Harald Hoyer [Fri, 24 Oct 2014 07:37:03 +0000 (09:37 +0200)] 
NEWS: update

9 years agoAdd hyperv-keyboard kernel module for Hyper-V Gen2 VM
Vaughan Cao [Thu, 9 Oct 2014 08:41:31 +0000 (16:41 +0800)] 
Add hyperv-keyboard kernel module for Hyper-V Gen2 VM

The synthetic keyboard of a Gen2 Linux VM doesn't work before the
hyperv_keyboard module is loaded. Without it, we can't cancel the media check
phase if boot with rd.live.check option.
Gen1 Linux VM doesn't have the same issue because the host emulates the legacy
i8042 keyboard for Gen1 VM.

Signed-off-by: Vaughan Cao <vaughan.cao@oracle.com>
9 years agoTODO: update
Harald Hoyer [Fri, 24 Oct 2014 07:00:56 +0000 (09:00 +0200)] 
TODO: update

9 years agomdraid: also accept ID_FS_UUID for rd.md.uuid
Harald Hoyer [Thu, 23 Oct 2014 12:37:02 +0000 (14:37 +0200)] 
mdraid: also accept ID_FS_UUID for rd.md.uuid

As blkid also reports MD_UUID as ID_FS_UUID, although in slightly
different format, accept it also.

9 years agonetwork/net-lib.sh:is_persistent_ethernet_name() eth* is not
Harald Hoyer [Thu, 23 Oct 2014 12:34:33 +0000 (14:34 +0200)] 
network/net-lib.sh:is_persistent_ethernet_name() eth* is not

eth* is _not_ a persistent ethernet name... tsk, tsk, tsk

9 years agoshutdown/shutdown.sh: loop over shutdown hooks until all succeed 28/head
Lukas Wunner [Mon, 6 Oct 2014 11:43:58 +0000 (13:43 +0200)] 
shutdown/shutdown.sh: loop over shutdown hooks until all succeed

Up until now, _check_shutdown() returns true if at least one of
the shutdown hooks succeeded. Change this to only return true if
*all* succeeded. To prevent an infinite loop, introduce an upper
bound of 40 iterations.

9 years agodo 'ip route replace default' instead of 'add'
Will Woods [Thu, 28 Aug 2014 17:44:47 +0000 (13:44 -0400)] 
do 'ip route replace default' instead of 'add'

When you define the gateway for an interface, dracut sets it up with:

  ip route add default via $gw dev $netif

If a default route is already set (e.g. if you have multiple NICs), this
will fail with the message "RTNETLINK answers: File exists".

So, if your first NIC isn't usable as a default route

Using "ip route replace default" instead allows ifup/dhclient-script to
correctly change the default route to the new interface.

9 years agodracut-functions.sh: exit for missing --force-add or --add dracut modules
Harald Hoyer [Fri, 12 Sep 2014 08:19:28 +0000 (10:19 +0200)] 
dracut-functions.sh: exit for missing  --force-add or --add dracut modules

Better exit with fail early, so there is no surprise on reboot.

9 years agoqemu: install virtio_console kernel module
Harald Hoyer [Fri, 12 Sep 2014 08:03:59 +0000 (10:03 +0200)] 
qemu: install virtio_console kernel module

https://bugzilla.redhat.com/show_bug.cgi?id=1097999

9 years agocms/cmssetup.sh: understand DASD="none"
Harald Hoyer [Fri, 12 Sep 2014 07:59:03 +0000 (09:59 +0200)] 
cms/cmssetup.sh: understand DASD="none"

Treat DASD="none" as unset.

https://bugzilla.redhat.com/show_bug.cgi?id=1096979

9 years agocms/cmssetup.sh: fixed indention
Harald Hoyer [Fri, 12 Sep 2014 07:57:13 +0000 (09:57 +0200)] 
cms/cmssetup.sh: fixed indention

9 years agoifcfg/write-ifcfg.sh: bind bond and bridge interfaces to HW
Harald Hoyer [Fri, 12 Sep 2014 07:48:00 +0000 (09:48 +0200)] 
ifcfg/write-ifcfg.sh: bind bond and bridge interfaces to HW

either by s390 SUBCHANNELS or HWADDR, if the interface name is not
persistent.

Previously, this was bound unconditionally with HWADDR.

9 years agoadd "--loginstall <DIR>" and loginstall="<DIR>" options
Harald Hoyer [Thu, 11 Sep 2014 14:42:36 +0000 (16:42 +0200)] 
add "--loginstall <DIR>" and loginstall="<DIR>" options

loginstall specifies a directory, in which dracut-install records all
files, which were installed from the host system to the initramfs.

Use case is e.g. to create a list of packages to watch for updates, to
maybe trigger a recreation of the initramfs.

9 years agoSupport spaces in mount_nfs (#1109933)
Brian C. Lane [Thu, 21 Aug 2014 18:31:51 +0000 (11:31 -0700)] 
Support spaces in mount_nfs (#1109933)

nfs paths may contain spaces, make sure they are preserved when passed
to nfs_to_var and mount.

Related: rhbz#1109933

9 years agoreplaced ip=auto with ip=dhcp in the documentation
Harald Hoyer [Tue, 9 Sep 2014 11:35:13 +0000 (13:35 +0200)] 
replaced ip=auto with ip=dhcp in the documentation

https://bugzilla.redhat.com/show_bug.cgi?id=1086931

9 years agonetwork/net-lib.sh: do not enforce iscsi target name policy
Harald Hoyer [Tue, 9 Sep 2014 11:31:10 +0000 (13:31 +0200)] 
network/net-lib.sh: do not enforce iscsi target name policy

also untabified

9 years agodracut.cmdline.7: add iso-scan/filename docs
Harald Hoyer [Mon, 8 Sep 2014 14:18:06 +0000 (16:18 +0200)] 
dracut.cmdline.7: add iso-scan/filename docs

9 years agokernel-modules: added hid-lcpower
Harald Hoyer [Mon, 8 Sep 2014 11:25:53 +0000 (13:25 +0200)] 
kernel-modules: added hid-lcpower

9 years agodracut: Introduce --force-drivers parameter and force_drivers=+ config option
Thomas Renninger [Mon, 8 Sep 2014 10:34:48 +0000 (12:34 +0200)] 
dracut: Introduce --force-drivers parameter and force_drivers=+ config option

Which will not only add listed drivers, but also enforce that they are
tried to be loaded at early boot time.

This is needed if drivers which are not autoloaded (e.g. loop and a lot
others) shall get loaded via initramfs.

9 years agodracut.sh: change the PATH we search for our binaries
Harald Hoyer [Fri, 5 Sep 2014 14:42:59 +0000 (16:42 +0200)] 
dracut.sh: change the PATH we search for our binaries

/sbin /bin versions should be used over /usr/sbin and /usr/bin versions,
because non-usr is meant for early boot.

See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=755271

9 years agossh-client: handle /etc/ssh/ssh_config
Harald Hoyer [Fri, 29 Aug 2014 12:06:57 +0000 (14:06 +0200)] 
ssh-client: handle /etc/ssh/ssh_config

- disable ProxyCommand
- install the GlobalKnownHostsFile

https://bugzilla.redhat.com/show_bug.cgi?id=1086778

9 years agoremove all vim and emacs code format comments
Harald Hoyer [Fri, 29 Aug 2014 11:23:38 +0000 (13:23 +0200)] 
remove all vim and emacs code format comments

9 years agoadd kate and emacs per directory config files
Harald Hoyer [Fri, 29 Aug 2014 11:33:40 +0000 (13:33 +0200)] 
add kate and emacs per directory config files

9 years agoinstall: add more error handling
Harald Hoyer [Fri, 29 Aug 2014 11:22:11 +0000 (13:22 +0200)] 
install: add more error handling

also limit local variable scopes
and remove bogus checks to negativity of unsigned vars

9 years agoskipcpio: limit the local var scope
Harald Hoyer [Fri, 29 Aug 2014 11:22:37 +0000 (13:22 +0200)] 
skipcpio: limit the local var scope

9 years agoMakefile: add more warnings to CFLAGS
Harald Hoyer [Fri, 29 Aug 2014 11:22:48 +0000 (13:22 +0200)] 
Makefile: add more warnings to CFLAGS

9 years agodracut-shutdown now executes the unpacking on ExecStop
Harald Hoyer [Thu, 21 Aug 2014 16:20:22 +0000 (18:20 +0200)] 
dracut-shutdown now executes the unpacking on ExecStop

To ensure that unpacking happens before any boot.automount is stopped,
let dracut-shutdown start as a sysinit.target service and unpack on
ExecStop.

9 years agodracut-lib.sh:dev_unit_name(): use systemd-escape, if available
Harald Hoyer [Thu, 21 Aug 2014 14:45:12 +0000 (16:45 +0200)] 
dracut-lib.sh:dev_unit_name(): use systemd-escape, if available

9 years agodracut-lib.sh:cancel_wait_for_dev() fixed double escape
Harald Hoyer [Thu, 21 Aug 2014 14:38:35 +0000 (16:38 +0200)] 
dracut-lib.sh:cancel_wait_for_dev() fixed double escape

9 years agodracut.sh: source dracut-version.sh earlier than dracut-functions.sh
Harald Hoyer [Wed, 20 Aug 2014 08:21:43 +0000 (10:21 +0200)] 
dracut.sh: source dracut-version.sh earlier than dracut-functions.sh

Otherwise dracut-logger.sh outputs an empty version on journal testing.

Aug 20 10:15:49 lenovo dracut[11144]: dracut-
Aug 20 10:15:49 lenovo dracut[11148]: Executing: /sbin/dracut

9 years agoCheck kernel config for early microcode and ACPI override
Harald Hoyer [Wed, 20 Aug 2014 08:13:55 +0000 (10:13 +0200)] 
Check kernel config for early microcode and ACPI override

Disable early microcode and ACPI override, if the kernel does not
support it.

9 years agourl-lib: check for ctorrent binary before adding the url handler
Harald Hoyer [Fri, 15 Aug 2014 15:35:11 +0000 (17:35 +0200)] 
url-lib: check for ctorrent binary before adding the url handler