]> git.ipfire.org Git - thirdparty/dracut.git/log
thirdparty/dracut.git
9 years agoensure parent dir for /usr/lib/initrd-release exists 124/head
Elan Ruusamäe [Wed, 27 Apr 2016 10:08:42 +0000 (13:08 +0300)] 
ensure parent dir for /usr/lib/initrd-release exists

9 years agodracut: 10i18n: support default loadkeys/setfont data paths using symbolic links
Guido Trentalancia [Fri, 15 Apr 2016 11:06:45 +0000 (13:06 +0200)] 
dracut: 10i18n: support default loadkeys/setfont data paths using symbolic links

Avoid keymap/font not found error when loadkeys/setfont
are compiled with the default data directory path.

Signed-off-by: Guido Trentalancia <guido@trentalancia.net>
9 years agowatchdog: start traversing the device tree from the right directory
Harald Hoyer [Mon, 18 Apr 2016 13:50:42 +0000 (15:50 +0200)] 
watchdog: start traversing the device tree from the right directory

start with the device subtree, not with the parent of it

9 years agowatchdog: clean return of installkernel()
Harald Hoyer [Mon, 18 Apr 2016 13:49:06 +0000 (15:49 +0200)] 
watchdog: clean return of installkernel()

return 0, otherwise if _alldrivers is empty, the return code is fail

9 years agoremoved obsolete kernel module functions and host_modules variable
Harald Hoyer [Fri, 15 Apr 2016 14:25:59 +0000 (16:25 +0200)] 
removed obsolete kernel module functions and host_modules variable

module_is_host_only()
find_kernel_modules_by_path()
find_kernel_modules()

9 years agodracut-install: make use of _cleanup_ macros and improve hostonly check
Harald Hoyer [Fri, 15 Apr 2016 13:29:52 +0000 (15:29 +0200)] 
dracut-install: make use of _cleanup_ macros and improve hostonly check

If a module is renamed or another module takes care of the old one,
all of the alias strings have to be checked against the current set of
loaded modules.

This is still incomplete, because to be absolutely correct, all the
/sys/*...*/modalias files would have to be checked, if they match the
modules alias strings.

9 years agodracut_install: honor --silent flag
Harald Hoyer [Fri, 15 Apr 2016 13:25:27 +0000 (15:25 +0200)] 
dracut_install: honor --silent flag

9 years agoMerge pull request #123 from dracut-mailing-devs/40374262.eB5p3XdtTH@linux-lm3i.site
Harald Hoyer [Fri, 15 Apr 2016 10:05:44 +0000 (12:05 +0200)] 
Merge pull request #123 from dracut-mailing-devs/40374262.eB5p3XdtTH@linux-lm3i.site

Correctly handle module aliases

9 years agodrop to shell on die() if rd.shell=1 is set explicitly
Harald Hoyer [Fri, 15 Apr 2016 10:03:03 +0000 (12:03 +0200)] 
drop to shell on die() if rd.shell=1 is set explicitly

9 years agowatchdog/module-setup.sh: rewrite
Harald Hoyer [Fri, 15 Apr 2016 09:27:20 +0000 (11:27 +0200)] 
watchdog/module-setup.sh: rewrite

- use local variables with _
- use associative array for the kernel modules
- install emergency hook even in the systemd case
- follow device path until /sys is reached
- set kernel version for modprobe checking

9 years agoMerge pull request #121 from dracut-mailing-devs/2751555c29f26f69a63888745513edeceb39...
Harald Hoyer [Fri, 15 Apr 2016 08:56:31 +0000 (10:56 +0200)] 
Merge pull request #121 from dracut-mailing-devs/2751555c29f26f69a63888745513edeceb39d416.1458099200.git.panand@redhat.com

 Install kernel module for active watchdog

9 years ago95resume: avoid possible symbolic link creation error on bootup
Guido Trentalancia [Fri, 15 Apr 2016 08:38:04 +0000 (10:38 +0200)] 
95resume: avoid possible symbolic link creation error on bootup

Avoid symbolic link creation error.

9 years agokate config
Harald Hoyer [Fri, 15 Apr 2016 08:27:48 +0000 (10:27 +0200)] 
kate config

9 years agobase/init.sh: don't mount /run with noexec, if the initramfs lives there
Harald Hoyer [Thu, 14 Apr 2016 12:56:37 +0000 (14:56 +0200)] 
base/init.sh: don't mount /run with noexec, if the initramfs lives there

