Harald Hoyer [Wed, 11 Jul 2012 07:33:32 +0000 (09:33 +0200)]
test: add support for: make V=1 TESTS="01 20 40" check
$ sudo make V=1 clean check
now runs the testsuite in verbose mode
$ sudo make TESTS="01 20 40" clean check
now only runs the 01, 20 and 40 tests.
Dave Young [Wed, 11 Jul 2012 05:08:18 +0000 (13:08 +0800)]
nfs: install modprobe config file
install nfs modprobe config file
For nfs4, in case nfs.ko is not loaded mount.nfs4 will try to load
nfs4.ko instead of nfs.ko. Fedora nfs-utils creates a lib/modprobe.d/nfs.conf
in which there's below alias:
alias nfs4 nfs
Dracut also need this file to auto load nfs kernel module.
Tested booting to a fedora 17 nfsroot share.
Signed-off-by: Dave Young <dyoung@redhat.com>
Harald Hoyer [Wed, 11 Jul 2012 06:42:21 +0000 (08:42 +0200)]
kernel-modules/module-setup.sh: also install /lib/modprobe.d/*.conf
In theory we should only install /lib/modprobe.d/*.conf and only for
host-only the /etc/modprobe.d.
Harald Hoyer [Wed, 11 Jul 2012 06:41:31 +0000 (08:41 +0200)]
systemd/initrd-switch-root.target: add ConditionPathExist
Harald Hoyer [Wed, 11 Jul 2012 06:40:45 +0000 (08:40 +0200)]
test/*/server-init.sh: redirect stdin,out,err to /dev/console
Harald Hoyer [Tue, 10 Jul 2012 14:20:23 +0000 (16:20 +0200)]
systemd: install all dracut units in /etc and let the generator cp to /run
All custom units, which should appear in the system later on should be
installed in /etc/systemd. They should have a guard like:
ConditionPathExists=/etc/initrd-release
So, we can later query via systemctl:
$ systemctl status dracut-initqueue.service
dracut-initqueue.service - Dracut initqueue hook
Loaded: loaded (/run/systemd/system/dracut-initqueue.service; enabled-runtime)
Active: inactive (dead) since Tue, 10 Jul 2012 16:01:22 +0200; 1min 37s ago
start condition failed at Tue, 10 Jul 2012 16:01:23 +0200; 1min 36s ago
Main PID: 173 (code=exited, status=0/SUCCESS)
CGroup: name=systemd:/system/dracut-initqueue.service
Jul 10 16:01:22 lenovo dracut-initqueue[173]: Checking, if btrfs device complete
Jul 10 16:01:22 lenovo dracut-initqueue[173]: Remounting /dev/disk/by-uuid/
ade13292-d23f-45be-b732-
fa9a391a56b0 with -o compress=lzo,ssd,rw
Jul 10 16:01:22 lenovo dracut-initqueue[173]: Mounted root filesystem /dev/sda3
Harald Hoyer [Tue, 10 Jul 2012 14:19:56 +0000 (16:19 +0200)]
systemd/initrd-switch-root.service: stop journald, rather than restart
Harald Hoyer [Tue, 10 Jul 2012 08:53:28 +0000 (10:53 +0200)]
install/dracut-install.c: redirect stderr to stdout and skip loader
skip if ldd was run on the loader
Harald Hoyer [Tue, 10 Jul 2012 08:32:43 +0000 (10:32 +0200)]
TEST-01-BASIC: enable selinux
Harald Hoyer [Tue, 10 Jul 2012 07:17:48 +0000 (09:17 +0200)]
TEST-01-BASIC: turn on systemd debugging
Harald Hoyer [Mon, 9 Jul 2012 18:49:24 +0000 (20:49 +0200)]
plymouth: add plymouth-wait-quit.service to initrd
Harald Hoyer [Mon, 9 Jul 2012 18:46:20 +0000 (20:46 +0200)]
systemd service cleanup
Harald Hoyer [Mon, 9 Jul 2012 18:44:48 +0000 (20:44 +0200)]
TEST-99-RPM test trap
Harald Hoyer [Mon, 9 Jul 2012 15:06:51 +0000 (17:06 +0200)]
resume: move resume process to initqueue
Harald Hoyer [Mon, 9 Jul 2012 14:28:47 +0000 (16:28 +0200)]
test: new test TEST-99-RPM
This test installs the dracut rpm together with the kernel in an
installroot. rpm -Va and rpm -qf are used, to ensure nothing modified
files in the real root.
Harald Hoyer [Mon, 9 Jul 2012 13:30:15 +0000 (15:30 +0200)]
test: export initdir
Colin Guthrie [Sat, 7 Jul 2012 15:48:01 +0000 (16:48 +0100)]
plymouth: Use latest plymouth's populate script.
The latest plymouth no longer relies on dracut to provide functions
needed to install binaries/libs so the check for a variable name
no longer works and the old, built-in script is used instead thus
breaking the new drm and framebuffer plymouth module installation.
Harald Hoyer [Mon, 9 Jul 2012 10:41:56 +0000 (12:41 +0200)]
Makefile: do not install service from 98systemd. They are copied to /run
Dave Young [Mon, 9 Jul 2012 06:56:35 +0000 (14:56 +0800)]
dhclient initqueue hook fix
dhclient initqueue hook fix
setup_net is scheduled in initqueue, sometimes it does not get chance to run
So the default route will not be set properly
Add a check in initqueue/finished to resolve this issue.
Signed-off-by: Dave Young <dyoung@redhat.com>
Dave Young [Mon, 9 Jul 2012 06:57:11 +0000 (14:57 +0800)]
02caps: do not create /bin/sh link
02caps: do not create /bin/sh link
caps.sh use !/bin/bash explictly, so no need to ln -sf bash /bin/sh
OTOH, 00dash will create the symlink /bin/sh, 99base will create it if
there's no /bin/sh symlink. It looks bad to creat /bin/sh in other modules.
If a script want to use bash as command interpreter it should use !/bin/bash
or !/bin/sh in case dash is not installed.
Signed-off-by: Dave Young <dyoung@redhat.com>
Harald Hoyer [Mon, 9 Jul 2012 08:16:33 +0000 (10:16 +0200)]
TEST-30-ISCSI: convert to ext3
Harald Hoyer [Mon, 9 Jul 2012 08:12:04 +0000 (10:12 +0200)]
systemd-udev-trigger.service and systemd-udev-settle.service have no "d"
Harald Hoyer [Mon, 9 Jul 2012 08:04:35 +0000 (10:04 +0200)]
require systemd >= 186
Harald Hoyer [Mon, 9 Jul 2012 08:02:35 +0000 (10:02 +0200)]
dracut.sh: corrected error messages, if mktemp failed
Harald Hoyer [Mon, 9 Jul 2012 08:02:04 +0000 (10:02 +0200)]
dracut-functions.sh: bail out, if $initdir is not set
Harald Hoyer [Mon, 9 Jul 2012 06:21:00 +0000 (08:21 +0200)]
dracut.conf.d/fedora.conf.example: removed readonly from prefix
Harald Hoyer [Fri, 6 Jul 2012 12:33:53 +0000 (14:33 +0200)]
systemd/module-setup.sh: also include systemd-udevd* units
systemd-udev* was renamed to systemd-udevd*
Harald Hoyer [Fri, 6 Jul 2012 12:22:10 +0000 (14:22 +0200)]
dracut.spec,dracut.conf.d/fedora.conf.example: no dash
hard remove dash from supported modules
we do not want to have anything to do with dash bugs
Harald Hoyer [Fri, 6 Jul 2012 12:06:05 +0000 (14:06 +0200)]
fixed bash/sh requirements
Harald Hoyer [Fri, 6 Jul 2012 11:49:03 +0000 (13:49 +0200)]
systemd: check, that --prefix= does not contain /run
systemd will mount /run before dracut has a chance to copy over the
original content.
Harald Hoyer [Fri, 6 Jul 2012 11:48:05 +0000 (13:48 +0200)]
dracut.sh: keep vim syntax highlighting happy
Harald Hoyer [Fri, 6 Jul 2012 10:57:17 +0000 (12:57 +0200)]
network/ifname-genrules.sh: check for multiple ifname= lines
Harald Hoyer [Fri, 6 Jul 2012 10:42:06 +0000 (12:42 +0200)]
mkinitrd.8.asc: mark paragraph as important
Harald Hoyer [Fri, 6 Jul 2012 10:31:31 +0000 (12:31 +0200)]
network: do not rename other interfaces and document the ifname usage
We do not support renaming in the kernel namespace anymore (as udev does
that not anymore). So, if a user wants to use ifname, he has to rename
to a custom namespace. "eth[0-9]+" is not allowed anymore.
Harald Hoyer [Fri, 6 Jul 2012 10:30:50 +0000 (12:30 +0200)]
dracut.cmdline.7.asc: fixup
Harald Hoyer [Fri, 6 Jul 2012 10:30:03 +0000 (12:30 +0200)]
dracut.8.asc: fixup NOTE sections
Harald Hoyer [Fri, 6 Jul 2012 10:29:44 +0000 (12:29 +0200)]
dracut.asc: add lsinitrd and mkinitrd
Harald Hoyer [Fri, 6 Jul 2012 10:28:17 +0000 (12:28 +0200)]
systemd: exit with sane state
Harald Hoyer [Thu, 5 Jul 2012 10:54:13 +0000 (12:54 +0200)]
network: factor out parse_ifname_opts() for ifname-genrules
Harald Hoyer [Thu, 5 Jul 2012 12:30:45 +0000 (14:30 +0200)]
install user/group adm for journal
Harald Hoyer [Thu, 5 Jul 2012 08:42:22 +0000 (10:42 +0200)]
fips: add instmods silent check mode "-c -s"
Harald Hoyer [Thu, 5 Jul 2012 08:28:56 +0000 (10:28 +0200)]
i18n/module-setup.sh: s/error/info if no keymap is configured
https://bugzilla.redhat.com/show_bug.cgi?id=836418
Harald Hoyer [Thu, 5 Jul 2012 08:11:27 +0000 (10:11 +0200)]
fips: change module list
Harald Hoyer [Thu, 5 Jul 2012 04:57:11 +0000 (06:57 +0200)]
Makefile: mkinitrd man page install typo
Harald Hoyer [Tue, 3 Jul 2012 16:24:21 +0000 (18:24 +0200)]
lsinitrd.sh: fixed version file extraction
Harald Hoyer [Tue, 3 Jul 2012 16:23:59 +0000 (18:23 +0200)]
lsinitrd.sh: get rid of awk call
Harald Hoyer [Tue, 3 Jul 2012 16:23:27 +0000 (18:23 +0200)]
lsinitrd.sh: print usage for -?, -h
Harald Hoyer [Tue, 3 Jul 2012 16:22:29 +0000 (18:22 +0200)]
TEST-30-ISCSI: put back in hard-off.sh for tests
Harald Hoyer [Tue, 3 Jul 2012 16:21:54 +0000 (18:21 +0200)]
TEST-03-USR-MOUNT: change test to use a seperate disk
Harald Hoyer [Tue, 3 Jul 2012 16:20:46 +0000 (18:20 +0200)]
usrmount/mount-usr.sh: check the right path with ismounted
Harald Hoyer [Tue, 3 Jul 2012 12:20:51 +0000 (14:20 +0200)]
dracut.sh: use getopt to parse arguments
now we can put options and arguments anywhere we like.
e.g.
$ dracut test.img --force
Harald Hoyer [Tue, 3 Jul 2012 12:20:14 +0000 (14:20 +0200)]
manpages: simplify AUTHORS
Harald Hoyer [Tue, 3 Jul 2012 12:18:55 +0000 (14:18 +0200)]
add lsinitrd and mkinitrd man pages
Harald Hoyer [Tue, 3 Jul 2012 11:14:12 +0000 (13:14 +0200)]
base/init.sh: error out early, if /dev, /proc or /sys cannot be mounted
Harald Hoyer [Mon, 2 Jul 2012 20:51:24 +0000 (22:51 +0200)]
dracut-functions.sh:find_kernel_modules_by_path() fixed hostonly part
filter /sys/module/* modules by path
Harald Hoyer [Mon, 2 Jul 2012 20:14:49 +0000 (22:14 +0200)]
dracut-functions.sh: forgot --set-version $kernel for modprobe
Harald Hoyer [Mon, 2 Jul 2012 16:51:20 +0000 (18:51 +0200)]
usrmount/mount-usr.sh: give emergency_shell if /usr mount failed
Harald Hoyer [Mon, 2 Jul 2012 16:46:48 +0000 (18:46 +0200)]
dracut-install.c: for lazy install shebangs, do not check for existence
Harald Hoyer [Sat, 30 Jun 2012 10:46:55 +0000 (12:46 +0200)]
dracut-functions.sh: create $initdir, if it does not exist
Harald Hoyer [Sat, 30 Jun 2012 10:17:34 +0000 (12:17 +0200)]
TEST-02-SYSTEMD: enlarge the root disk
Harald Hoyer [Sat, 30 Jun 2012 10:15:42 +0000 (12:15 +0200)]
rootfs-block/mount-root.sh: warn if ro mount failed and remount
remount the root filesystem, if it was not unmounted
Harald Hoyer [Sat, 30 Jun 2012 10:15:04 +0000 (12:15 +0200)]
fs-lib/fs-lib.sh: skip fsck for xfs and btrfs. remount is enough
Harald Hoyer [Sat, 30 Jun 2012 10:14:12 +0000 (12:14 +0200)]
TEST-01-BASIC: grow the root disk
Harald Hoyer [Sat, 30 Jun 2012 09:38:24 +0000 (11:38 +0200)]
new testsuite test TEST-03-USR-MOUNT
mounts /usr as a btrfs subvolume and should respect "rw" and "ro" kernel
command line arguments properly.
Harald Hoyer [Sat, 30 Jun 2012 09:34:46 +0000 (11:34 +0200)]
add "--hardlink" "--nohardlink" options
Harald Hoyer [Sat, 30 Jun 2012 09:34:13 +0000 (11:34 +0200)]
dracut-functions.sh,dracut.sh: use xargs with "-r"
Harald Hoyer [Sat, 30 Jun 2012 09:33:19 +0000 (11:33 +0200)]
dracut.sh: do not lazy resolve "include" directories
Harald Hoyer [Sat, 30 Jun 2012 09:31:38 +0000 (11:31 +0200)]
dracut-install.c: give info that SOURCE argument is missing
Harald Hoyer [Sat, 30 Jun 2012 09:29:30 +0000 (11:29 +0200)]
do not umount root, remount it. do not mount ro if not specified
also mount /usr readonly if "ro" is specified on the command line
if /usr is a btrfs subvolume of root, use the same mount options
Harald Hoyer [Sat, 30 Jun 2012 09:27:36 +0000 (11:27 +0200)]
dracut-functions.sh: set LC_ALL=C to get correct parsing information
Amadeusz Żołnowski [Fri, 29 Jun 2012 11:58:21 +0000 (13:58 +0200)]
95rootfs-block: skip checks rel. to fsck if rd.skipfsck is supplied
Amadeusz Żołnowski [Fri, 29 Jun 2012 11:58:20 +0000 (13:58 +0200)]
new option: rd.skipfsck to skip fsck for rootfs and /usr
Amadeusz Żołnowski [Fri, 29 Jun 2012 11:58:19 +0000 (13:58 +0200)]
99base: don't require fs-lib to detect rootfstype
If fs-lib is not included, no rootfs autodetection is performed.
Amadeusz Żołnowski [Fri, 29 Jun 2012 11:58:18 +0000 (13:58 +0200)]
98usrmount: force mounting /usr read-only option (rd.usrmount.ro)
Harald Hoyer [Sat, 30 Jun 2012 07:12:35 +0000 (09:12 +0200)]
move dracut-install to dracutbasedir
We do not want to install dracut-install to /usr/bin until all
interfaces are set to stone and the manpage is written. Until then the
tool is dracut internal.
Harald Hoyer [Sat, 30 Jun 2012 07:06:13 +0000 (09:06 +0200)]
dracut-install.c: try clone ioctl for more speed
Harald Hoyer [Fri, 29 Jun 2012 10:49:12 +0000 (12:49 +0200)]
Version 020
Harald Hoyer [Fri, 29 Jun 2012 10:07:44 +0000 (12:07 +0200)]
Use /usr/bin/dracut-install if available
/usr/bin/dracut-install greatly improves initramfs creation speed
Harald Hoyer [Fri, 29 Jun 2012 10:04:30 +0000 (12:04 +0200)]
dracut-functions.sh: grep for "--relative" for the ln_r() check
Harald Hoyer [Fri, 29 Jun 2012 09:59:09 +0000 (11:59 +0200)]
install/*: add dracut-install tool
Harald Hoyer [Fri, 29 Jun 2012 09:57:02 +0000 (11:57 +0200)]
TEST-40-NBD: add watchdog
Harald Hoyer [Wed, 27 Jun 2012 15:11:07 +0000 (17:11 +0200)]
testsuite: fixups
Harald Hoyer [Wed, 27 Jun 2012 15:08:19 +0000 (17:08 +0200)]
TEST-20-NFS: trigger watchdog more often
Harald Hoyer [Wed, 27 Jun 2012 15:06:23 +0000 (17:06 +0200)]
watchdog: stop watchdog in emergency_shell
Harald Hoyer [Wed, 27 Jun 2012 15:04:27 +0000 (17:04 +0200)]
kernel-modules: no need to install modules.dep et.al.
dracut_kernel_post() does it all
Harald Hoyer [Wed, 27 Jun 2012 15:03:58 +0000 (17:03 +0200)]
watchdog: call watchdog more often
Harald Hoyer [Wed, 27 Jun 2012 15:02:49 +0000 (17:02 +0200)]
dracut.sh, dracut-functions.sh: add dracut_kernel_post()
dracut_kernel_post() does lazy kernel module dependency installation,
depmod and cleans up temporary files
Harald Hoyer [Wed, 27 Jun 2012 15:00:54 +0000 (17:00 +0200)]
fips/module-setup.sh: s/aes-xts/xts
Harald Hoyer [Wed, 27 Jun 2012 12:19:16 +0000 (14:19 +0200)]
test/*/test.sh: correct ifup and dhclient paths
Harald Hoyer [Wed, 27 Jun 2012 12:18:21 +0000 (14:18 +0200)]
dracut-functions.sh: error out, if $initdir is not set
Harald Hoyer [Wed, 27 Jun 2012 12:17:46 +0000 (14:17 +0200)]
dracut.sh: set $initdir early before sourcing dracut-functions.sh
Harald Hoyer [Wed, 27 Jun 2012 12:16:32 +0000 (14:16 +0200)]
modules.d: get rid of "tr"
replace it with sed or str_replace or bash ${var/a/b}
Harald Hoyer [Wed, 27 Jun 2012 08:50:57 +0000 (10:50 +0200)]
dracut-functions: inst(),inst_binary() fixed inst_symlink call
Harald Hoyer [Wed, 27 Jun 2012 07:38:26 +0000 (09:38 +0200)]
dracut-functions.sh:inst_libdir_files() combine installs
first, search for all files, then call dracut_install only once
Harald Hoyer [Wed, 27 Jun 2012 07:35:39 +0000 (09:35 +0200)]
dracut.sh, dracut-functions.sh: do lazy kernel module dep resolving
First, we just install the kernel module and keep track, what we
installed. At the very end, call modprobe and modinfo for firmwares to
resolve all kernel module dependencies. This speeds up image creation,
because we can call modprobe and modinfo with many modules.
Harald Hoyer [Wed, 27 Jun 2012 07:34:30 +0000 (09:34 +0200)]
fcoe/module-setup.sh: check() for needed tools
Harald Hoyer [Wed, 27 Jun 2012 07:32:22 +0000 (09:32 +0200)]
modules.d/*/module-setup.sh: combine and specify type for installs
To speedup image creation, combine dracut_install calls and specify the exact type.
E.g. inst_script instead of the generic inst.
Srinivasa T N [Wed, 27 Jun 2012 05:59:13 +0000 (11:29 +0530)]
Fixed BOOTIF for converting mac addr to lowercase
The patch,
acfab373 - Handle upper case MAC addresses in ifname
option,takes care of only the MAC conversion to lower case in the
interface name. But the same has to be taken care for BOOTIF also.
This patch takes care of changing the BOOTIF to lower case.
Note that sed has been used in the patch instead of tr, as it is not
compulsion to install tr by dracut in the initramfs and may not be
available always.
Signed-off-by: Srinivasa T N (seenutn@linux.vnet.ibm.com)
>From
2ec9c91adbf808dbad9bdd2057d9df55a62b711f Mon Sep 17 00:00:00 2001
From: Srinivasa T N <seenutn@linux.vnet.ibm.com>
Date: Wed, 27 Jun 2012 11:20:13 +0530
Subject: [PATCH] Fixed BOOTIF for converting mac addr to lowercase
Amadeusz Żołnowski [Mon, 25 Jun 2012 16:32:03 +0000 (18:32 +0200)]
90dmsquash-live: don't source fs-lib.sh as it is not used
Amadeusz Żołnowski [Mon, 25 Jun 2012 16:32:02 +0000 (18:32 +0200)]
dracut-lib.sh: Use "$*" instead of "$@" in warn, info, and so on...
"$@" might cause some uneccessary word breaking.