]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
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 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

9 years agoAdds bittorrent support for live images
Antony Messerli [Fri, 15 Aug 2014 14:44:11 +0000 (09:44 -0500)] 
Adds bittorrent support for live images

This patch adds bittorrent support to 45url-lib for those that might want
to retrieve the same live image for multiple systems at once without
saturating the network.

This patch requires ctorrent to be installed into initramfs.

Torrent kernel command line format:
root=live:torrent://example.com/liveboot.img.torrent

Start a tracker:
bttrack --bind <tracker_ip> --port 6969 --dfile dstate --reannounce_interval 60

Create the torrent:
ctorrent -t live_image -u http://<tracker_ip>:6969/announce -s live_image.torrent

Seed the initial torrent:
ctorrent live_image.torrent

Boot the live image.

9 years agoAdding support for read/write filesystem images
Major Hayden [Mon, 4 Aug 2014 15:27:36 +0000 (10:27 -0500)] 
Adding support for read/write filesystem images

A user can provide a filesystem image (rootfs.img) inside a compressed
tarball and that filesystem image will be mounted read/write.  This provides
some benefits over a device mapper snapshot overlay, especially when the
live system becomes full.  The boot command line simple needs
"rd.writable.fsimg" added to utilize this feature.

Additional documentation for this option as well as other live boot
options is included.

Signed-off-by: Major Hayden <major@mhtx.net>
9 years ago50-dracut.install: install pregenerated initrd
Harald Hoyer [Fri, 15 Aug 2014 12:58:34 +0000 (14:58 +0200)] 
50-dracut.install: install pregenerated initrd

If there is an already pregenerated initrd at the same location as the
kernel install that and do not generate a new one.

9 years ago50-dracut.install: fixed /proc/cmdline reading
Harald Hoyer [Fri, 15 Aug 2014 12:58:02 +0000 (14:58 +0200)] 
50-dracut.install: fixed /proc/cmdline reading

and beautified the code a bit

9 years ago51-dracut-rescue.install: fixed /proc/cmdline read
Harald Hoyer [Fri, 15 Aug 2014 12:56:42 +0000 (14:56 +0200)] 
51-dracut-rescue.install: fixed /proc/cmdline read

9 years agoMakefile:rpm: wget the lgpl license for Source1
Harald Hoyer [Fri, 15 Aug 2014 12:03:39 +0000 (14:03 +0200)] 
Makefile:rpm: wget the lgpl license for Source1

9 years agoGenerate reproducible initramfs images
Harald Hoyer [Thu, 3 Jul 2014 10:52:58 +0000 (12:52 +0200)] 
Generate reproducible initramfs images

With the same source of files, it should be possible to generate the
same image file with every dracut run.

To accomplish this, we modify the timestamps of the files we generate at
runtime, call gzip with "-n" and cpio with "--reproducible".

The cpio --reproducible option is not yet upstream though, so if you
feel like it should be then please nag at the cpio mailing list.
http://lists.gnu.org/archive/html/bug-cpio/2014-08/msg00000.html

9 years agodracut-functions.sh:get_persistent_dev(): use printf, instead of echo
Harald Hoyer [Fri, 15 Aug 2014 10:36:04 +0000 (12:36 +0200)] 
dracut-functions.sh:get_persistent_dev(): use printf, instead of echo

9 years agoIntroduce ARM specific modules needed by drm
Nicolas Chauvet [Mon, 4 Aug 2014 20:04:39 +0000 (22:04 +0200)] 
Introduce ARM specific modules needed by drm

9 years agoCategorize needed modules on ARM
Nicolas Chauvet [Mon, 4 Aug 2014 20:04:38 +0000 (22:04 +0200)] 
Categorize needed modules on ARM

9 years agoTest soc path for modalias needed by drm
Nicolas Chauvet [Mon, 4 Aug 2014 20:04:37 +0000 (22:04 +0200)] 
Test soc path for modalias needed by drm

On ARM, both pci and soc path can be tested for drm.

With this patchset, that was missing in recent kernel,
the tegra_drm case is not needed anymore:
http://patchwork.ozlabs.org/patch/361765/
http://www.spinics.net/lists/linux-tegra/msg17948.html