If the initramfs was built with prefix=/run/... /run can't be mounted
with noexec, otherwise no binary can be run.

Guard against it by looking where /bin/sh is really located.

9 years agoRevert "fcoe: no need to copy lldpad state"
Harald Hoyer [Thu, 14 Apr 2016 11:38:24 +0000 (13:38 +0200)] 
Revert "fcoe: no need to copy lldpad state"

This reverts commit e93ff1cf9aac8f97131b3101a5da240ce5f45239.

seems like the file has to be copied back in the real root.

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

9 years agoNEWS: update for 045
Harald Hoyer [Thu, 14 Apr 2016 09:53:14 +0000 (11:53 +0200)] 
NEWS: update for 045

9 years agodracut-install: add --help documentation
Harald Hoyer [Thu, 14 Apr 2016 09:47:50 +0000 (11:47 +0200)] 
dracut-install: add --help documentation

9 years agoplymouth/plymouth-pretrigger.sh: also trigger acpi subsystem
Harald Hoyer [Wed, 6 Apr 2016 08:24:58 +0000 (10:24 +0200)] 
plymouth/plymouth-pretrigger.sh: also trigger acpi subsystem

Trigger the acpi subsystem. This will ensure hv_vmbus gets loaded before
plymouth is started, which will make the graphics device become
available before plymouth is started too (and the keyboard ! which might
also be important for plymouth in some setups).

https://bugzilla.redhat.com/show_bug.cgi?id=1218130
(cherry picked from commit d2846fdcce9b8de0edecdf0e06a4b86fc8de542c)

9 years agodracut-init.sh: beautify instmods()
Harald Hoyer [Wed, 13 Apr 2016 11:57:03 +0000 (13:57 +0200)] 
dracut-init.sh: beautify instmods()

9 years agodracut-install: simplify error logic
Harald Hoyer [Wed, 13 Apr 2016 11:28:29 +0000 (13:28 +0200)] 
dracut-install: simplify error logic

error out early, if "--optional" is not set

9 years agoFix regressions with dracut-install with kernel modules
Harald Hoyer [Wed, 13 Apr 2016 09:47:20 +0000 (11:47 +0200)] 
Fix regressions with dracut-install with kernel modules

Make sure, the same modules are installed as before.

9 years agoUse pkg-config for libkmod CFLAGS and LIBS
Harald Hoyer [Wed, 13 Apr 2016 09:13:32 +0000 (11:13 +0200)] 
Use pkg-config for libkmod CFLAGS and LIBS

9 years agoUse dracut-install to install kernel modules
Harald Hoyer [Thu, 23 Jul 2015 08:35:06 +0000 (10:35 +0200)] 
Use dracut-install to install kernel modules

dracut-install can now install kernel modules and their corresponding
firmware files.

9 years agodracut-init.sh: mark error messages with FAILED
Harald Hoyer [Mon, 11 Apr 2016 13:22:56 +0000 (15:22 +0200)] 
dracut-init.sh: mark error messages with FAILED

9 years agolsinitrd.sh: fixed unpack and skipcpio search
Harald Hoyer [Mon, 11 Apr 2016 13:22:11 +0000 (15:22 +0200)] 
lsinitrd.sh: fixed unpack and skipcpio search

9 years agodracut-init.sh: Add file argument to sed's
Harald Hoyer [Mon, 11 Apr 2016 11:36:06 +0000 (13:36 +0200)] 
dracut-init.sh: Add file argument to sed's

fixup for 06a1d0769055f437c938edd40bd9fbd622475864

9 years agodracut.sh: call dracut-install with "-f" in FIPS mode
Harald Hoyer [Mon, 21 Mar 2016 10:56:50 +0000 (11:56 +0100)] 
dracut.sh: call dracut-install with "-f" in FIPS mode

in fips mode, dracut-install was called with "-H" instead of "-f" in
FIPS mode

missed conversion of commit 26cd262a6a575a50ea384a2ceac6a6829efe8106

9 years agoMerge pull request #122 from scop/fixes
Harald Hoyer [Tue, 29 Mar 2016 09:19:58 +0000 (11:19 +0200)] 
Merge pull request #122 from scop/fixes

Various shell script improvements

