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()
Harald Hoyer [Thu, 26 Jul 2012 15:00:47 +0000 (17:00 +0200)]
rootfs-block/module-setup.sh: add support for xfs / reiserfs separate journal device
xfs and reiserfs (among other) supports storing journal data to a
separate device. Unfortunately, XFS requires this information to boot
properly (reiserfs can embed the information in its metadata but you
might want to override it).
Frederic Crozat <fcrozat@suse.com>
Harald Hoyer [Thu, 26 Jul 2012 15:00:07 +0000 (17:00 +0200)]
dracut-functions.sh: add find_mp_fstype()
Frederic Crozat [Thu, 26 Jul 2012 13:16:22 +0000 (15:16 +0200)]
PATCH: add support for xfs / reiserfs separate journal device
xfs and reiserfs (among other) supports storing journal data to a
separate device. Unfortunately, XFS requires this information to boot
properly (reiserfs can embed the information in its metadata but you
might want to override it).
Attached patch ensure host information are stored in initramfs and also
allows to give data over kernel commandline.
--
Frederic Crozat <fcrozat@suse.com>
SUSE
>From
a7c592b9bb7de0d7874ae51d02944a7eee2ec75b Mon Sep 17 00:00:00 2001
From: Frederic Crozat <fcrozat@suse.com>
Date: Tue, 24 Jul 2012 18:52:17 +0200
Subject: [PATCH] Add support for separate journal on reiserfs and xfs
Amadeusz Żołnowski [Thu, 26 Jul 2012 13:05:27 +0000 (15:05 +0200)]
modules.d/99base/mount-hook.sh is not used - removed
Amadeusz Żołnowski [Thu, 26 Jul 2012 13:05:26 +0000 (15:05 +0200)]
apply "ro" and "rw" options from cmdline to / mount
rflags is no longer guaranteed to be non empty. / is mounted according
to rootflags parameter but forced ro at first. Later it is remounted
according to /etc/fstab + rootflags parameter and "ro"/"rw". If
parameters are still the same as for first mount, / isn't remounted.
Conflicts:
modules.d/95rootfs-block/mount-root.sh
modules.d/99base/parse-root-opts.sh
Amadeusz Żołnowski [Thu, 26 Jul 2012 13:05:25 +0000 (15:05 +0200)]
dracut-lib: new functions: listlist and are_lists_eq
listlist is like strstr for lists with specified separator and
are_lists_eq uses listlist to check equality of specified lists.
Amadeusz Żołnowski [Thu, 26 Jul 2012 13:05:24 +0000 (15:05 +0200)]
98usrmount: [ "x$_usr_found" != "x" ] - removed redundant 'x'
Amadeusz Żołnowski [Thu, 26 Jul 2012 13:05:23 +0000 (15:05 +0200)]
98usrmount: print mount options
Amadeusz Żołnowski [Thu, 26 Jul 2012 13:05:22 +0000 (15:05 +0200)]
98usrmount: use rw and ro options instead of rd.usrmount.ro
In result /usr is forced to be mounted ro or rw along with /.
Amadeusz Żołnowski [Thu, 26 Jul 2012 13:05:21 +0000 (15:05 +0200)]
95rootfs-block: fix left fsck rel. checks
Harald Hoyer [Thu, 26 Jul 2012 12:23:31 +0000 (14:23 +0200)]
systemd/dracut-cmdline.sh: output dracut version
Harald Hoyer [Thu, 26 Jul 2012 10:27:29 +0000 (12:27 +0200)]
Makefile: use symlink for topsrcdir/dracut-install
Harald Hoyer [Thu, 26 Jul 2012 10:43:20 +0000 (12:43 +0200)]
multipath/module-setup.sh: add dm dependency
Harald Hoyer [Thu, 26 Jul 2012 09:50:50 +0000 (11:50 +0200)]
Makefile: fixed dracut-install make target
Amadeusz Żołnowski [Thu, 26 Jul 2012 09:38:04 +0000 (11:38 +0200)]
90multipath: added kpartx.rules; multipath.rules - different prefix
Cong Wang [Thu, 26 Jul 2012 07:39:13 +0000 (15:39 +0800)]
90kernel-modules: remove unused variables in install()
The local variables in install() are unused, can be removed.
Cc: Harald Hoyer <harald@redhat.com>
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
Amadeusz Żołnowski [Thu, 26 Jul 2012 07:35:58 +0000 (09:35 +0200)]
gentoo.conf: set udevdir
Amadeusz Żołnowski [Thu, 26 Jul 2012 07:35:57 +0000 (09:35 +0200)]
Config file for systemd on Gentoo.
Amadeusz Żołnowski [Thu, 26 Jul 2012 07:35:56 +0000 (09:35 +0200)]
Remove obsolete gentoo conf file.
Harald Hoyer [Thu, 26 Jul 2012 07:25:28 +0000 (09:25 +0200)]
dmsquash-live: do not eject medium for live_ram
Chao Wang [Thu, 26 Jul 2012 03:24:26 +0000 (11:24 +0800)]
90multipath: check() - Regexp fix to match multipath partition.
A multipath partition's uuid will be presented like:
# cat /sys/dev/block/$_dev/dm/uuid
part1-mpath-
360060e801047103004f2c4b300000008
So in this case, change the match regexp from '^mpath-' to 'mpath-'.
Signed-off-by: Chao Wang <chaowang@redhat.com>
Chao Wang [Thu, 26 Jul 2012 03:24:25 +0000 (11:24 +0800)]
95fstab-sys: Skip mounted filesystem.
Signed-off-by: Chao Wang <chaowang@redhat.com>
Amadeusz Żołnowski [Wed, 25 Jul 2012 20:08:23 +0000 (22:08 +0200)]
Makefile: use implicit rules for install/dracut-install
Don't fail on install rule if install/dracut-install is not build - just
skip it. $(strip) is not used by install rule, because it is nowhere
set.
Amadeusz Żołnowski [Wed, 25 Jul 2012 20:08:22 +0000 (22:08 +0200)]
Remove object file from repo: install/hashmap.o
Harald Hoyer [Wed, 25 Jul 2012 14:03:49 +0000 (16:03 +0200)]
qemu*/module-setup.sh: provide alternative for systemd-detect-virt
Harald Hoyer [Wed, 25 Jul 2012 13:20:37 +0000 (15:20 +0200)]
TODO: update
Harald Hoyer [Wed, 25 Jul 2012 13:20:22 +0000 (15:20 +0200)]
Makefile: honor CFLAGS
Harald Hoyer [Wed, 25 Jul 2012 12:56:08 +0000 (14:56 +0200)]
network/module-setup.sh: instmods af_packet
Harald Hoyer [Wed, 25 Jul 2012 12:53:23 +0000 (14:53 +0200)]
dracut.asc: add doc about journalctl
Harald Hoyer [Wed, 25 Jul 2012 12:52:25 +0000 (14:52 +0200)]
iscsiroot.sh: do not source /etc/conf.d
this should have been done already.
Harald Hoyer [Wed, 25 Jul 2012 11:00:08 +0000 (13:00 +0200)]
require kpartx and partx for some modules
Harald Hoyer [Wed, 25 Jul 2012 08:32:42 +0000 (10:32 +0200)]
deprecate old command line options
Leho Kraav [Tue, 24 Jul 2012 12:08:55 +0000 (15:08 +0300)]
91crypt-loop: replace basename calls with string matching
Leho Kraav [Tue, 24 Jul 2012 12:08:54 +0000 (15:08 +0300)]
91crypt-loop: use initqueue for cleanup strategy
Leho Kraav [Tue, 24 Jul 2012 12:08:53 +0000 (15:08 +0300)]
91crypt-loop: open root device with a key inside encrypted loop container
Leho Kraav [Tue, 24 Jul 2012 12:08:52 +0000 (15:08 +0300)]
90crypt: enhance crypt-lib keydev mounting
Combining $keydev and $keypath should result in a unique, re-usable keydev
mountpoint. mkuniqdir doesn't seem to have any an advantage here and lacks
reusability. Is there ever a use case where these are true:
* there are more than one rd.luks.key=$keypath:$keydev
* one is actually different from the other