Harald Hoyer [Tue, 16 Apr 2013 08:44:56 +0000 (10:44 +0200)]
lsinitrd: switch to getopt and add "-f" and "-k" parameter
Harald Hoyer [Mon, 15 Apr 2013 09:53:03 +0000 (11:53 +0200)]
Makefile: fixup tarball Makefile
Harald Hoyer [Mon, 15 Apr 2013 09:39:32 +0000 (11:39 +0200)]
dmsquash-live: add support for "iso-scan/filename" kernel parameter
now you can write grub entries like
set isofile="/Fedora-live.iso"
loopback loop $isofile
linux loop)/isolinux/vmlinuz iso-scan/filename=$isofile root=live:CDLABEL=Fedora-...
initrd (loop)/isolinux/initrd0.img
Harald Hoyer [Thu, 11 Apr 2013 09:29:00 +0000 (11:29 +0200)]
url-lib/module-setup.sh: install ca-bundle.crt by libcurl.so
https://bugzilla.redhat.com/show_bug.cgi?id=950770
curl seems to look for /etc/pki/tls/certs/ca-bundle.crt
extract the correct path by disecting libcurl.so
Harald Hoyer [Thu, 11 Apr 2013 11:10:24 +0000 (13:10 +0200)]
systemd: include the systemd-random-seed-load.service
The systemd cryptsetup-generator wants systemd-random-seed-load.service
in case /dev/urandom is the device.
Harald Hoyer [Thu, 11 Apr 2013 08:11:14 +0000 (10:11 +0200)]
Makefile,git2spec.pl: use "git describe"
Harald Hoyer [Thu, 11 Apr 2013 08:10:49 +0000 (10:10 +0200)]
AUTHORS: update
Harald Hoyer [Fri, 12 Apr 2013 13:25:44 +0000 (15:25 +0200)]
plymouth/plymouth-pretrigger.sh: fixup of
ca2c6936
Harald Hoyer [Thu, 11 Apr 2013 14:08:26 +0000 (16:08 +0200)]
Do not call plymouth with full path
Harald Hoyer [Wed, 10 Apr 2013 08:15:43 +0000 (10:15 +0200)]
crypt/module-setup.sh: also handle UUID= while filtering crypttab
The crypttab filter for host-only did not handle UUID= entries.
https://bugzilla.redhat.com/show_bug.cgi?id=919752
WANG Chao [Tue, 9 Apr 2013 10:56:40 +0000 (18:56 +0800)]
ifup.sh: Add support for bridge over a vlan tagged interface
This patch add support for bridge a vlan tagged interface, like
br0 -> bond0.7 -> bond0 -> eth0
Signed-off-by: WANG Chao <chaowang@redhat.com>
Baoquan He [Fri, 29 Mar 2013 10:36:16 +0000 (18:36 +0800)]
Let user specify the action after fail
Currently the default action is emergency_shell when failure happened
during system boot. In kdump, this default may not be expected. E.g,
if dump target is not rootfs, it does not matter if mount root failed.
Adding an action which allow dracut always go ahead though failure
happens is needed by kdump.
So here add a function action_on_fail() and cmdline parameter
action_on_fail=<shell | continue>. Use action_to_fail() to replace
emergency_shell which was called after failure. By $(getarg action_on_fail=),
decide to drop into shell, or to leave away the failure and go ahead.
v3->v4:
add handling of selinux policy loaded failure, and change code format to
be consitent
Signed-off-by: Baoquan He <bhe@redhat.com>
[Edited by harald@redhat.com]
Baoquan He [Mon, 8 Apr 2013 09:47:50 +0000 (17:47 +0800)]
Wait for logical interface to be up
If bootdev is logical interface like bond, bridge or vlan, we need
wait them up.
Signed-off-by: Baoquan He <bhe@redhat.com>
Harald Hoyer [Mon, 8 Apr 2013 09:47:49 +0000 (17:47 +0800)]
network: support multiple bonding interfaces
Currently dracut only support 1 bond, namyly bond0 by default. However multiple
bonds configuration may be needed. For example in kdump, in 1st kernel, more
than one bonds may be configured, and bondX other than bond0 is used as output
interface to remote host which will store dump core. This patch can solve this
problem, to write real bond information to initramfs, 2nd kdump kernel will
use it to create the relevant bondX interface.
Tested-by: Baoquan He <bhe@redhat.com>
Signed-off-by: Baoquan He <bhe@redhat.com>
WANG Chao [Mon, 1 Apr 2013 12:34:40 +0000 (20:34 +0800)]
ifup.sh: Add support for bridge over team and vlan tagged team
Team is the same network stack as bonding. Therefore give ifup the ability to
handle bridge over team and vlan tagged team as bonding too.
Signed-off-by: WANG Chao <chaowang@redhat.com>
Harald Hoyer [Tue, 9 Apr 2013 08:48:26 +0000 (10:48 +0200)]
crypt/module-setup.sh: filter /etc/crypttab in host-only mode
only take those /etc/crypttab entries, which we need to boot the system
Harald Hoyer [Tue, 9 Apr 2013 08:47:39 +0000 (10:47 +0200)]
dracut-functions.sh: make use of findmnt
Harald Hoyer [Fri, 5 Apr 2013 14:34:36 +0000 (16:34 +0200)]
nfs/module-setup.sh: combine egreps for /etc/passwd and /etc/group
Harald Hoyer [Fri, 5 Apr 2013 09:52:33 +0000 (11:52 +0200)]
TEST-99-RPM: ignore rescue images
Harald Hoyer [Fri, 5 Apr 2013 09:07:55 +0000 (11:07 +0200)]
TESTSUITE: s/i6300esbwdt/i6300esb ib700wdt/g
Harald Hoyer [Fri, 5 Apr 2013 09:05:39 +0000 (11:05 +0200)]
TEST-50-MULTINIC: fixup test suite
qemu of the day doesn't like multicast anymore
Harald Hoyer [Fri, 5 Apr 2013 07:01:48 +0000 (09:01 +0200)]
Add missing options to manpage and --help output
https://bugzilla.redhat.com/show_bug.cgi?id=948510
Harald Hoyer [Thu, 4 Apr 2013 10:56:42 +0000 (12:56 +0200)]
base/dracut-lib.sh:wait_for_dev()/cancel_wait_for_dev() set systemd timeouts
Set systemd unit timeouts for the devices we wait for. The systemd
default is 90 seconds, which is way too low for complicated setups.
Harald Hoyer [Thu, 4 Apr 2013 10:54:59 +0000 (12:54 +0200)]
crypt/parse-crypt.sh: create udev rule for systemd
Start the systemd-cryptsetup@luks-*.service for the detected crypto_LUKS
device in the initqueue, so we block in the initqueue and wait for the
password entry.
Harald Hoyer [Thu, 4 Apr 2013 10:51:33 +0000 (12:51 +0200)]
base/dracut-lib.sh: add dev_unit_name()
add helper function to convert device path to systemd unit names
Harald Hoyer [Tue, 2 Apr 2013 11:29:24 +0000 (13:29 +0200)]
base/init.sh: fix version output
Harald Hoyer [Tue, 26 Mar 2013 16:04:43 +0000 (17:04 +0100)]
dracut.spec: Require systemd >= 199
Harald Hoyer [Tue, 26 Mar 2013 15:55:03 +0000 (16:55 +0100)]
version 027
Harald Hoyer [Tue, 26 Mar 2013 15:54:34 +0000 (16:54 +0100)]
dracut.spec: don't BuildRequire bash-completion for rhel
Harald Hoyer [Tue, 26 Mar 2013 15:19:27 +0000 (16:19 +0100)]
systemd: add new timers.target and paths.target
Harald Hoyer [Tue, 26 Mar 2013 15:19:00 +0000 (16:19 +0100)]
use systemd*dir variables everywhere
Harald Hoyer [Tue, 26 Mar 2013 15:17:24 +0000 (16:17 +0100)]
test: change qemu param -nographic to -display none for -daemonize
qemu does not like -nographic in combination with -daemonize
Harald Hoyer [Tue, 26 Mar 2013 14:38:50 +0000 (15:38 +0100)]
x-initrd-rootfs.mount -> x-initrd.mount
Harald Hoyer [Fri, 22 Mar 2013 08:09:57 +0000 (09:09 +0100)]
multipath: install native systemd service
Harald Hoyer [Fri, 22 Mar 2013 08:21:06 +0000 (09:21 +0100)]
systemd: add dracut.bootup(7) reference to service man pages
Harald Hoyer [Fri, 22 Mar 2013 08:13:14 +0000 (09:13 +0100)]
install dracut-*.service units
Harald Hoyer [Fri, 22 Mar 2013 08:09:10 +0000 (09:09 +0100)]
dracut.sh: export systemdsystemconfdir
Harald Hoyer [Wed, 20 Mar 2013 09:25:23 +0000 (10:25 +0100)]
dracut.sh: turn off hostonly mode, if udev database is not found
Harald Hoyer [Wed, 20 Mar 2013 09:22:41 +0000 (10:22 +0100)]
dracut.sh: turn off host-only mode, if essential system filesystems not mounted
Harald Hoyer [Wed, 20 Mar 2013 06:16:43 +0000 (07:16 +0100)]
dracut.spec: use configure
Harald Hoyer [Wed, 20 Mar 2013 06:15:04 +0000 (07:15 +0100)]
dracut.spec: use pkg-config for bashcompletiondir
Harald Hoyer [Wed, 20 Mar 2013 06:07:55 +0000 (07:07 +0100)]
dracut.sh: remove temporary cpio output in trap
Harald Hoyer [Wed, 20 Mar 2013 05:41:25 +0000 (06:41 +0100)]
51-dracut-rescue-postinst.sh,51-dracut-rescue.install: use systemd-machine-id-setup
if /etc/machine-id is empty, use systemd-machine-id-setup
Harald Hoyer [Wed, 20 Mar 2013 05:39:13 +0000 (06:39 +0100)]
51-dracut-rescue-postinst.sh: Rename image and grub entry
grub2-mkconfig ordered the rescue entries higher than the normal ones.
https://bugzilla.redhat.com/show_bug.cgi?id=923439
Harald Hoyer [Tue, 19 Mar 2013 15:56:56 +0000 (16:56 +0100)]
51-dracut-rescue-postinst.sh: add extra checks
Harald Hoyer [Tue, 19 Mar 2013 13:53:17 +0000 (14:53 +0100)]
TEST-40-NBD/test.sh: kill_server() after test_run()
Harald Hoyer [Tue, 19 Mar 2013 13:52:25 +0000 (14:52 +0100)]
network/netroot.sh: do not unset root
Harald Hoyer [Tue, 19 Mar 2013 11:24:13 +0000 (12:24 +0100)]
nbd/nbdroot.sh: fix root != blockdev case
Harald Hoyer [Tue, 19 Mar 2013 11:23:20 +0000 (12:23 +0100)]
fs-lib/fs-lib.sh:write_fs_tab() start initrd-root-fs.target
Harald Hoyer [Tue, 19 Mar 2013 11:22:58 +0000 (12:22 +0100)]
add dracut.bootup.7 man page
Harald Hoyer [Tue, 19 Mar 2013 11:22:33 +0000 (12:22 +0100)]
systemd: add more ordering
Harald Hoyer [Mon, 18 Mar 2013 13:17:19 +0000 (14:17 +0100)]
drm/module-setup.sh: redirect grep to /dev/null
on some architectures, no pci devices exist
Harald Hoyer [Mon, 18 Mar 2013 09:58:25 +0000 (10:58 +0100)]
Makefile: use -D_FILE_OFFSET_BITS=64 to build dracut-install
Harald Hoyer [Mon, 18 Mar 2013 08:29:08 +0000 (09:29 +0100)]
kernel-modules/module-setup.sh: don't fail hard on a missing module
Harald Hoyer [Mon, 18 Mar 2013 07:43:23 +0000 (08:43 +0100)]
kernel-modules/module-setup.sh: install all host filesystem drivers
https://bugzilla.redhat.com/show_bug.cgi?id=922565
Harald Hoyer [Sat, 16 Mar 2013 09:34:20 +0000 (10:34 +0100)]
sosreport: mkdir /run/initramfs, if it does not exist yet
Harald Hoyer [Sat, 16 Mar 2013 09:31:37 +0000 (10:31 +0100)]
dmsquash-live: force load squashfs kernel module
https://bugzilla.redhat.com/show_bug.cgi?id=922248
Harald Hoyer [Fri, 15 Mar 2013 15:54:38 +0000 (16:54 +0100)]
dracut.conf.5.asc: remove duplicated install_items
Harald Hoyer [Fri, 15 Mar 2013 13:41:11 +0000 (14:41 +0100)]
TEST-16-DMSQUASH: use current releasever
Harald Hoyer [Fri, 15 Mar 2013 09:42:18 +0000 (10:42 +0100)]
dracut-bash-completion.sh: add --kver kernel version completion
Harald Hoyer [Fri, 15 Mar 2013 09:41:41 +0000 (10:41 +0100)]
sosreport.sh: use -o short-monotonic for the journal output
Harald Hoyer [Fri, 15 Mar 2013 06:11:17 +0000 (07:11 +0100)]
dracut.spec: bump systemd version requirement
Harald Hoyer [Thu, 14 Mar 2013 17:29:19 +0000 (18:29 +0100)]
fixed testsuite
Will Woods [Thu, 14 Mar 2013 17:48:06 +0000 (13:48 -0400)]
fix typo in dracut.conf.5.asc
It's /etc/dracut.conf.d, not /etc/dracut/conf.d
Harald Hoyer [Thu, 14 Mar 2013 18:03:20 +0000 (19:03 +0100)]
systemd: do not use "systemd --version" until fixed
Harald Hoyer [Thu, 14 Mar 2013 14:35:54 +0000 (15:35 +0100)]
systemd: switch to new initrd.target
(normal startup)
:
:
v
basic.target
|
______________________/|
/ |
| sysroot.mount
| |
| v
| initrd-root-fs.target
| |
| v
| initrd-parse-etc.service
(custom initrd services) |
| v
| (sysroot-usr.mount and
| various mounts marked
| with fstab option
| x-initrd.mount)
| |
| v
| initrd-fs.target
| |
\______________________ |
\|
v
initrd.target
|
v
initrd-cleanup.service
isolates to
initrd-switch-root.target
|
v
______________________/|
/ |
| initrd-udevadm-cleanup-db.service
| |
(custom initrd services) |
| |
\______________________ |
\|
v
initrd-switch-root.target
|
v
initrd-switch-root.service
|
v
switch-root
Harald Hoyer [Thu, 14 Mar 2013 16:59:07 +0000 (17:59 +0100)]
udev-rules/module-setup.sh: do not install /run/*
Harald Hoyer [Thu, 14 Mar 2013 16:56:53 +0000 (17:56 +0100)]
nfs/nfsroot.sh: only cat /etc/fstab, if existant
Harald Hoyer [Thu, 14 Mar 2013 16:54:36 +0000 (17:54 +0100)]
iscsi/iscsiroot.sh: do not mount manually in systemd mode
Harald Hoyer [Thu, 14 Mar 2013 16:54:15 +0000 (17:54 +0100)]
ifcfg/write-ifcfg.sh: fixed typo
Harald Hoyer [Thu, 14 Mar 2013 16:53:00 +0000 (17:53 +0100)]
dracut.spec: fix requirements
Harald Hoyer [Thu, 14 Mar 2013 16:52:44 +0000 (17:52 +0100)]
dracut-install: handle more ldd errors
Harald Hoyer [Thu, 14 Mar 2013 16:52:15 +0000 (17:52 +0100)]
51-dracut-rescue-postinst.sh: fixed new-kernel-pkg call
Harald Hoyer [Thu, 14 Mar 2013 16:51:47 +0000 (17:51 +0100)]
TODO: remove completed items
Radek Vykydal [Thu, 14 Mar 2013 08:51:07 +0000 (09:51 +0100)]
Write BOOTPROTO=ibft for ip=ibft to ifcfg files
Radek Vykydal [Thu, 14 Mar 2013 08:50:07 +0000 (09:50 +0100)]
Don't write DHCPV6C=yes for each dhcp (ipv4) configuration.
Caused probably by commit
32ec0a762d1dce36f20857ffd222863a3d550ed7
Harald Hoyer [Wed, 13 Mar 2013 16:45:37 +0000 (17:45 +0100)]
shutdown/shutdown.sh: mount --move all basic mounts out of /oldroot
After mount moving /dev away, apps like plymouth can do reexec with fd
passing of devices, which they want to keep open until the very end.
Harald Hoyer [Wed, 13 Mar 2013 13:47:24 +0000 (14:47 +0100)]
dracut.sh: Add --noimageifnotneeded parameter
Do not create an image in host-only mode, if no kernel driver is needed
and no $initdir/etc/cmdline/*.conf is generated.
Harald Hoyer [Wed, 13 Mar 2013 13:46:39 +0000 (14:46 +0100)]
kernel-modules: move usb-storage out of fixed drivers
Harald Hoyer [Wed, 13 Mar 2013 13:45:55 +0000 (14:45 +0100)]
systemd: remove upstream renamed old service files
dyoung@redhat.com [Wed, 13 Mar 2013 07:59:26 +0000 (15:59 +0800)]
Add memdebug at different points in 99base/init.sh
Previously I added several trace point to the begin of several
init hooks of systemd, old init script also need this debug info.
Doing same here as what's added in the systemd service scripts:
At cmdline hooks adding trace of "1+:mem 1+:iomem 3+:slab"
For other hooks adding trace of "1:shortmem 2+:mem 3+:slab"
Signed-off-by: Dave Young <dyoung@redhat.com>
dyoung@redhat.com [Wed, 13 Mar 2013 07:59:25 +0000 (15:59 +0800)]
Improve documentation of rd.memdebug
Explain more about rd.memdebug verbose level in dracut.cmdline.7.asc.
Signed-off-by: Dave Young <dyoung@redhat.com>
dyoung@redhat.com [Wed, 13 Mar 2013 07:59:24 +0000 (15:59 +0800)]
print memdebug to stderr
memory usage tracing outputs are debug info, so it should be moved to
stderr instead of stdout.
Signed-off-by: Dave Young <dyoung@redhat.com>
Harald Hoyer [Wed, 13 Mar 2013 12:09:13 +0000 (13:09 +0100)]
dracut-initramfs-restore.sh: also look for image in boot loader spec dir
Harald Hoyer [Wed, 13 Mar 2013 11:55:23 +0000 (12:55 +0100)]
dracut.spec: fix requirements
Harald Hoyer [Wed, 13 Mar 2013 11:46:16 +0000 (12:46 +0100)]
add dracut-bash-completion.sh
Harald Hoyer [Wed, 13 Mar 2013 11:46:39 +0000 (12:46 +0100)]
dracut.sh: add --regenerate-all
Harald Hoyer [Wed, 13 Mar 2013 09:51:17 +0000 (10:51 +0100)]
plymouth: do not install hooks in systemd mode
Harald Hoyer [Wed, 13 Mar 2013 10:07:36 +0000 (11:07 +0100)]
systemd: add sysctl.d and sysctl.conf
Harald Hoyer [Wed, 13 Mar 2013 09:51:47 +0000 (10:51 +0100)]
systemd: add modules-load.d modules to the initramfs
Harald Hoyer [Wed, 13 Mar 2013 07:04:25 +0000 (08:04 +0100)]
systemd: local-fs.target is now root-fs.target and initrd-fs.target
Also rename dracut.target to initrd.target
see also systemd commit 700e07f
http://cgit.freedesktop.org/systemd/systemd/commit/?id=700e07f
Harald Hoyer [Wed, 13 Mar 2013 07:04:08 +0000 (08:04 +0100)]
51-dracut-rescue.install: create directory, if it does not exist
Harald Hoyer [Wed, 13 Mar 2013 07:23:18 +0000 (08:23 +0100)]
lsinitrd.sh: simplify check for boot loader spec dirs
Harald Hoyer [Tue, 12 Mar 2013 12:50:58 +0000 (13:50 +0100)]
dracut.spec: add nohostonly and norescue subpackages
we need rpm subpackages, to be able to pull them in the installation
transaction for the initial %posttrans initramfs image creation.
Harald Hoyer [Mon, 11 Mar 2013 14:59:13 +0000 (15:59 +0100)]
add 51-dracut-rescue-postinst.sh
also fixup 51-dracut-rescue.install to read in dracut conf
Harald Hoyer [Mon, 11 Mar 2013 15:31:48 +0000 (16:31 +0100)]
dracut.sh: add swap partitions to host-only setup
Harald Hoyer [Mon, 11 Mar 2013 15:32:16 +0000 (16:32 +0100)]
make host_fs_types a hashmap
This requires bash >= 4, but hash maps are so much more comfortable
Harald Hoyer [Mon, 11 Mar 2013 14:46:37 +0000 (15:46 +0100)]
lsinitrd.sh: removed trailing "}"
Harald Hoyer [Sun, 10 Mar 2013 13:44:32 +0000 (14:44 +0100)]
lsinitrd.sh: fix for default initrd not found, but image given
Harald Hoyer [Sun, 10 Mar 2013 13:44:16 +0000 (14:44 +0100)]
51-dracut-rescue.install: do not unset installonly on remove