9 years agodracut-functions: get_persistent_dev() fall back to the original name
WANG Chao [Mon, 28 Jul 2014 14:26:28 +0000 (22:26 +0800)] 
dracut-functions: get_persistent_dev() fall back to the original name

In case of raw disk/partition, ex. /dev/vda1, which doesn't contain any
filesystem on it. get_persistent_dev() would return empty. Now fix it to
return its original name, /dev/vda1 in above case. So that we don't have
to check its return string every time.

Signed-off-by: WANG Chao <chaowang@redhat.com>
9 years agodracut.usage.asc: also add a link for RHEL-7 storage admin guide
Harald Hoyer [Fri, 15 Aug 2014 09:50:31 +0000 (11:50 +0200)] 
dracut.usage.asc: also add a link for RHEL-7 storage admin guide

9 years agodracut.usage.asc: extend parameters for shutdown debug procedure
Harald Hoyer [Fri, 15 Aug 2014 09:44:26 +0000 (11:44 +0200)] 
dracut.usage.asc: extend parameters for shutdown debug procedure

9 years agoi18n: check for $i18n_install_all == "yes" rather than being set
Harald Hoyer [Thu, 14 Aug 2014 10:56:53 +0000 (12:56 +0200)] 
i18n: check for $i18n_install_all == "yes" rather than being set

i18n_install_all="no" does not have the expected effect without this
patch

9 years agobridging: update the ifcfg files generated for bridge slaves
Alex Harpin [Sat, 2 Aug 2014 19:08:25 +0000 (20:08 +0100)] 
bridging: update the ifcfg files generated for bridge slaves

Update the ifcfg files generated for bridge slaves so they reference
the bridge they are part of.  Related to early patch submitted as a
fix for Bug #1123552.

Bug #1123552 https://bugzilla.redhat.com/show_bug.cgi?id=1123552

9 years agotest: make testsuite work with the new systemd minimal root req
Harald Hoyer [Fri, 8 Aug 2014 11:34:04 +0000 (13:34 +0200)] 
test: make testsuite work with the new systemd minimal root req

systemd needs more directories to switch root

9 years agofixed bridge setup
Harald Hoyer [Fri, 1 Aug 2014 11:16:29 +0000 (13:16 +0200)] 
fixed bridge setup

renamed "ethnames" in bridge.info to "bridgeslaves"

fixed ifcfg generation

9 years agoTEST-20-NFS: add more commands and fix client root dirs
Harald Hoyer [Fri, 1 Aug 2014 11:15:44 +0000 (13:15 +0200)] 
TEST-20-NFS: add more commands and fix client root dirs

9 years agoTEST-20-NFS:client-init.sh: add shell on rd.shell
Harald Hoyer [Fri, 1 Aug 2014 11:15:05 +0000 (13:15 +0200)] 
TEST-20-NFS:client-init.sh: add shell on rd.shell

9 years agoNEWS: update
Harald Hoyer [Tue, 29 Jul 2014 09:04:09 +0000 (11:04 +0200)] 
NEWS: update

9 years agodracut.spec: fixed license file packaging
Harald Hoyer [Thu, 24 Jul 2014 12:47:14 +0000 (14:47 +0200)] 
dracut.spec: fixed license file packaging

9 years agodracut.sh: add DRACUT_PATH
Harald Hoyer [Tue, 22 Jul 2014 12:43:33 +0000 (14:43 +0200)] 
dracut.sh: add DRACUT_PATH

DRACUT_PATH can now be used to specify the PATH used by dracut
to search for binaries instead of the default
/usr/sbin:/sbin:/usr/bin:/bin

This should be set in the distribution config file
/usr/lib/dracut/dracut.conf.d/01-dist.conf

9 years agotest/TEST-30-ISCSI: add rd.shell to client root
Harald Hoyer [Tue, 22 Jul 2014 12:22:21 +0000 (14:22 +0200)] 
test/TEST-30-ISCSI: add rd.shell to client root

9 years agoadd "--install-optional" and install_optional_items
Harald Hoyer [Tue, 22 Jul 2014 12:09:06 +0000 (14:09 +0200)] 
add "--install-optional" and install_optional_items

9 years agonetwork: add rd.route parameter
Harald Hoyer [Tue, 22 Jul 2014 09:03:56 +0000 (11:03 +0200)] 
network: add rd.route parameter