9 years agodracut-init.sh: Simplify udev rule grepping 122/head
Ville Skyttä [Mon, 28 Mar 2016 09:09:06 +0000 (12:09 +0300)] 
dracut-init.sh: Simplify udev rule grepping

9 years agoClean up some bashisms from /bin/sh scripts
Ville Skyttä [Mon, 28 Mar 2016 08:52:14 +0000 (11:52 +0300)] 
Clean up some bashisms from /bin/sh scripts

9 years agonfs/module-setup.sh: Use colon instead of dot for chown user/group separator
Ville Skyttä [Mon, 28 Mar 2016 08:39:36 +0000 (11:39 +0300)] 
nfs/module-setup.sh: Use colon instead of dot for chown user/group separator

9 years agoDo not use deprecated egrep/fgrep
Ville Skyttä [Mon, 28 Mar 2016 08:38:34 +0000 (11:38 +0300)] 
Do not use deprecated egrep/fgrep

9 years agolsinitrd: add "--unpack" to lsinitrd
Harald Hoyer [Thu, 17 Mar 2016 13:45:24 +0000 (14:45 +0100)] 
lsinitrd: add "--unpack" to lsinitrd

also "--unpackearly" and "--verbose"

9 years agowatchdog: ensure that module is loaded as early as possible 121/head
Pratyush Anand [Wed, 16 Mar 2016 03:46:24 +0000 (09:16 +0530)] 
watchdog: ensure that module is loaded as early as possible

It is expected that a watchdog module will disable an active watchdog when
its probe is called ie, when it is loaded. So an early load of the module
will help to disable it earlier.
This can be helpful in some corner cases where kdump and watchdog daemon
both are active.

Testing:
    -- When watchdog kernel modules were added
# dracut --no-hostonly initramfs-test.img -a watchdog
# lsinitrd initramfs-test.img -f etc/cmdline.d/00-watchdog.conf
  rd.driver.pre=iTCO_wdt,lpc_ich,

Signed-off-by: Pratyush Anand <panand@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Harald Hoyer <harald@redhat.com>
9 years agowatchdog: install module for active watchdog
Pratyush Anand [Wed, 16 Mar 2016 03:39:10 +0000 (09:09 +0530)] 
watchdog: install module for active watchdog

Recently following patches have been added in upstream Linux kernel, which
(1) fixes parent of watchdog_device so that
/sys/class/watchdog/watchdogn/device is populated. (2) adds some sysfs
device attributes so that different watchdog status can be read.

http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=6551881c86c791237a3bebf11eb3bd70b60ea782
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=906d7a5cfeda508e7361f021605579a00cd82815
http://git.kernel.org/cgit/linux/kernel/git/torvalds/linux.git/commit/?id=33b711269ade3f6bc9d9d15e4343e6fa922d999b

With the above support, now we can find out whether a watchdog is active or
not. We can also find out the driver/module responsible for that watchdog
device.

Proposed patch uses above support and then adds module of active watchdog
in initramfs generated by dracut for hostonly mode. Kernel module for
inactive watchdog will be added as well for none hostonly mode.

When an user does not want to add kernel module, then one should exclude
complete dracut watchdog module with --omit.

Testing:
-- When watchdog is active watchdog modules were added
# cat /sys/class/watchdog/watchdog0/identity
iTCO_wdt
# cat /sys/class/watchdog/watchdog0/state
active
# dracut --hostonly initramfs-test.img -a watchdog
# lsinitrd initramfs-test.img | grep iTCO
-rw-r--r--   1 root     root         9100 Feb 24 09:19 usr/lib/modules/.../kernel/drivers/watchdog/iTCO_vendor_support.ko
-rw-r--r--   1 root     root        19252 Feb 24 09:19 usr/lib/modules/.../kernel/drivers/watchdog/iTCO_wdt.ko

-- When watchdog is inactive then watchdog modules were not added
# cat /sys/class/watchdog/watchdog0/state
inactive
# dracut --hostonly initramfs-test.img -a watchdog
# lsinitrd initramfs-test.img | grep iTCO

-- When watchdog is inactive, but no hostonly mode, watchdog modules were added
# cat /sys/class/watchdog/watchdog0/state
inactive
# dracut --no-hostonly initramfs-test.img -a watchdog
# lsinitrd initramfs-test.img | grep iTCO
-rw-r--r--   1 root     root         9100 Feb 24 09:19 usr/lib/modules/.../kernel/drivers/watchdog/iTCO_vendor_support.ko
-rw-r--r--   1 root     root        19252 Feb 24 09:19 usr/lib/modules/.../kernel/drivers/watchdog/iTCO_wdt.ko

