Harald Hoyer [Wed, 6 Mar 2013 16:15:10 +0000 (17:15 +0100)]
testsuite fixup
Harald Hoyer [Wed, 6 Mar 2013 16:11:50 +0000 (17:11 +0100)]
base: save host_devs which we need bring up and process them with wait_for_dev
Harald Hoyer [Wed, 6 Mar 2013 16:10:50 +0000 (17:10 +0100)]
base: in systemd mode parse-root-opts.sh is in the services
Harald Hoyer [Wed, 6 Mar 2013 16:10:15 +0000 (17:10 +0100)]
base/dracut-lib.sh: reset /etc/profile
Harald Hoyer [Wed, 6 Mar 2013 16:09:24 +0000 (17:09 +0100)]
base/init.sh: reset main loop counter, if work is in initqueue
Harald Hoyer [Wed, 6 Mar 2013 16:08:49 +0000 (17:08 +0100)]
base/dracut-lib.sh: extend wait_for_dev() for systemd
Harald Hoyer [Wed, 6 Mar 2013 16:07:45 +0000 (17:07 +0100)]
rootfs-block/parse-block.sh: wait_for_dev
Harald Hoyer [Wed, 6 Mar 2013 16:06:15 +0000 (17:06 +0100)]
usrmount: in systemd mode, functionality is in systemd
Harald Hoyer [Wed, 6 Mar 2013 16:04:57 +0000 (17:04 +0100)]
iscsi, nbd: call write_fs_tab() and write /etc/fstab
Harald Hoyer [Wed, 6 Mar 2013 16:04:00 +0000 (17:04 +0100)]
rootfs-block: in systemd mode, functionality is in the dracut services
Harald Hoyer [Wed, 6 Mar 2013 16:02:49 +0000 (17:02 +0100)]
resume: generate rules already in parse-resume.sh
Harald Hoyer [Wed, 6 Mar 2013 16:00:53 +0000 (17:00 +0100)]
resume: in systemd mode move functionality in the dracut services
Harald Hoyer [Wed, 6 Mar 2013 15:58:11 +0000 (16:58 +0100)]
nfs/nfsroot.sh: trigger nfs mount with cat'ing /etc/fstab
otherwise the whole nfs communication can take too long for the
systemd-fstab-generator
Harald Hoyer [Wed, 6 Mar 2013 15:43:49 +0000 (16:43 +0100)]
kernel-modules: handle rd.driver.* in systemd mode in dracut-pre-udev
Harald Hoyer [Wed, 6 Mar 2013 15:40:53 +0000 (16:40 +0100)]
dracut_need_initqueue
Harald Hoyer [Wed, 6 Mar 2013 15:38:59 +0000 (16:38 +0100)]
fs-lib/fs-lib.sh: add write_fs_tab()
Harald Hoyer [Wed, 6 Mar 2013 15:25:31 +0000 (16:25 +0100)]
crypt/parse-crypt.sh: don't generate luks rules in systemd mode
Harald Hoyer [Wed, 6 Mar 2013 15:23:58 +0000 (16:23 +0100)]
btrfs: no need for btrfs_timeout in systemd mode
Harald Hoyer [Wed, 6 Mar 2013 15:22:42 +0000 (16:22 +0100)]
crypt: do not cleanup in systemd mode
Harald Hoyer [Wed, 6 Mar 2013 15:20:51 +0000 (16:20 +0100)]
network/netroot.sh: remove the dhcp finished hook, if we have a handler
Harald Hoyer [Wed, 6 Mar 2013 15:20:25 +0000 (16:20 +0100)]
i18n: no manual setup needed if systemd is in the game
Harald Hoyer [Wed, 6 Mar 2013 15:19:29 +0000 (16:19 +0100)]
systemd: changes for new initrd services
Requires systemd >= 198
Harald Hoyer [Wed, 6 Mar 2013 15:00:11 +0000 (16:00 +0100)]
dracut-functions.sh: add dracut_need_initqueue() dracut_module_included()
for all rules files, which reference initqueue also call
dracut_need_initqueue()
Harald Hoyer [Sat, 2 Mar 2013 12:24:21 +0000 (13:24 +0100)]
test: make testsuite work with systemd
Harald Hoyer [Sat, 2 Mar 2013 12:22:29 +0000 (13:22 +0100)]
test: removed unused cryptroot-ask.sh scripts
Harald Hoyer [Sat, 2 Mar 2013 12:20:59 +0000 (13:20 +0100)]
test: add finished-false.sh for create-root.sh initqueue job
Harald Hoyer [Sat, 2 Mar 2013 12:15:21 +0000 (13:15 +0100)]
reset initqueue loop counter only if new uevents exist
Harald Hoyer [Sat, 2 Mar 2013 12:11:38 +0000 (13:11 +0100)]
resume: move resume hook from mount to pre-mount
Harald Hoyer [Sat, 2 Mar 2013 12:10:57 +0000 (13:10 +0100)]
mdraid/mdraid_start.sh: remove mdmon workaround
Harald Hoyer [Sat, 2 Mar 2013 12:10:04 +0000 (13:10 +0100)]
btrfs/btrfs_timeout.sh: do not "exit 0"
Harald Hoyer [Thu, 21 Feb 2013 16:17:34 +0000 (17:17 +0100)]
btrfs: Use upstream 64-btrfs.rules
Lars R. Damerow [Thu, 21 Feb 2013 21:40:23 +0000 (13:40 -0800)]
dracut: write initramfs to temp file then move into place
We've been finding cases where multiple instances of dracut can be launched
simultaneously, resulting in a corrupted initramfs file. This patch makes
dracut write the initramfs to a new file, then move it into place atomically.
Harald Hoyer [Thu, 21 Feb 2013 11:18:21 +0000 (12:18 +0100)]
systemd: change path of switch-root.conf
we do not have to clean it up for /etc/switch-root.conf
Harald Hoyer [Thu, 21 Feb 2013 11:07:34 +0000 (12:07 +0100)]
lvm/module-setup.sh: use for_each_host_dev_and_slaves_all
Use for_each_host_dev_and_slaves_all to get all lvm setups for the
host-only case.
Thanks to Olivier Thauvin
Harald Hoyer [Thu, 21 Feb 2013 09:55:52 +0000 (10:55 +0100)]
systemd: add systemd-modules-load.service and hook dirs
Harald Hoyer [Tue, 19 Feb 2013 16:36:15 +0000 (17:36 +0100)]
introduce /usr/lib/dracut/dracut.conf.d/ drop-in directory
/usr/lib/dracut/dracut.conf.d/*.conf can be overwritten by the same
filenames in /etc/dracut.conf.d.
Packages should use /usr/lib/dracut/dracut.conf.d rather than
/etc/dracut.conf.d. /etc/dracut.conf.d belongs to the system
administrator.
Harald Hoyer [Tue, 19 Feb 2013 15:13:49 +0000 (16:13 +0100)]
url-lib/url-lib.sh: remove bashism
remove the forgotten bashism "+="
Stefan Reimer [Mon, 18 Feb 2013 11:05:23 +0000 (12:05 +0100)]
base/init.sh: create /run/log
If the systemd module is not used /run/log is not created which results
in dangeling softlink from /var/log which causes stuff to fail.
Harald Hoyer [Mon, 18 Feb 2013 10:57:20 +0000 (11:57 +0100)]
dracut: enable initramfs building without kernel modules
Harald Hoyer [Thu, 14 Feb 2013 11:36:09 +0000 (12:36 +0100)]
btrfs: use "btrfs device ready"
Harald Hoyer [Thu, 14 Feb 2013 11:32:12 +0000 (12:32 +0100)]
systemd: services got renamed
Harald Hoyer [Thu, 14 Feb 2013 11:31:16 +0000 (12:31 +0100)]
dracut-emergency.service: wants systemd-vconsole-setup.service
Colin Guthrie [Wed, 23 Jan 2013 20:15:03 +0000 (20:15 +0000)]
resume: Ensure we remove the timout job when we find the resume device
Thomas Backlund [Wed, 23 Jan 2013 20:15:06 +0000 (20:15 +0000)]
kernel-modules: Add ehci support for kernel 3.8+
Kernel 3.8 split ehci-hcd into ehci-hcd, ehci-pci and ehci-platform,
so adapt the list to cope with this change.
Wim Muskee [Sat, 9 Feb 2013 11:54:20 +0000 (12:54 +0100)]
make nbd port check more robust
The following change makes the check for the nbd port or named export
more robust.
I wasn't sure whether to include sed in the dracut_install() of
module-setup.sh since net already does that (and nbd depends on that).
Harald Hoyer [Mon, 11 Feb 2013 12:56:04 +0000 (13:56 +0100)]
url-lib/url-lib.sh: add proxy support for curl
Harald Hoyer [Mon, 11 Feb 2013 12:55:44 +0000 (13:55 +0100)]
url-lib/url-lib.sh: remove bashisms
Harald Hoyer [Fri, 8 Feb 2013 13:55:24 +0000 (14:55 +0100)]
systemd/dracut-initqueue.sh: call udevadm settle directly
Harald Hoyer [Fri, 8 Feb 2013 14:40:47 +0000 (15:40 +0100)]
systemd/dracut-initqueue: run after cryptsetup.target
Harald Hoyer [Fri, 8 Feb 2013 13:54:38 +0000 (14:54 +0100)]
systemd/dracut-pre-pivot.sh: remove /dev/root symlink after shell
Harald Hoyer [Fri, 8 Feb 2013 13:19:19 +0000 (14:19 +0100)]
systemd: set udev debug/info via config file and report obsolete options
Harald Hoyer [Fri, 8 Feb 2013 13:18:54 +0000 (14:18 +0100)]
systemd/dracut-pre-trigger.sh: enable rd.break=pre-trigger debug shell
Harald Hoyer [Fri, 8 Feb 2013 13:18:25 +0000 (14:18 +0100)]
systemd/dracut-cmdline.sh: create /run/log subdir
Harald Hoyer [Fri, 8 Feb 2013 13:17:50 +0000 (14:17 +0100)]
systemd/dracut-pre-trigger.service: load service on demand
Harald Hoyer [Fri, 8 Feb 2013 13:17:35 +0000 (14:17 +0100)]
systemd/dracut-pre-udev.service: load service on demand
Harald Hoyer [Fri, 8 Feb 2013 13:17:14 +0000 (14:17 +0100)]
systemd: trigger systemd-vconsole-setup.service only on demand
Harald Hoyer [Fri, 8 Feb 2013 13:16:10 +0000 (14:16 +0100)]
systemd/dracut-initqueue.sh: replace $UDEV_QUEUE_EMPTY
for systemd-udevd the version of udevd is high enough
Harald Hoyer [Fri, 8 Feb 2013 13:15:46 +0000 (14:15 +0100)]
virtfs: add virtio_pci kernel module
Harald Hoyer [Fri, 8 Feb 2013 13:15:11 +0000 (14:15 +0100)]
udev-rules: modify udev rules on initramfs creation time
Harald Hoyer [Fri, 8 Feb 2013 13:14:10 +0000 (14:14 +0100)]
btrfs/btrfs_finished.sh: use btrfs device ready for probing
Harald Hoyer [Fri, 8 Feb 2013 13:13:34 +0000 (14:13 +0100)]
btrfs/80-btrfs.rules: remove modprobe of btrfs module
this should be automatically modprobed by the kernel on demand
Harald Hoyer [Fri, 8 Feb 2013 13:12:59 +0000 (14:12 +0100)]
drm/module-setup.sh: make drm module only install on dependency
Harald Hoyer [Fri, 8 Feb 2013 13:12:34 +0000 (14:12 +0100)]
dracut.sh: make /var/log a symlink to /run/log
Harald Hoyer [Fri, 8 Feb 2013 10:44:23 +0000 (11:44 +0100)]
url-lib/url-lib.sh: turn off curl globbing
https://bugzilla.redhat.com/show_bug.cgi?id=907497
Harald Hoyer [Wed, 6 Feb 2013 16:56:46 +0000 (17:56 +0100)]
network/ifup.sh: echo in get_vid() instead of using the return value
The return value is module 256, so VLAN ids > 255 could not be returned.
Dan Horák [Fri, 25 Jan 2013 13:23:58 +0000 (14:23 +0100)]
set peer for point-to-point connections
network/net-lib.sh: only set net vars, if they have a value
Frederick Grose [Sun, 27 Jan 2013 19:47:17 +0000 (14:47 -0500)]
Provide devices to enable booting with rd.live.overlay.readonly=1
Kevin Yung [Wed, 6 Feb 2013 12:33:42 +0000 (13:33 +0100)]
network/ifup.sh: enable bridged vlan interfaces
To use vlan for net boot, you need to specify vlan and ip kernel options
for the boot interface. For example,
vlan=eth1.1:eth1 bootdev=eth1.1
ip=1.2.3.4:1.2.3.4::255.255.255.0:my-hostname:eth1:none
To use bridge for net boot, you need to specify bridge and ip kernel
option for the boot interface. For example
bridge=br1:eth1 bootdev=br1
ip=1.2.3.4:1.2.3.4::255.255.255.0:my-hostname:eth1:none
In my environment, I needs to boot machines from network within
a vlan or on a bridged network. I found curent dracut release
if-up.sh script in 40network module bypass ip setting for both
bridge and vlan interface.
Dan Horák [Mon, 28 Jan 2013 07:35:28 +0000 (08:35 +0100)]
fix CTC example in rd.znet
The CTC interface uses 2 channels.
Colin Guthrie [Sat, 26 Jan 2013 18:13:28 +0000 (18:13 +0000)]
Mount /proc before including dracut-lib.sh.
When dracut-lib.sh is sourced it checks the command line (when not using systemd)
as part of the check_quiet() call.
Therefore mount /proc earlier in init.
Avoids the error:
init: 77: /lib/dracut-lib.sh: /proc/cmdline: No such file or directory
Harald Hoyer [Tue, 5 Feb 2013 15:45:42 +0000 (16:45 +0100)]
dracut.sh: reverting return value change
reverting _get_fs_type() return values of patch
c8d685c9d3860e49f39a9c85ffebbb4c4fec341f
Harald Hoyer [Tue, 5 Feb 2013 10:02:05 +0000 (11:02 +0100)]
shutdown: call "losetup -D" on shutdown
Harald Hoyer [Tue, 5 Feb 2013 09:56:13 +0000 (10:56 +0100)]
mdmon: renamed mdmon-offroot@.service to mdmon@.service
Harald Hoyer [Tue, 5 Feb 2013 09:56:43 +0000 (10:56 +0100)]
TODO: updated
Harald Hoyer [Wed, 30 Jan 2013 16:22:25 +0000 (17:22 +0100)]
network/net-genrules.sh: remove some bashisms
Joe Lawrence [Thu, 24 Jan 2013 22:26:43 +0000 (17:26 -0500)]
Support out-of-tree and updated drivers in initramfs creation
The find_kernel_modules_by_path function shouldn't filter out modules not
located underneath the /lib/modules/ver/kernel directory as out-of-tree
drivers may reside in /lib/modules/ver/extra and updated drivers in
/lib/modules/ver/updates.
Signed-off-by: Joe Lawrence <joe.lawrence@stratus.com>
Harald Hoyer [Wed, 23 Jan 2013 15:23:07 +0000 (16:23 +0100)]
rootfs-block/mount-root.sh: fixup for
8b6bf0ef5
not only fix the warning message, but the real mount arguments, too
Harald Hoyer [Wed, 23 Jan 2013 15:12:18 +0000 (16:12 +0100)]
NEWS: update for version 025
Harald Hoyer [Wed, 23 Jan 2013 14:35:13 +0000 (15:35 +0100)]
version 025
Harald Hoyer [Wed, 23 Jan 2013 14:38:36 +0000 (15:38 +0100)]
dracut.spec: add drm module
Colin Guthrie [Sun, 13 Jan 2013 14:06:58 +0000 (14:06 +0000)]
Include crc32c module for xfs.
Just like btrfs, xfs now requires CRC module that cannot be resolved via
normal module resolving.
Move this hack into fs-lib and remove it from btrfs module.
https://bugs.mageia.org/show_bug.cgi?id=8676
Harald Hoyer [Wed, 23 Jan 2013 13:10:15 +0000 (14:10 +0100)]
dracut-functions.sh: cope with optional field #7 in mountinfo
also handle fstab entries with LABEL=, UUID= and PARTUUID=
Harald Hoyer [Wed, 23 Jan 2013 13:08:23 +0000 (14:08 +0100)]
network/dhclient-script.sh: also touch "/tmp/setup_net_<mac>.ok"
Harald Hoyer [Tue, 22 Jan 2013 17:11:04 +0000 (18:11 +0100)]
romount fix
Dave Young [Fri, 18 Jan 2013 01:59:52 +0000 (09:59 +0800)]
Add memory usage trace to diffrent hook points
Hi, Here is an update of this patch, fixed the local variable issue.
dyoung@redhat.com [Thu, 17 Jan 2013 08:55:50 +0000 (16:55 +0800)]
add function getargnum
For cmdline argument with numeric value, add a new function getargnum
It will get proper value with default value as $1, min value as $2,
max value as $3, and param name as $4. valid result will be echo to stdout.
for nul or value not valid it will just echo the default value.
Note: The values should be >=0
[v1->v2]: add arg <minval>
[v2->v3]: do not use bash string match =~
Signed-off-by: Dave Young <dyoung@redhat.com>
Dave Young [Sun, 6 Jan 2013 06:17:54 +0000 (14:17 +0800)]
use linkup in dhclient-script.sh
linkup is a wrapper function for waiting interface ready and up.
change to use linkup as what we do in ifup script.
Signed-off-by: Dave Young <dyoung@redhat.com>
Colin Guthrie [Mon, 21 Jan 2013 11:23:19 +0000 (11:23 +0000)]
Extend
52f1b041 to allow devices to be specified in config files as well as cmdline.
This also changes the command line switch to be --add-device and the
config directive is set to add_device. This was chosen as device= in the
config file seems too generic and not quite as consistent with other
directives (i.e. drivers/add_drivers)
The --device command line is still supported but it should be considered
deprecated in favour of --add-device.
Jiri Pirko [Thu, 10 Jan 2013 14:02:51 +0000 (15:02 +0100)]
fix teamd exec in case config does not include devname
In case that configuration file did not include name of team device,
teamd would not start. Fix this by adding "-t" parameter.
Signed-off-by: Jiri Pirko <jiri@resnulli.us>
Harald Hoyer [Fri, 18 Jan 2013 12:46:30 +0000 (13:46 +0100)]
shutdown: kill all processes and report remaining ones
Harald Hoyer [Fri, 18 Jan 2013 10:01:43 +0000 (11:01 +0100)]
mdraid: add mdmon-offroot@.service and takeover mdmon in shutdown
Harald Hoyer [Fri, 18 Jan 2013 10:00:48 +0000 (11:00 +0100)]
shutdown: source pre-shutdown hook and force quit plymouth before umount
Harald Hoyer [Fri, 18 Jan 2013 10:00:00 +0000 (11:00 +0100)]
dracut-lib.sh: force hide plymouth in shutdown emergency shell
Harald Hoyer [Fri, 18 Jan 2013 09:59:39 +0000 (10:59 +0100)]
dracut-functions.sh: add pre-shutdown hook
Harald Hoyer [Fri, 18 Jan 2013 09:13:14 +0000 (10:13 +0100)]
dracut.asc: document shutdown procedure
Harald Hoyer [Mon, 7 Jan 2013 17:00:06 +0000 (18:00 +0100)]
dracut.asc: s/rd.ip/ip/g
Harald Hoyer [Thu, 3 Jan 2013 08:29:05 +0000 (09:29 +0100)]
dracut-functions.sh: fixed inst_rules search path
Harald Hoyer [Wed, 2 Jan 2013 12:43:56 +0000 (13:43 +0100)]
usrmount/mount-usr.sh: filter "subvol=" from root rflags
https://bugzilla.redhat.com/show_bug.cgi?id=890577
Harald Hoyer [Wed, 2 Jan 2013 10:11:21 +0000 (11:11 +0100)]
kernel-modules: create /etc/modprobe.d if it does not yet exist
https://bugzilla.redhat.com/show_bug.cgi?id=873220
Harald Hoyer [Thu, 20 Dec 2012 12:46:31 +0000 (13:46 +0100)]
dmsquash-live: fixed checkisomd5 service call