9 years agobase/dracut-lib:pidof() turn off debugging
Harald Hoyer [Tue, 22 Jul 2014 09:51:08 +0000 (11:51 +0200)] 
base/dracut-lib:pidof() turn off debugging

9 years agoARM: update modules for ARM host only options
Peter Robinson [Sun, 20 Jul 2014 21:20:04 +0000 (22:20 +0100)] 
ARM: update modules for ARM host only options

9 years agodracut-functions.sh: fix inst*() functions for "-H" handling
Harald Hoyer [Mon, 21 Jul 2014 14:58:15 +0000 (16:58 +0200)] 
dracut-functions.sh: fix inst*() functions for "-H" handling

because some inst*() functions check the existance of the source files
and do not know about the "-H" option, some failed to install the
hostonly files.

9 years agoInstalling an OS with VLAN enabled to an ISCSI LUN (from ibft)
Praveen_Paladugu@Dell.com [Tue, 10 Jun 2014 15:35:16 +0000 (10:35 -0500)] 
Installing an OS with VLAN enabled to an ISCSI LUN (from ibft)

When installing OS to a VLAN enabled iscsi LUN (extracted from iBFT), "/tmp/net.{xyz}.has_ibft_config" is not being set properly.

Then anaconda installer requires 'BOOTPROTO="ibft"' populated in ifcfg of the vlan interface (ex: ibft0.20), for it to properly populate the kernel parameters post installation. The setting 'BOOTPROTO="ibft"' is populated by write-ifcfg.sh script only if the corresponding interface has a file /tmp/net.{xyz}.has_inft_config

To get around this issue, in ibft_to_cmdline() function in net-lib.sh file, I made the following changes to populate the has_ibft_config file for the vlan interface(ex: ibft0.20):

9 years agodracut-functions.sh: speed up ldconfig_paths()
Harald Hoyer [Tue, 8 Jul 2014 10:54:21 +0000 (12:54 +0200)] 
dracut-functions.sh: speed up ldconfig_paths()

9 years agoplymouth: also find the pkglibdir on debian
Harald Hoyer [Tue, 8 Jul 2014 09:50:51 +0000 (11:50 +0200)] 
plymouth: also find the pkglibdir on debian

9 years agodracut.sh: always copy prelink files in FIPS mode
Harald Hoyer [Tue, 8 Jul 2014 09:50:04 +0000 (11:50 +0200)] 
dracut.sh: always copy prelink files in FIPS mode

regardless of the the prelink={yes|no} switch

9 years agolvm:module-setup.sh: check for existance of 69-dm-lvm-metad.rules
Harald Hoyer [Thu, 3 Jul 2014 13:04:17 +0000 (15:04 +0200)] 
lvm:module-setup.sh: check for existance of 69-dm-lvm-metad.rules

fixup for 12819a579900b9691e2bfaf14e76fbb025851530

9 years agomodsign: do not hardcode path to keyctl
Alexander Tsoy [Mon, 31 Mar 2014 13:56:13 +0000 (17:56 +0400)] 
modsign: do not hardcode path to keyctl

https://bugs.gentoo.org/show_bug.cgi?id=506094

9 years agoNEWS: update for version 038 038
Harald Hoyer [Tue, 24 Jun 2014 16:09:07 +0000 (18:09 +0200)] 
NEWS: update for version 038

9 years agoTEST-15-BTRFSRAID: install /etc/os-release
Harald Hoyer [Mon, 30 Jun 2014 09:29:56 +0000 (11:29 +0200)] 
TEST-15-BTRFSRAID: install /etc/os-release

makes systemd switch-root happy

9 years agotest: add udev settle after sfdisk
Harald Hoyer [Mon, 30 Jun 2014 09:29:37 +0000 (11:29 +0200)] 
test: add udev settle after sfdisk

9 years agoifcfg: depends on network
Harald Hoyer [Mon, 30 Jun 2014 09:28:08 +0000 (11:28 +0200)] 
ifcfg: depends on network

9 years agobase/init.sh: use loop counter with unique varname
Harald Hoyer [Fri, 27 Jun 2014 16:05:37 +0000 (18:05 +0200)] 
base/init.sh: use loop counter with unique varname

$i can be polluted too easily