Signed-off-by: Pratyush Anand <panand@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Harald Hoyer <harald@redhat.com>
9 years agowatchdog: Do not add hooks if systemd module is included
Pratyush Anand [Wed, 16 Mar 2016 03:39:09 +0000 (09:09 +0530)] 
watchdog: Do not add hooks if systemd module is included

When systemd is present, let it manage watchdog feed.

Signed-off-by: Pratyush Anand <panand@redhat.com>
Cc: Dave Young <dyoung@redhat.com>
Cc: Don Zickus <dzickus@redhat.com>
Cc: Harald Hoyer <harald@redhat.com>
9 years agodracut.conf.5.asc: fix bold
Harald Hoyer [Mon, 14 Mar 2016 13:16:12 +0000 (14:16 +0100)] 
dracut.conf.5.asc: fix bold

9 years agodracut-install: catch ldd message "cannot execute binary file"
Harald Hoyer [Mon, 14 Mar 2016 09:59:29 +0000 (10:59 +0100)] 
dracut-install: catch ldd message "cannot execute binary file"

9 years agodracut-systemd/dracut-pre-pivot.sh: Break at switch_root only for bare rd.break
Harald Hoyer [Mon, 7 Mar 2016 11:38:23 +0000 (12:38 +0100)] 
dracut-systemd/dracut-pre-pivot.sh: Break at switch_root only for bare rd.break

similar to commit ddfea6b54cfa8f8f6c970d970318568c8a8a4c78

Previously, any rd.break=breakpoint would cause a break at the
given breakpoint and also at switch_root.

9 years agoMerge branch 'master' of github.com:haraldh/dracut
Harald Hoyer [Mon, 29 Feb 2016 14:07:41 +0000 (15:07 +0100)] 
Merge branch 'master' of github.com:haraldh/dracut

9 years agonetwork/dhclient-script.sh: add classless-static-routes support
Harald Hoyer [Mon, 29 Feb 2016 13:52:16 +0000 (14:52 +0100)] 
network/dhclient-script.sh: add classless-static-routes support

https://bugzilla.redhat.com/show_bug.cgi?id=1260955
(cherry picked from commit a48ea27debb926a30810c9f1a42f096494c727e2)

9 years agodocumentation: "--hostonly-i18n" "--no-hostonly-i18n" "i18n_install_all"
Harald Hoyer [Mon, 29 Feb 2016 12:12:02 +0000 (13:12 +0100)] 
documentation: "--hostonly-i18n" "--no-hostonly-i18n" "i18n_install_all"

9 years agoMerge pull request #116 from evverx/fix-ask-cmdline-hostonly=0
Harald Hoyer [Tue, 16 Feb 2016 14:16:04 +0000 (15:16 +0100)] 
Merge pull request #116 from evverx/fix-ask-cmdline-hostonly=0

base/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup

9 years agoMerge pull request #115 from evverx/fix-dracut-cmdline-ask-service
Harald Hoyer [Tue, 16 Feb 2016 08:52:27 +0000 (09:52 +0100)] 
Merge pull request #115 from evverx/fix-dracut-cmdline-ask-service

dracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask

9 years agobase/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup 116/head
Evgeny Vereshchagin [Mon, 15 Feb 2016 13:47:18 +0000 (13:47 +0000)] 
base/init.sh: don't remove 99-cmdline-ask on 'hostonly' cleanup

How to reproduce:
host# ./dracut.sh -o 'dracut-systemd systemd systemd-initrd' --local -f ./initramfs.img

host# qemu-system-x86_64 -initrd ./initramfs.img \
    -append 'root=/dev/sda1 rd.cmdline=ask rd.hostonly=0' \
    ...

Enter additional kernel command line parameter (end with ctrl-d or .)
> rd.break
> .
...
There is no "Break before switch_root"
...

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
9 years agodracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask 115/head
Evgeny Vereshchagin [Mon, 15 Feb 2016 08:29:40 +0000 (08:29 +0000)] 
dracut-systemd/dracut-cmdline-ask: fix dracut --kernel-cmdline=rd.cmdline=ask

How to reproduce:

