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
Leho Kraav [Tue, 24 Jul 2012 12:08:51 +0000 (15:08 +0300)]
90crypt: recognize .img as loop key container
Harald Hoyer [Tue, 24 Jul 2012 12:12:36 +0000 (14:12 +0200)]
get rid of "basename"
Harald Hoyer [Tue, 24 Jul 2012 12:08:32 +0000 (14:08 +0200)]
dracut-functions.sh: small error print correction
Harald Hoyer [Tue, 24 Jul 2012 09:52:28 +0000 (11:52 +0200)]
i18n/10-console.rules: move console_init to the initqueue
Harald Hoyer [Mon, 23 Jul 2012 13:40:20 +0000 (15:40 +0200)]
kernel-modules/module-setup.sh: just optionally install all modprobe.d
Harald Hoyer [Mon, 23 Jul 2012 13:36:58 +0000 (15:36 +0200)]
lvm/lvm_scan.sh: udevadm settle after lvm scan
Harald Hoyer [Mon, 23 Jul 2012 09:38:36 +0000 (11:38 +0200)]
kernel-modules/module-setup.sh: fix modprobe.d install
if /lib/modprobe.d does not exist, it errors with:
find: `/lib/modprobe.d/': No such file or directory
Harald Hoyer [Mon, 23 Jul 2012 09:10:13 +0000 (11:10 +0200)]
add documentation for systemd services in the initramfs
Harald Hoyer [Sat, 21 Jul 2012 11:03:56 +0000 (13:03 +0200)]
dracut.sh: add -N option for --no-hostonly
Harald Hoyer [Sat, 21 Jul 2012 10:55:23 +0000 (12:55 +0200)]
AUTHORS: update
Harald Hoyer [Sat, 21 Jul 2012 10:52:01 +0000 (12:52 +0200)]
dracut.8: add more description about calling dracut
Harald Hoyer [Fri, 20 Jul 2012 12:44:12 +0000 (14:44 +0200)]
resume: move resume in the initqueue/finished hook
this ensures, that resume is called as soon as possible
Harald Hoyer [Fri, 20 Jul 2012 11:11:21 +0000 (13:11 +0200)]
Version 022
Harald Hoyer [Fri, 20 Jul 2012 11:10:58 +0000 (13:10 +0200)]
dracut-functions.sh: fixed host-only kernel module bug
Harald Hoyer [Fri, 20 Jul 2012 09:46:48 +0000 (11:46 +0200)]
Version 021
Harald Hoyer [Fri, 20 Jul 2012 09:34:40 +0000 (11:34 +0200)]
dracut: add option --kver=<kernel-version>
Harald Hoyer [Fri, 20 Jul 2012 09:20:12 +0000 (11:20 +0200)]
testsuite: fixups and color
Harald Hoyer [Fri, 20 Jul 2012 07:11:53 +0000 (09:11 +0200)]
Turn on systemd again and Conflict < systemd-187
Harald Hoyer [Thu, 19 Jul 2012 11:35:50 +0000 (13:35 +0200)]
dracut-functions.sh: set LC_MESSAGES=C not LC_ALL
Harald Hoyer [Thu, 19 Jul 2012 11:34:51 +0000 (13:34 +0200)]
Makefile: set LC_MESSAGES=C ... not LANG
Harald Hoyer [Wed, 18 Jul 2012 13:54:08 +0000 (15:54 +0200)]
systemd/module-setup.sh: removed initctl services
Harald Hoyer [Wed, 18 Jul 2012 12:08:50 +0000 (14:08 +0200)]
systemd/module-setup.sh: removed shutdownd
we don't need timed shutdowns in the initramfs
Harald Hoyer [Tue, 17 Jul 2012 16:05:39 +0000 (18:05 +0200)]
test/TEST-04-FULL-SYSTEMD: add systemd to modules
Harald Hoyer [Tue, 17 Jul 2012 16:04:44 +0000 (18:04 +0200)]
systemd: stop udevd correctly
Harald Hoyer [Tue, 17 Jul 2012 11:05:11 +0000 (13:05 +0200)]
Revert "systemd/dracut-pre-pivot.service: force clean stop of udevd and cleanup-db"
This reverts commit
a43f97c4e35d0d9c7e6e315e11c909e86936e1cc.
Harald Hoyer [Tue, 17 Jul 2012 09:09:51 +0000 (11:09 +0200)]
dracut.conf.d/fedora.conf.example: disable systemd for now
Harald Hoyer [Tue, 17 Jul 2012 09:09:17 +0000 (11:09 +0200)]
systemd/initrd-switch-root.service: call switch-root with --no-block
Harald Hoyer [Tue, 17 Jul 2012 09:06:25 +0000 (11:06 +0200)]
systemd/dracut-pre-pivot.service: force clean stop of udevd and cleanup-db
Milan Broz [Mon, 16 Jul 2012 14:28:47 +0000 (16:28 +0200)]
Fix fips module list.
If dracut is build only with fips/fips-aesni (no crypto module),
FIPS mode fails because of missing GCM modules.
Just add proper modules to list (kernel have both maker as FIPS compliant already).
Signed-off-by: Milan Broz <mbroz@redhat.com>
Harald Hoyer [Mon, 16 Jul 2012 10:21:56 +0000 (12:21 +0200)]
dracut-functions.sh: output more info, if dependency modules are omitted
Harald Hoyer [Mon, 16 Jul 2012 08:33:27 +0000 (10:33 +0200)]
dracut.spec: add suse version ifdefs
Harald Hoyer [Mon, 16 Jul 2012 08:13:53 +0000 (10:13 +0200)]
Fixes for systemd-187, which does the right thing for switch-root
Harald Hoyer [Thu, 12 Jul 2012 08:20:28 +0000 (10:20 +0200)]
kernel-modules/module-setup.sh: add hid_generic to kernel modules
Harald Hoyer [Thu, 12 Jul 2012 06:59:43 +0000 (08:59 +0200)]
test/TEST-04-FULL-SYSTEMD: default to basic.target and output more debug
Harald Hoyer [Thu, 12 Jul 2012 06:56:36 +0000 (08:56 +0200)]
systemd/service-to-run.sh: do not copy the target subdirs
Harald Hoyer [Thu, 12 Jul 2012 06:56:17 +0000 (08:56 +0200)]
systemd/initrd-switch-root.service: add some more dependencies
Harald Hoyer [Thu, 12 Jul 2012 05:01:27 +0000 (07:01 +0200)]
watchdog/watchdog-stop.sh: forgot to add script
Harald Hoyer [Wed, 11 Jul 2012 14:36:05 +0000 (16:36 +0200)]
systemd/initrd-switch-root.service: add back "--force" to switch-root
otherwise systemd does umount /run et.al.
Harald Hoyer [Wed, 11 Jul 2012 13:47:10 +0000 (15:47 +0200)]
install/dracut-install.c: check for empty or "/" destdir
Harald Hoyer [Wed, 11 Jul 2012 13:25:49 +0000 (15:25 +0200)]
dracut.sh: for --include copy also the symbolic links
Harald Hoyer [Wed, 11 Jul 2012 13:25:30 +0000 (15:25 +0200)]
systemd: fixed initrd-switch-root.service
Harald Hoyer [Wed, 11 Jul 2012 13:23:21 +0000 (15:23 +0200)]
test: silence "make all"
Harald Hoyer [Wed, 11 Jul 2012 13:15:41 +0000 (15:15 +0200)]
test/TEST-04-FULL-SYSTEMD: full test with systemd and /usr mount
Harald Hoyer [Wed, 11 Jul 2012 08:00:10 +0000 (10:00 +0200)]
dracut-shutdown.service: s/reboot.service/systemd-reboot.service/
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.