9 years agoresume: only install hostonly files, if in hostonly mode
Harald Hoyer [Fri, 27 Jun 2014 10:47:56 +0000 (12:47 +0200)] 
resume: only install hostonly files, if in hostonly mode

9 years agoAdd "rd.cmdline=ask" kernel command line parameter
Harald Hoyer [Fri, 27 Jun 2014 10:02:14 +0000 (12:02 +0200)] 
Add "rd.cmdline=ask" kernel command line parameter

prompts the user for additional kernel command line parameters

9 years agodefault to hostonly_cmdline=yes, if hostonly
Harald Hoyer [Wed, 25 Jun 2014 14:54:04 +0000 (16:54 +0200)] 
default to hostonly_cmdline=yes, if hostonly

if hostonly_cmdline is not yet set, set it to "yes", if in hostonly
mode.

9 years agokernel-modules: add tegra arm modules
Harald Hoyer [Wed, 25 Jun 2014 10:02:30 +0000 (12:02 +0200)] 
kernel-modules: add tegra arm modules

9 years agoTEST-04-FULL-SYSTEMD/test.sh: removed debug comments
Harald Hoyer [Wed, 25 Jun 2014 09:45:42 +0000 (11:45 +0200)] 
TEST-04-FULL-SYSTEMD/test.sh: removed debug comments

9 years agoprint out, what kernel command line parameters are used
Harald Hoyer [Tue, 24 Jun 2014 16:55:49 +0000 (18:55 +0200)] 
print out, what kernel command line parameters are used

9 years agousable_root(): only check for ld-*.so
Harald Hoyer [Tue, 24 Jun 2014 16:54:35 +0000 (18:54 +0200)] 
usable_root(): only check for ld-*.so

current systemd allows booting with only /usr on the root partition

see, if we can find an elf loader

9 years agoAdd rd.hostonly kernel command line parameters
Harald Hoyer [Tue, 24 Jun 2014 16:13:28 +0000 (18:13 +0200)] 
Add rd.hostonly kernel command line parameters

rd.hostonly=0 will remove all configuration compiled in the initramfs
from the host on which it was build

9 years agoMakefile: add debugtestimage and debughostimage targets
Harald Hoyer [Tue, 24 Jun 2014 16:12:04 +0000 (18:12 +0200)] 
Makefile: add debugtestimage and debughostimage targets

9 years agoinstall: add -H flag for install
Harald Hoyer [Tue, 24 Jun 2014 16:11:47 +0000 (18:11 +0200)] 
install: add -H flag for install

inst* functions and dracut-install now accept the "-H" flag, which
logs all installed files to /lib/dracut/hostonly-files. This is used
to remove those files, if rd.hostonly is given on the kernel command line.

9 years agolsinird: Adding option "-m|--mod" to list dracut modules in the image
Hari Bathini [Mon, 2 Jun 2014 10:57:37 +0000 (16:27 +0530)] 
lsinird: Adding option "-m|--mod" to list dracut modules in the image

This patch adds option "-m|--mod" to lsinitrd to list dracut
modules in the image  because sometimes  having an option to
only list the dracut modules in the image could be handy.

Sample output:
--------------

[hbathini@localhost dracut]$ sudo ./lsinitrd.sh initramfs-3.11.10-100.fc18.x86_64.img -m
Image: initramfs-3.11.10-100.fc18.x86_64.img: 33M
========================================================================
Version: dracut-029-1.fc18.2

dracut modules:
i18n
network
ifcfg
drm
plymouth
btrfs
crypt
dm
dmraid
kernel-modules
lvm
mdraid
cifs
iscsi
nfs
resume
rootfs-block
terminfo
udev-rules
biosdevname
systemd
usrmount
base
fs-lib
shutdown
========================================================================

Signed-off-by: Hari Bathini <hbathini@linux.vnet.ibm.com>
9 years agolsinitrd.sh: don't choke on LZO-compressed images
Tobias Geerinckx [Tue, 3 Jun 2014 02:59:34 +0000 (04:59 +0200)] 
lsinitrd.sh: don't choke on LZO-compressed images

lsinitrd (and hence dracut) currently fail to list the contents of any
LZO-compressed image, and merely spit out misleading xzcat errors.

I guess no-one actually uses them.

