Wim Muskee [Sat, 25 Aug 2012 11:42:12 +0000 (13:42 +0200)]
unquote nbd port
Name based connects fail because of the quotes around the $nbdport.
For name based connects, the -N option also gets included. For
instance nbd-client 192.168.0.1 '-N ltsp' /dev/nbd0.
I believe the quotes are not necessary for actual port numbers.
Frederick Grose [Thu, 6 Sep 2012 08:48:37 +0000 (10:48 +0200)]
dmsquash-live/dmsquash-live-root.sh: Physically write overlay reset at time of request
Vivek Goyal [Wed, 5 Sep 2012 21:24:34 +0000 (17:24 -0400)]
dracut: Override rd.md settings if rd.md.uuid is provided
Currently anaconda provides rd.md=0 on kernel's command line as a boot
time optimization if root is not on md device. But this leads to kdump
failure. We copy the command line from first kernel and if dump target
is on md device, it fails as we never try to assemble md devices as
rd.md=0.
We have already set rd.md.uuid though in /etc/cmdlind.d/ dir providing
dracut the info about what md devices to assemble. So this patch overrides
rd.md settings if rd.md.uuid is provided.
This is a stop gap measure to get kdump working on software raid
devices. Harald seems to have bigger cleanup plans for rd.md. Once
that happens, this patch will not be needed and things should
automatically be fixed.
Signed-off-by: Vivek Goyal <vgoyal@redhat.com>
Dave Young [Tue, 28 Aug 2012 02:05:49 +0000 (10:05 +0800)]
use check_block_and_slaves in for_each_host_dev_and_slaves
for_each_host_dev_and_slaves currently is used in some module check()
functions and it's not necessary iterate all slaves. So use
check_block_and_slaves instead of check_block_and_slaves_all is fine.
Signed-off-by: Dave Young <dyoung@redhat.com>
Milan Broz [Fri, 24 Aug 2012 11:31:57 +0000 (13:31 +0200)]
FIPS workaround for fipscheck dir
Also patch old install path... (used in Fedora 17)
Signed-off-by: Milan Broz <mbroz@redhat.com>
Harald Hoyer [Tue, 4 Sep 2012 07:49:45 +0000 (09:49 +0200)]
crypt: do not run systemd crypt generator
"systemctl daemon-reload" does it already for us
Will Woods [Thu, 23 Aug 2012 20:56:01 +0000 (16:56 -0400)]
make splitsep preserve backslashes (RHBZ#851295)
splitsep() would drop escapes from its inputs. For example:
splitsep ':' 'first:middle:\e\s\c\a\p\e\d' a b c
gave a='first', b='middle', c='escaped'. Even worse:
splitsep ':' '\e\s\c\a\p\e\d:middle:last' a b c
gave a='escaped', b='escaped', c='escaped:middle:last'.
This fixes the quoting so both calls return the values you'd expect
(e.g. 'first', 'middle', '\e\s\c\a\p\e\d').
Milan Broz [Thu, 23 Aug 2012 17:55:27 +0000 (19:55 +0200)]
Require fipscheck and libssl in FIPS module
To properly perform verification in FIPS mode,
we need to install fipscheck and libssl explicitly.
(cryptsetup seems to be the first user of this verification in ramdisk...)
Signed-off-by: Milan Broz <mbroz@redhat.com>
Milan Broz [Thu, 23 Aug 2012 17:55:26 +0000 (19:55 +0200)]
dracut-install: FIPS workaround for fipscheck dir
In recent Fedora distro are all hmac files located in /lib
(to avoid multiarch conflict).
When installing hmac file, also install files from these locations.
Signed-off-by: Milan Broz <mbroz@redhat.com>
Harald Hoyer [Thu, 23 Aug 2012 13:02:37 +0000 (15:02 +0200)]
install/dracut-install.c: correct usage() for hmac
Harald Hoyer [Thu, 23 Aug 2012 10:13:02 +0000 (12:13 +0200)]
moved the /etc/host_devs write out to 99base
also removed some left-over debugging code
dyoung@redhat.com [Thu, 23 Aug 2012 03:02:24 +0000 (11:02 +0800)]
Add a dracut option --device to bring up a device in initramfs
Kdump support dump to raw device which could be on top of complex storage
such as multipath and iscsi which are standalone dracut modules.
Add a --device option to dracut which will add the device to host_devs so
dracut can add the dependent modules automaticlly and enable them in initramfs.
--device will accept device node name as the param.
Signed-off-by: Dave Young <dyoung@redhat.com>
Tested-by: Chao Wang <chaowang@redhat.com>
dyoung@redhat.com [Thu, 23 Aug 2012 03:02:23 +0000 (11:02 +0800)]
Add for_each_host_dev_and_slaves for device only checking
For lvm, multipath, iscsi modules they do not care about the filesystem,
Also there could be devcie in host_devs but it does not get formated.
For these kind of modules, use for_each_host_dev_and_slaves will be better than use
for_each_host_dev_fs, here add a new function to iterate the host_devs and
their slave devices.
In original for_each_host_dev_fs, it will call check_block_and_slaves which
will return once helper function return 0, but this is not enough for kdump
iscsi setup. For kdump iscsi case, it need setup each slave devices so that
the iscsi target can be properly setuped in initramfs.
Thus, this patch also add new functions check_block_and_slaves_all and
for_each_host_dev_and_slaves_all.
Signed-off-by: Dave Young <dyoung@redhat.com>
Tested-by: WANG Chao <chaowang@redhat.com>
dyoung@redhat.com [Thu, 23 Aug 2012 03:02:22 +0000 (11:02 +0800)]
wait host devs in base module
each dev in host_devs[] should be waited in initqueue to make sure they
are oneline before initqueue finish.
Add a new wait_host_devs.sh in base module to make this a generic thing.
Because all the devs in fstab lines are also added to host_devs, so no need
do same wait in fstab-sys module anymore.
[v2->v3]: do not add slave devices to host_devs
wait for persistent dev name in initramfs
Signed-off-by: Dave Young <dyoung@redhat.com>
Harald Hoyer [Wed, 22 Aug 2012 15:27:26 +0000 (17:27 +0200)]
network: add ping and ping6
better for a quick debug
Harald Hoyer [Wed, 22 Aug 2012 11:16:23 +0000 (13:16 +0200)]
znet: add some more kernel drivers
Harald Hoyer [Wed, 22 Aug 2012 11:01:53 +0000 (13:01 +0200)]
mdraid: catch nested md raids
Thanks to Ian Dall!
Colin Guthrie [Thu, 16 Aug 2012 13:27:22 +0000 (14:27 +0100)]
udev-rules: Pre usrmove systemd installs might not find udevd.
If users had switched to systemd-183+ but have not completed
the usrmove, then the variable ${systemdutildir} will likely
refer to /usr/lib/systemd NOT /lib/systemd and thus the
systemd-udevd daemon may not be found.
So let's try a little harder and add another hard coded path
and if we don't find it, then bail out hard.
Colin Guthrie [Sat, 18 Aug 2012 10:38:02 +0000 (11:38 +0100)]
install/dracut-install.c: No need to compare the NULL byte each time.
Colin Guthrie [Tue, 14 Aug 2012 21:32:00 +0000 (22:32 +0100)]
install/dracut-install.c: Deal gracefully with paths containing double /'s
While such paths should not be included internally, we cannot
guarantee that external scripts with shebangs will not do this.
Some older versions of plymouth also resulted in double /'s
in some paths, so best deal with this gracefully.
Colin Guthrie [Tue, 14 Aug 2012 21:09:39 +0000 (22:09 +0100)]
install/dracut-install.c: Ensure deps are resolved when handling scripts
If we are doing lazy dep solving and happen to process a script with a
shebang on e.g. /bin/bash before we encounter the actual binary itself
we effectively ignore the fact that we've been asked to resolve the deps
and put the item in the 'seen' hashmap. Thus when we later really do try
and resolve deps, we short circuit and don't do anything.
Example test case:
$ cd
$ mkdir -p foo/bin
$ cp /bin/bash foo/bin
$ echo '#!/bin/bash' >foo/bin/script
$ dracut-install -D $HOME/foo -R $HOME/foo/bin/script $HOME/foo/bin/bash
Harald Hoyer [Tue, 21 Aug 2012 13:01:08 +0000 (15:01 +0200)]
fips: set /boot as symlink to /sysroot/boot if no boot= parameter
otherwise sha512hmac will error out with:
sha512hmac -c /sysroot/boot/.vmlinuz-2.6.32-220.el6.x86_64.hmac
Error opening "/boot/vmlinuz-2.6.32-220.el6.x86_64": No such file or directory.
Harald Hoyer [Tue, 21 Aug 2012 12:47:14 +0000 (14:47 +0200)]
network: reintroduce rd.neednet
rd.neednet is used by anaconda and the network interfaces cannot
be known in advance.
Harald Hoyer [Fri, 17 Aug 2012 07:22:12 +0000 (09:22 +0200)]
add back scsi_wait_scan
Harald Hoyer [Tue, 14 Aug 2012 15:44:46 +0000 (17:44 +0200)]
mdraid: always create need_shutdown, if we have assembled a raid
Dennis Gilmore [Thu, 2 Aug 2012 10:12:54 +0000 (05:12 -0500)]
include the omap_hsmmc module on arm
Harald Hoyer [Wed, 1 Aug 2012 14:35:46 +0000 (16:35 +0200)]
dracut.conf.5.asc: s#dracut/conf.d#dracut.conf.d#g
Amadeusz Żołnowski [Wed, 1 Aug 2012 14:23:24 +0000 (16:23 +0200)]
dracut.conf.d/gentoo.conf.example: fix header
Harald Hoyer [Wed, 1 Aug 2012 13:53:25 +0000 (15:53 +0200)]
COPYING: updated to recent version of gnu.org/licenses/gpl-2.0.txt
Harald Hoyer [Wed, 1 Aug 2012 13:30:30 +0000 (15:30 +0200)]
version 023
Frederic Crozat [Tue, 31 Jul 2012 13:15:13 +0000 (15:15 +0200)]
ensure af_packet module is loaded (if not built-in)
Frederic Crozat [Tue, 31 Jul 2012 13:15:00 +0000 (15:15 +0200)]
add package name for openSUSE
Harald Hoyer [Wed, 1 Aug 2012 12:36:58 +0000 (14:36 +0200)]
plymouth/plymouth-pretrigger.sh: s/! -n/-z/
Harald Hoyer [Wed, 1 Aug 2012 12:36:38 +0000 (14:36 +0200)]
base/dracut-lib.sh: make use of DRACUT_SYSTEMD
Dave Young [Wed, 1 Aug 2012 10:07:52 +0000 (18:07 +0800)]
split emergency_shell function
Kdump dracut hooks need to enter emergency shell, currently it directly call
"sh -i -l", with recent dracut this does not work anymore without proper ctty.
It will be convinient to seperate a standalone function _emergency_shell for
dracut modules to call.
Harald Hoyer [Wed, 1 Aug 2012 10:52:34 +0000 (12:52 +0200)]
test: s/ib700wdt/i6300esbwdt/g
Harald Hoyer [Wed, 1 Aug 2012 10:50:54 +0000 (12:50 +0200)]
test/Makefile: fixed TESTS parsing
Harald Hoyer [Wed, 1 Aug 2012 10:49:45 +0000 (12:49 +0200)]
watchdog: set watchdog timeout with wdctl, if available
"wdctl -s" does not yet exist upstream. I patched
util-linux/sys-utils/wdctl.c to set the timeout.
Chao Wang [Wed, 1 Aug 2012 03:23:42 +0000 (11:23 +0800)]
Revert "dracut-functions: $_x should exist, no need to test."
This reverts commit
b2d225a6698607bbcb73b6e6d12fbfc5be014102.
When there's no /sys/dev/block/$2/slaves/*/dev/ exists, $_x will
be assigned with '/sys/dev/block/$2/slaves/*/dev/', this is invalid.
That commit will lead to some warn msg like:
cat: /sys/dev/block/8:16/slaves/*/dev: No such file or directory
cat: /sys/dev/block/8:32/slaves/*/dev: No such file or directory
Harald Hoyer [Tue, 31 Jul 2012 12:44:50 +0000 (14:44 +0200)]
base/dracut-lib.sh:ismounted() check for block device rather than pathname
Harald Hoyer [Tue, 31 Jul 2012 12:43:05 +0000 (14:43 +0200)]
base/dracut-lib.sh: fixed ismounted() for "/dev"
Harald Hoyer [Tue, 31 Jul 2012 11:46:51 +0000 (13:46 +0200)]
Prevent testsuite runs from non-root users.
Harald Hoyer [Tue, 31 Jul 2012 11:28:45 +0000 (13:28 +0200)]
rootfs-block/mount-root.sh: corrected check for journaldev
Harald Hoyer [Tue, 31 Jul 2012 11:28:07 +0000 (13:28 +0200)]
dracut.cmdline.7.asc: corrected rd.retry section
Harald Hoyer [Tue, 31 Jul 2012 10:37:35 +0000 (12:37 +0200)]
document rd.retry and change the default value to 30s
Also start the timeout scripts after 2/3 of the time.
Amadeusz Żołnowski [Tue, 31 Jul 2012 10:23:18 +0000 (12:23 +0200)]
dracut.cmdline.7: add NOTE about how dracut pipes key to cryptsetup
Harald Hoyer [Tue, 31 Jul 2012 09:48:03 +0000 (11:48 +0200)]
dracut.sh: create relative symlinks for /var/lock and /var/run
Harald Hoyer [Tue, 31 Jul 2012 09:44:40 +0000 (11:44 +0200)]
dracut.sh: do not copy /var/run and /var/lock from the system
https://bugs.gentoo.org/show_bug.cgi?id=428142
If /var/run and /var/lock are real directories, we would end up with:
var/lock/lock -> /run/lock
var/run/run -> /run
Stefan Reimer [Tue, 31 Jul 2012 09:36:17 +0000 (11:36 +0200)]
i18n/module-setup.sh: fixed include parsing
Due to bug in module-setup.sh in the i18n module includes from the main
keymap are not working and not added to the initrd image.
Only one quotation per line is removed. Needs to remove all.
Amadeusz Żołnowski [Tue, 31 Jul 2012 08:49:58 +0000 (10:49 +0200)]
99shutdown: remove --no-wall argument for reboot, halt, etc...
In some distros (Gentoo, for example) these commands don't honor
--no-wall argument.
Harald Hoyer [Mon, 30 Jul 2012 20:27:53 +0000 (22:27 +0200)]
crypt/crypt-run-generator.sh: check if crypttab exists
Harald Hoyer [Mon, 30 Jul 2012 20:19:59 +0000 (22:19 +0200)]
removed finished-ask-password.sh
Harald Hoyer [Mon, 30 Jul 2012 19:07:14 +0000 (21:07 +0200)]
TEST-10-RAID/test.sh: comment debug options
Harald Hoyer [Mon, 30 Jul 2012 19:07:03 +0000 (21:07 +0200)]
TODO: update
Harald Hoyer [Mon, 30 Jul 2012 18:32:39 +0000 (20:32 +0200)]
dmraid,mdraid,lvm,udev: don't process DM_MULTIPATH_DEVICE_PATH devs
Harald Hoyer [Mon, 30 Jul 2012 16:35:30 +0000 (18:35 +0200)]
crypt/crypt-run-generator.sh: do not add already existing luks
Harald Hoyer [Mon, 30 Jul 2012 12:34:55 +0000 (14:34 +0200)]
crypt: add systemd crypt support
Harald Hoyer [Mon, 30 Jul 2012 15:07:43 +0000 (17:07 +0200)]
plymouth/plymouth-pretrigger.sh: don't "exit 0" for a sourced script
Harald Hoyer [Mon, 30 Jul 2012 15:06:48 +0000 (17:06 +0200)]
plymouth/plymouth-newroot.sh: don't "exit 0" for sourced scripts
Harald Hoyer [Mon, 30 Jul 2012 15:06:23 +0000 (17:06 +0200)]
virtfs/mount-virtfs.sh: don't exit != 0
Harald Hoyer [Mon, 30 Jul 2012 15:05:49 +0000 (17:05 +0200)]
systemd/module-setup.sh: install systemd udev rules
Harald Hoyer [Mon, 30 Jul 2012 15:04:55 +0000 (17:04 +0200)]
base/dracut-lib.sh: fixed ismounted(<mountpoint>)
Harald Hoyer [Mon, 30 Jul 2012 15:01:08 +0000 (17:01 +0200)]
i18n/parse-i18n.sh: remove udev rules
Harald Hoyer [Mon, 30 Jul 2012 15:00:27 +0000 (17:00 +0200)]
dracut-functions.sh: inst_hook() with [0-9]-<name>
Harald Hoyer [Mon, 30 Jul 2012 12:50:14 +0000 (14:50 +0200)]
kernel-modules/module-setup.sh: add missing "fi"
Harald Hoyer [Mon, 30 Jul 2012 12:35:26 +0000 (14:35 +0200)]
set DRACUT_SYSTEMD for systemd mode in the initramfs
Harald Hoyer [Mon, 30 Jul 2012 11:58:58 +0000 (13:58 +0200)]
dracut.spec: add Requires: kbd kbd-misc
Harald Hoyer [Mon, 30 Jul 2012 11:39:37 +0000 (13:39 +0200)]
plymouth/plymouth-newroot.sh: fixed pre-pivot hook
Harald Hoyer [Mon, 30 Jul 2012 11:02:41 +0000 (13:02 +0200)]
dracut.sh: test if we can lazy resolve with ldd
Chao Wang [Mon, 30 Jul 2012 03:56:29 +0000 (11:56 +0800)]
dracut-functions: $_x should exist, no need to test.
Signed-off-by: Chao Wang <chaowang@redhat.com>
Will Woods [Fri, 27 Jul 2012 17:12:29 +0000 (13:12 -0400)]
dracut-lib: add find_mount, use it to implement ismounted
find_mount is really the same thing as ismounted with two additions:
1) uses "readlink" so "ismounted /dev/disk/by-label/LABEL" works
2) returns the mountpoint of the device
And ismounted is now just "find_mount $dev >/dev/null".
Will Woods [Fri, 27 Jul 2012 17:12:28 +0000 (13:12 -0400)]
add comment for getargbool()
I always forget how getargbool works. Add a comment documenting it.
Harald Hoyer [Fri, 27 Jul 2012 14:06:36 +0000 (16:06 +0200)]
dracut.sh: put $drivers and $filesystems back in export
Harald Hoyer [Fri, 27 Jul 2012 14:03:42 +0000 (16:03 +0200)]
kernel-modules/module-setup.sh: move "$drivers" "$filesystems" and "$add_drivers" to dracut.sh
Harald Hoyer [Fri, 27 Jul 2012 14:03:25 +0000 (16:03 +0200)]
TODO: update
Harald Hoyer [Fri, 27 Jul 2012 13:34:54 +0000 (15:34 +0200)]
i18n,terminfo/module-setup.sh: fixed "cp -t" calls
Harald Hoyer [Fri, 27 Jul 2012 13:11:01 +0000 (15:11 +0200)]
add "af_packet" kernel module to network testsuite tests
Harald Hoyer [Fri, 27 Jul 2012 12:15:48 +0000 (14:15 +0200)]
fixed i18n and plymouth for systemd
Harald Hoyer [Fri, 27 Jul 2012 12:11:22 +0000 (14:11 +0200)]
i18n/console_init.sh: skip, if we use systemd and use systemd-vconsole-init
Harald Hoyer [Fri, 27 Jul 2012 10:40:55 +0000 (12:40 +0200)]
cifs/parse-cifsroot.sh: fixed more root/netroot parsing
Harald Hoyer [Fri, 27 Jul 2012 10:18:08 +0000 (12:18 +0200)]
iscsi/iscsiroot.sh: force link initiatorname
Harald Hoyer [Fri, 27 Jul 2012 10:12:09 +0000 (12:12 +0200)]
README.testsuite: add instructions on how to run the testsuite
Harald Hoyer [Fri, 27 Jul 2012 09:55:31 +0000 (11:55 +0200)]
fixed install locations for udev rules and change to IMPORT{builtin}
Harald Hoyer [Fri, 27 Jul 2012 09:54:24 +0000 (11:54 +0200)]
cifs/parse-cifsroot.sh: do not unset netroot, we need it
Amadeusz Żołnowski [Fri, 27 Jul 2012 07:34:17 +0000 (09:34 +0200)]
gitignore install/dracut-install
Amadeusz Żołnowski [Fri, 27 Jul 2012 07:34:32 +0000 (09:34 +0200)]
Makefile: add dependencies for dracut-install (generated with gcc -MM)
Harald Hoyer [Fri, 27 Jul 2012 04:26:26 +0000 (06:26 +0200)]
dracut.spec: add cifs module
Harald Hoyer [Thu, 26 Jul 2012 17:35:12 +0000 (19:35 +0200)]
dracut-functions.sh:inst_rule_programs() fix error messages
Harald Hoyer [Thu, 26 Jul 2012 17:21:06 +0000 (19:21 +0200)]
install/dracut-install.c: convert destrootdir to realpath
otherwise we get strange errors if it ends with a slash and does not
exist.
Harald Hoyer [Thu, 26 Jul 2012 17:12:40 +0000 (19:12 +0200)]
dracut-functions.sh:inst_rule_programs() fixed IMPORT{program}
Amadeusz Żołnowski [Thu, 26 Jul 2012 17:04:30 +0000 (19:04 +0200)]
gentoo.conf: enable ro_mnt
Harald Hoyer [Thu, 26 Jul 2012 16:59:36 +0000 (18:59 +0200)]
plymouth: do not start plymouth via dracut for systemd in the initramfs
Mike Gorse [Thu, 26 Jul 2012 14:17:18 +0000 (09:17 -0500)]
Added cifs
Harald Hoyer [Thu, 26 Jul 2012 16:12:05 +0000 (18:12 +0200)]
nfs/module-setup.sh: check for "rpc.rpc" before running chown
Amadeusz Żołnowski [Thu, 26 Jul 2012 13:58:27 +0000 (15:58 +0200)]
parse-root-opts: first check for ro, later for rw
This order is already in 98usrmount.
Harald Hoyer [Thu, 26 Jul 2012 15:35:25 +0000 (17:35 +0200)]
base/module-setup.sh: removed mount-hook
Harald Hoyer [Thu, 26 Jul 2012 15:26:31 +0000 (17:26 +0200)]
README.testsuite updated with requirements for TEST-04-SYSTEMD
Harald Hoyer [Thu, 26 Jul 2012 15:22:14 +0000 (17:22 +0200)]
mv rootfs-block/module-setup.sh:search_option() in dracut-functions.sh
new function fs_get_option()
Amadeusz Żołnowski [Thu, 26 Jul 2012 14:44:09 +0000 (16:44 +0200)]
ro_mnt - option at build time to force ro mount of / and /usr
Harald Hoyer [Thu, 26 Jul 2012 15:05:24 +0000 (17:05 +0200)]
dracut-functions.sh: corrected usage comment of find_mp_fstype()