host# dracut --kernel-cmdline='rd.cmdline=ask' initramfs.img
host# qemu-system-x86_64 -initrd initramfs.img ... -append root=/dev/sda1 ...
...

qemu-host# journalctl -b | grep dracut-cmdline-ask
...
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Installed new job dracut-cmdline-ask.service/start as 42
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: ConditionKernelCommandLine=rd.cmdline=ask failed.
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Starting requested but condition failed. Not starting unit.
Feb 15 08:45:36 localhost systemd[1]: dracut-cmdline-ask.service: Job dracut-cmdline-ask.service/start finished, result=done
...

Signed-off-by: Evgeny Vereshchagin <evvers@ya.ru>
9 years agokernel-modules: join instmods and install all usb/storage
Harald Hoyer [Tue, 26 Jan 2016 13:59:28 +0000 (14:59 +0100)] 
kernel-modules: join instmods and install all usb/storage

9 years agokernel-modules: add usb-storage
Harald Hoyer [Tue, 26 Jan 2016 13:56:05 +0000 (14:56 +0100)] 
kernel-modules: add usb-storage

To save the rdsosreport.txt to a USB stick, the usb-storage module is
needed

9 years agonetwork: if rd.neednet=0 we don't need a bootdev
Harald Hoyer [Tue, 26 Jan 2016 11:26:03 +0000 (12:26 +0100)] 
network: if rd.neednet=0 we don't need a bootdev

otherwise dracut would wait for the bootdev interface to appear and be
setup

9 years agoCorrectly handle module aliases 123/head
Fabian Vogt [Thu, 21 Jan 2016 16:13:07 +0000 (17:13 +0100)] 
Correctly handle module aliases

Handle module aliases correctly to not generate unbootable
initrds with different kernel versions when modules were renamed
or replaced.

Signed-off-by: Fabian Vogt <fvogt@suse.com>
9 years agonetwork: add mtu to list of variables to store in override
Harald Hoyer [Tue, 19 Jan 2016 14:12:39 +0000 (15:12 +0100)] 
network: add mtu to list of variables to store in override

9 years agoTEST-30-ISCSI: some tests have unknown return code
Harald Hoyer [Tue, 19 Jan 2016 13:43:43 +0000 (14:43 +0100)] 
TEST-30-ISCSI: some tests have unknown return code

by design

9 years agoFixed vlan, bonding, bridging, team logic
Harald Hoyer [Tue, 19 Jan 2016 10:34:10 +0000 (11:34 +0100)] 
Fixed vlan, bonding, bridging, team logic

Call ifup for the slaves and assemble afterwards.

9 years agoMerge pull request #111 from wyrmiyu/multipath_fix
Harald Hoyer [Tue, 19 Jan 2016 09:16:13 +0000 (10:16 +0100)] 
Merge pull request #111 from wyrmiyu/multipath_fix

multipath: fix majmin_to_mpath_dev()

9 years agomultipath: fix majmin_to_mpath_dev() 111/head
Pekka Wallendahl [Mon, 18 Jan 2016 18:28:22 +0000 (20:28 +0200)] 
multipath: fix majmin_to_mpath_dev()

* Multipath device names only start with the mpath-prefix if the option
  use_userfriendly_names is set true in /etc/multipath.conf and if user
  has not set any aliases in the said file. Thus the for-loop should go
  through all files in /dev/mapper/, not just ones starting with 'mpath'

* Bash is perfectly capable to extend `/dev/mapper/*` notation without a
  need to pass it to an external ls

* Changed the function to use a local variable $_dev instead of the
  global $dev, which seemed to be the original intention as the local
  _dev was defined but not used

9 years agodracut-functions.sh:fix check_vol_slaves() volume group name stripping
Harald Hoyer [Mon, 18 Jan 2016 15:59:42 +0000 (16:59 +0100)] 
dracut-functions.sh:fix check_vol_slaves() volume group name stripping

commit 466a59984a095f33993cffd5a3bea40826469b03 removed whitespace
stripping from lvm volume group names.

9 years agonetwork/net-lib.sh: correctly set mac address for ip=...:<mtu>:<mac>
Harald Hoyer [Wed, 13 Jan 2016 12:43:38 +0000 (13:43 +0100)] 
network/net-lib.sh: correctly set mac address for ip=...:<mtu>:<mac>

if ip=...:<mtu>:<mac> was specified, macadress was not set