9 years ago98systemd: also install systemd-journald-dev-log.socket
Daniel Schaal [Thu, 19 Jun 2014 09:38:25 +0000 (11:38 +0200)] 
98systemd: also install systemd-journald-dev-log.socket

The /dev/log socket was moved to /run on systemd 214, install the
newly added socket unit.

9 years agosystemd: Optionally, include efivarsfs module
Cristian Rodríguez [Mon, 16 Jun 2014 05:13:44 +0000 (01:13 -0400)] 
systemd: Optionally, include efivarsfs module

It is, however not an error if this module can't be found.

9 years agodeprecate "ip=ibft" kernel command line parameter
Harald Hoyer [Fri, 20 Jun 2014 12:27:09 +0000 (14:27 +0200)] 
deprecate "ip=ibft" kernel command line parameter

rd.iscsi.ibft[=1] should be used instead.

Thing is, 'ip=ibft' is not really an ip setting, but rather a marker
that iBFT should be evaluated.

Also removed the trigger of the warning:
"Warning: Please supply bootdev argument for multiple ip= lines"

9 years agodracut.sh: add libgcc_s, if libpthread is installed
Harald Hoyer [Fri, 20 Jun 2014 09:19:49 +0000 (11:19 +0200)] 
dracut.sh: add libgcc_s, if libpthread is installed

workaround the fact, that pthread_cancel() wants to
dlopen libgcc_s.so.1

9 years agoiscsi: correctly install the settled iscsiroot dummy call
Harald Hoyer [Wed, 11 Jun 2014 12:58:55 +0000 (14:58 +0200)] 
iscsi: correctly install the settled iscsiroot dummy call

initqueue parses $1 as the executable command

9 years agoiscsi: correctly install the timeout iscsiroot dummy call
Harald Hoyer [Wed, 11 Jun 2014 12:55:11 +0000 (14:55 +0200)] 
iscsi: correctly install the timeout iscsiroot dummy call

initqueue parses $1 as the executable command

9 years agoudev-rules: add uaccess rules
Harald Hoyer [Thu, 5 Jun 2014 10:30:22 +0000 (12:30 +0200)] 
udev-rules: add uaccess rules

plymouth needs the seat rules, also without systemd

9 years agoudev-rules: added seat rules
Harald Hoyer [Wed, 4 Jun 2014 11:26:08 +0000 (13:26 +0200)] 
udev-rules: added seat rules

plymouth needs the seat rules, also without systemd

9 years agonetwork/ifup.sh: Don't try to modprobe ipv6, if already available
Vasiliy Tolstov [Mon, 26 May 2014 11:28:43 +0000 (15:28 +0400)] 
network/ifup.sh: Don't try to modprobe ipv6, if already available

Signed-off-by: Vasiliy Tolstov <v.tolstov@selfip.ru>
[Edited-by: Harald Hoyer]
Simplified logic.

9 years agobonding: use hwaddr of the slave rather than the master
Alex Harpin [Tue, 6 May 2014 22:41:17 +0000 (23:41 +0100)] 
bonding: use hwaddr of the slave rather than the master

When a bonded interface is brought up, any slaves included in the bond
have their hardware address set to that of the bond master.  Although
this allows an interface to be brought up on start up, when the
configuration file is imported into the booted system it prevents
the bonded interface being successfully restarted.

The fix involves obtaining the hardware address of the slaves before
they are added to the bond and then using this value in the
configuration file.

9 years agokernel-modules: Fix storage module selection for sdhci/mmc/ahci
Peter Robinson [Fri, 23 May 2014 10:54:01 +0000 (11:54 +0100)] 
kernel-modules: Fix storage module selection for sdhci/mmc/ahci

Currently the block driver detection for generic initrd doesn't include
the SD/MMC drivers so we fail to boot generic images on any device using
those platforms as boot devices when using a generic initrd. Add logic
to detect those modules. This primarily fixes embedded ARM devices but
also likely intel tablets/dev boards and enterprise hypervisors that
have the ability to boot from SD.

Also the ahci_init_controller misses a number of drivers that use the
libahci_platform module for the init so this fixes some missing achi
moduless too.

Finally it cleans up the ARM storage module hacks that the above now
deals with in a more generic manner.

Signed-off-by: <pbrobinson@gmail.com>