9 years agodracut.sh: fail hard, if we find modules and modules.dep is missing
Harald Hoyer [Wed, 13 Jan 2016 08:32:24 +0000 (09:32 +0100)] 
dracut.sh: fail hard, if we find modules and modules.dep is missing

If modules are present in /lib/modules/<kernelversion> and modules.dep
is empty, depmod was not run most likely.

9 years agodracut.cmdline: remove extra ":" from ip= doc
Harald Hoyer [Wed, 13 Jan 2016 08:17:40 +0000 (09:17 +0100)] 
dracut.cmdline: remove extra ":" from ip= doc

9 years agodracut.sh: restorecon final image file
Harald Hoyer [Fri, 8 Jan 2016 10:37:25 +0000 (11:37 +0100)] 
dracut.sh: restorecon final image file

Instead of "mv" use "cp --reflink=auto" and restorecon the final image

9 years agofcoe: no need to copy lldpad state
Harald Hoyer [Thu, 7 Jan 2016 09:44:31 +0000 (10:44 +0100)] 
fcoe: no need to copy lldpad state

/dev/shm should be available later on by the normal switch root bind mount.

9 years agoMerge pull request #109 from puleglot/fix_dev_unit_name
Harald Hoyer [Thu, 7 Jan 2016 09:13:45 +0000 (10:13 +0100)] 
Merge pull request #109 from puleglot/fix_dev_unit_name

base/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-"

9 years agonbd: add missing generator
Harald Hoyer [Thu, 7 Jan 2016 08:56:36 +0000 (09:56 +0100)] 
nbd: add missing generator

9 years agobase/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-" 109/head
Alexander Tsoy [Tue, 5 Jan 2016 19:11:57 +0000 (22:11 +0300)] 
base/dracut-lib.sh:dev_unit_name() guard against $dev beginning with "-"

crypt/parse-crypt.sh generate initqueue job which always call
dev_unit_name() with an argument beginning with "-". This results
in the following error:

dracut-initqueue[307]: + systemd-escape -p -cfb4aa43-2f02-4c6b-a313-60ea99288087
dracut-initqueue[307]: systemd-escape: invalid option -- 'c'

9 years agotest/TEST-04-FULL-SYSTEMD: optionally install machine-info and *-id
Harald Hoyer [Mon, 14 Dec 2015 14:12:24 +0000 (15:12 +0100)] 
test/TEST-04-FULL-SYSTEMD: optionally install machine-info and *-id

9 years agoTEST-16-DMSQUASH: do not use "--" with ldconfig -r
Harald Hoyer [Mon, 14 Dec 2015 12:59:33 +0000 (13:59 +0100)] 
TEST-16-DMSQUASH: do not use "--" with ldconfig -r

9 years agonbd: add systemd generator and use nbd export names instead of port numbers
Harald Hoyer [Mon, 14 Dec 2015 12:10:33 +0000 (13:10 +0100)] 
nbd: add systemd generator and use nbd export names instead of port numbers

Add a systemd generator for root=nbd:.. so that systemd has a correct
sysroot.mount unit.

Use export names instead of port numbers, because port number based
exports are deprecated and were removed.

9 years agonetwork: fix carrier detection
Harald Hoyer [Mon, 14 Dec 2015 12:10:05 +0000 (13:10 +0100)] 
network: fix carrier detection

rename iface_has_link() to iface_has_carrier() to clarify usage

Only assign static "wildcard interface" settings, if the interface has a
carrier.

If the interface name was specified with a name, do not do carrier
checking for static configurations.

9 years agolivenet/module-setup.sh: only include systemd generator if systemd included
Harald Hoyer [Mon, 14 Dec 2015 10:16:42 +0000 (11:16 +0100)] 
livenet/module-setup.sh: only include systemd generator if systemd included

9 years agosystemd: include machine-info
Harald Hoyer [Mon, 14 Dec 2015 10:16:12 +0000 (11:16 +0100)] 
systemd: include machine-info

9 years agokernel-modules: include all HID driver in hostonly mode
Harald Hoyer [Wed, 9 Dec 2015 13:14:46 +0000 (14:14 +0100)] 
kernel-modules: include all HID driver in hostonly mode

If a kernel is updated in the undocked state and later on docked, some
keyboard modules can be missing.

Thus include all HID drivers.

9 years agodmsquash-live/dmsquash-live-root.sh: SQUASHED can be set earlier
Harald Hoyer [Tue, 1 Dec 2015 07:52:00 +0000 (08:52 +0100)] 
dmsquash-live/dmsquash-live-root.sh: SQUASHED can be set earlier

8b5ee88ff667693b2d8da85a8552ad8f5ab95127 removed the check for SQUASHED,
assuming, that the if clause above was the only place, where SQUASHED is
set.

This patch reverts to the old logic, because SQUASHED can be set
earlier.

9 years agoshutdown: guard against read-only /run
Harald Hoyer [Mon, 30 Nov 2015 10:27:03 +0000 (11:27 +0100)] 
shutdown: guard against read-only /run

remount the switch rooted /run writeable again.

9 years agolivenet/livenet-generator.sh: mode 0755
Harald Hoyer [Fri, 27 Nov 2015 08:44:24 +0000 (09:44 +0100)] 
livenet/livenet-generator.sh: mode 0755

9 years agodmraid/61-dmraid-imsm.rules: add nowatch option for udev
Harald Hoyer [Thu, 26 Nov 2015 16:46:03 +0000 (17:46 +0100)] 
dmraid/61-dmraid-imsm.rules: add nowatch option for udev

udev rereads partitions, if watch is set for disks

9 years agodmsquash-live/dmsquash-live-root.sh: fixed typo
Harald Hoyer [Thu, 26 Nov 2015 14:50:39 +0000 (15:50 +0100)] 
dmsquash-live/dmsquash-live-root.sh: fixed typo

9 years agoNEWS: update for version 044 044
Harald Hoyer [Mon, 23 Nov 2015 10:34:18 +0000 (11:34 +0100)] 
NEWS: update for version 044

9 years agoAUTHORS: update
Harald Hoyer [Wed, 18 Nov 2015 13:43:03 +0000 (14:43 +0100)] 
AUTHORS: update

9 years agodmraid/61-dmraid-imsm.rules: remove double ","
Harald Hoyer [Wed, 25 Nov 2015 13:20:42 +0000 (14:20 +0100)] 
dmraid/61-dmraid-imsm.rules: remove double ","

9 years agolvm: silence errors from "lvm dumpconfig"
Harald Hoyer [Mon, 23 Nov 2015 10:09:47 +0000 (11:09 +0100)] 
lvm: silence errors from "lvm dumpconfig"

if the config option does not exist, we ignore the error anyway

9 years agoman: clarify add_dracutmodules vs dracutmodules
Harald Hoyer [Mon, 23 Nov 2015 09:36:22 +0000 (10:36 +0100)] 
man: clarify add_dracutmodules vs dracutmodules

9 years agoFor rd.hostonly=0 remove all initqueue/finished files also
Harald Hoyer [Fri, 20 Nov 2015 09:21:31 +0000 (10:21 +0100)] 
For rd.hostonly=0 remove all initqueue/finished files also

This helps booting systems with changed configuration

9 years agoMakefile: add efi target
Harald Hoyer [Wed, 18 Nov 2015 13:58:10 +0000 (14:58 +0100)] 
Makefile: add efi target

make an UEFI bootable image

9 years agodracut.sh: only create one TMPDIR
Harald Hoyer [Wed, 18 Nov 2015 13:46:30 +0000 (14:46 +0100)] 
dracut.sh: only create one TMPDIR

use DRACUT_TMPDIR subdirs for everything

9 years agoRevert "systemd: if kdbus is available, include the kernel module"
Harald Hoyer [Wed, 18 Nov 2015 11:46:44 +0000 (12:46 +0100)] 
Revert "systemd: if kdbus is available, include the kernel module"

This reverts commit 90ff5ad67ecab66a8f699c9805729701981ee018.

There will be no kdbus anymore :-/

9 years agoMerge pull request #97 from FGrose/dmsquash-live-root
Harald Hoyer [Mon, 23 Nov 2015 10:07:43 +0000 (11:07 +0100)] 
Merge pull request #97 from FGrose/dmsquash-live-root

dmsquash-live-root:  Persistence without overlay for uncompressed live installations

9 years agoMerge pull request #106 from FGrose/dracut.cmdline
Harald Hoyer [Mon, 23 Nov 2015 09:05:51 +0000 (10:05 +0100)] 
Merge pull request #106 from FGrose/dracut.cmdline

dracut.cmdline:  Update Booting live images section

9 years agodracut.cmdline: Update Booting live images section 106/head
Frederick Grose [Sat, 21 Nov 2015 21:46:18 +0000 (16:46 -0500)] 
dracut.cmdline:  Update Booting live images section

Add descriptions for the rd.live.overlay.readonly,
rd.live.overlay.size, rd.live.overlay.reset,
rd.live.squashimg, and rd.live.overlay=none options.
Mention the Invalid mark on exhausted overlays.
Clarify the rd.writable.fsimg option.
Repunctuate the rd.live.overlay.thin option description.

9 years agodmsquash-live-root: Avoid an overlay for persistent, uncompressed, read-write live... 97/head
Frederick Grose [Fri, 9 Oct 2015 20:56:19 +0000 (16:56 -0400)] 
dmsquash-live-root:  Avoid an overlay for persistent, uncompressed, read-write live installations.

Persistent, uncompressed live installations can avoid overlays with a new rd.live.overlay=none flag.
Non-persistent rd.live.ram boots can also take advantage of persistent home.img filesystems.

9 years agoMerge pull request #105 from antonym/master
Harald Hoyer [Thu, 19 Nov 2015 15:35:29 +0000 (16:35 +0100)] 
Merge pull request #105 from antonym/master

livenet: add livenet-generator

9 years agolivenet: add livenet-generator 105/head
Antony Messerli [Thu, 19 Nov 2015 14:10:03 +0000 (08:10 -0600)] 
livenet: add livenet-generator

Resolves issues where systemd attempts to boot a live URL as an NFS mount.

This patch uses systemd's generator arg[2] to generate an early sysroot.mount
that preempts systemd-fstab-generator.

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

9 years agodracut.sh: for microcode generation, skip gpg files
Harald Hoyer [Wed, 18 Nov 2015 09:58:54 +0000 (10:58 +0100)] 
dracut.sh: for microcode generation, skip gpg files

skip all ".asc" files for the AMD microcode generation

9 years agoTEST-16-DMSQUASH: add code for IO throtteling in qemu
Harald Hoyer [Wed, 18 Nov 2015 09:17:04 +0000 (10:17 +0100)] 
TEST-16-DMSQUASH: add code for IO throtteling in qemu

To test the mediacheck feature, I added commented out code with qemu IO
throtteling.

9 years agodracut.sh: save systemdutildir env
Harald Hoyer [Tue, 17 Nov 2015 08:45:29 +0000 (09:45 +0100)] 
dracut.sh: save systemdutildir env

even, if no systemd is used, we need that variable for systemd-udevd

9 years agoCheck for systemd before installing systemd specific files
Harald Hoyer [Mon, 16 Nov 2015 08:41:26 +0000 (09:41 +0100)] 
Check for systemd before installing systemd specific files

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

9 years agodracut.sh: add back host_modules part
Harald Hoyer [Mon, 16 Nov 2015 08:24:50 +0000 (09:24 +0100)] 
dracut.sh: add back host_modules part

host_modules was removed accidently while remove host_modaliases

9 years agoiscsi/parse-iscsiroot.sh: reload udev rules
Harald Hoyer [Fri, 13 Nov 2015 15:37:48 +0000 (16:37 +0100)] 
iscsi/parse-iscsiroot.sh: reload udev rules

in the DHCP case udev is already running, so reload the rules before
continuing.

9 years agodracut-init.sh: libdir paths need dracut-function.sh
Harald Hoyer [Fri, 13 Nov 2015 13:19:53 +0000 (14:19 +0100)] 
dracut-init.sh: libdir paths need dracut-function.sh

9 years agoCheck rd.zfcp= format in dracut hook:cmdline process stage
Zhiguo Deng [Fri, 16 Oct 2015 02:04:34 +0000 (04:04 +0200)] 
Check rd.zfcp= format in dracut hook:cmdline process stage

When using rd.zfcp= parameter in generic.prm file, wrong format
parameters will prevent the zfcp driver to add the correct SCSI
disk. dracut should die when a wrong rd.zfcp= parameter supplied.

Signed-off-by: Zhiguo Deng <bjzgdeng@linux.vnet.ibm.com>
9 years agodracut.sh: remove the concept of host_modalias
Harald Hoyer [Fri, 13 Nov 2015 12:40:38 +0000 (13:40 +0100)] 
dracut.sh: remove the concept of host_modalias

We can never gather enough information about compiled in modules, so
don't pretend to know and do smart decisions.