Colin Guthrie
39f87ab2ab
mkinitrd: Mention the --nocompress option in help output
...
Originally from Mandriva patch: dracut-010-mkinitrd.patch
13 years ago
Harald Hoyer
dcba56cafa
Makefile: dash does not like {} expansion
...
removed {} expansion for mandir mkdir for users, which have dash as
/bin/sh
13 years ago
Harald Hoyer
5e90d26658
Makefile: set bindir to ${prefix}/bin rather than sbin
13 years ago
Brian C. Lane
14599cd760
Fix live update script ( #769970 )
...
pushd and popd are not available in the shell used by dracut.
13 years ago
Harald Hoyer
e74167bd6a
mkinitrd-dracut.sh: s/read_args/read_arg/g
...
https://bugzilla.redhat.com/show_bug.cgi?id=771106
13 years ago
Harald Hoyer
70cb8a686f
dracut: add --add-fstab and --mount option
...
--add-fstab [FILE] Add file to the initramfs fstab
--mount "[DEV] [MP] [FSTYPE] [FSOPTS]"
Mount device [DEV] on mountpoint [MP] with filesystem
[FSTYPE] and options [FSOPTS] in the initramfs
13 years ago
Harald Hoyer
bb61d657c1
99base/dracut-lib.sh: added inst_mount_hook add_mount_point
...
inst_mount_hook <mountpoint> <prio> <name> <script>
Install a mount hook with priority <prio>,
which executes <script> as soon as <mountpoint> is mounted.
add_mount_point <dev> <mountpoint> <filesystem> <fsopts>
Mount <dev> on <mountpoint> with <filesystem> and <fsopts>
and call any mount hooks, as soon, as it is mounted
13 years ago
Harald Hoyer
5112bfc8cc
TEST-12-RAID-DEG: mkdir /run
13 years ago
Harald Hoyer
828feae4f1
dracut.spec: remove unnecessary dependencies
...
Since the initramfs generation is done in %postrans of the kernel rpm,
we can drop all hard requirements.
Also make some requirements a conflict to express the version
dependency.
13 years ago
Harald Hoyer
4d63882615
99base/dracut-lib.sh: killproc, prefix local variables
13 years ago
Harald Hoyer
43f2185221
95iscsi/iscsiroot: unset used variables before starting
...
If iscsiroot is called multiple times, then some variables can hold the
values of a previous call, so unset all variables before using them.
https://bugzilla.redhat.com/show_bug.cgi?id=752066
13 years ago
Harald Hoyer
480d772f22
*/module-setup.sh: use host_fs_types host_devs
...
For the $hostonly case, use $host_fs_types and $host_devs to determine,
if a module has to be included in the initramfs.
13 years ago
Harald Hoyer
7ae5d9d11d
dracut: export host_fs_types host_devs
...
Determine devices and filesystems to be included in the host-only
initramfs image.
To get a minimal initramfs, which can mount
/
/etc
/usr
/usr/bin
/usr/sbin
/usr/lib
/usr/lib64
/boot
we look in fstab for the corresponding devices and determine their and
their slaves' filesystem type and put all that in $host_fs_types
and $host_devs.
13 years ago
Harald Hoyer
ef8b121e2c
version 014
13 years ago
Harald Hoyer
76bba2a1fc
dracut.spec: only apply patches, if there are any
13 years ago
Harald Hoyer
45abddb069
renamed dracut.kernel.7 to dracut.cmdline.7
13 years ago
Harald Hoyer
f74775ba1c
99fs-lib/fs-lib.sh: handle nfs as nop
...
handle fstype=nfs for fsck and let it be a nop
13 years ago
Harald Hoyer
1939a4f96e
99fs-lib/fs-lib.sh: accept "UUID=" and "LABEL=" for fsck_single
...
with the reuse of crypt-lib.sh devnames() and putting it in
dracut-lib.sh, fsck_single() can use more generic names from /etc/fstab
13 years ago
Harald Hoyer
452e46dbfc
90mdraid/mdraid-waitclean.sh: add rd.md.waitclean parameter
...
add rd.md.waitclean parameter, which defaults to 0
https://bugzilla.redhat.com/show_bug.cgi?id=759148
13 years ago
Colin Guthrie
7eb8797b81
Fix /usr mounting due to variable name typo
13 years ago
Harald Hoyer
ed919de0a7
dracut.spec: move sbindir from /sbin to /usr/bin
...
https://fedoraproject.org/wiki/Features/UsrMove
13 years ago
Harald Hoyer
c5a6599080
Makefile, dracut.spec: move dracut to /usr/lib/dracut
...
Move dracut to /usr/lib/dracut.
We should not have picked /usr/share/dracut. Dracut is no ordinary "data".
13 years ago
Harald Hoyer
a9e8ca4ab4
git2spec.pl: strip path from patches
13 years ago
Harald Hoyer
a1abd64aff
90mdraid: wait for md devices to become clean
...
After assembling all devices, just wait for the raid devices to become
clean, before booting further.
13 years ago
Amadeusz Żołnowski
2799897ad8
Makefile: Append target files names for man pages.
...
Edited-By: harald@redhat.com: removed trailing whitespace
13 years ago
Harald Hoyer
191f6945ac
test: moved TEST-14-IMSM to old.TEST-14-IMSM
...
TEST-14-IMSM does not work anymore in qemu instances
13 years ago
Harald Hoyer
0be1785aea
test: introduce $TESTDIR tmpdir
...
to keep the git source tree clean, test files are now created in a
$TESTDIR created with mktemp.
13 years ago
Harald Hoyer
bf7487ab18
90dmsquash-live: wait for the /dev/mapper/live-rw device
...
wait for the /dev/mapper/live-rw device
13 years ago
Harald Hoyer
4e05cb4023
cryptroot-ask.sh: use key file, if specified in crypttab and present
...
if a key file is specified in crypttab and present in the initramfs use
it to open the device.
https://bugzilla.redhat.com/show_bug.cgi?id=751640
13 years ago
Harald Hoyer
dd03dea22e
90mdraid: remove mdadm_auto.sh completly
...
remove mdadm_auto.sh completly, because "mdadm -As --auto=yes" does not
add new appearing devices.
13 years ago
Harald Hoyer
0ec40e08d5
dracut: add install_items to dracut.conf
...
install_items+=" <file>[ <file> ...] "
Specify additional files to include in the initramfs, separated by
spaces.
13 years ago
Harald Hoyer
d1b7efd578
40network/ifup: add "brd +" to "ip addr add"
...
Unlike "ifconfig", the "ip" command does not set a broadcast address
unless explicitly requested.
add "brd +" to make "ip" calculate the broadcast address on the fly
13 years ago
Harald Hoyer
d00f97a7db
40network: check for brctl
...
if a bridge is configured on the kernel command line and brctl is
missing call die()
13 years ago
Harald Hoyer
7e800bfffc
99base/dracut-lib.sh: wait_for_if_up() extend wait time
...
Some NICs take longer than 2 seconds to ifup. Wait a little bit longer
now (20s).
13 years ago
Harald Hoyer
f6783bee07
95fcoe: support bnx2fc
...
To start bnx2fc, we need to run fipvlan only and not dcbtool. DCBX is run
automatically in the hardware, but VLAN discovery needs to be started by
fipvlan.
https://bugzilla.redhat.com/show_bug.cgi?id=736094
13 years ago
Harald Hoyer
760dcc6a65
lvm, dm, dmraid: cleanup, which module installs what
...
The dm module, which lvm and dmraid depend on, installed dmraid
shared libs. The lvm module installed udev rules, which were
already installed by the dm module.
Cleaned up those issues.
13 years ago
Harald Hoyer
2e1b9171bf
02fips-aesni: add fips with aesni-intel
...
add this dracut module, if you want to start in FIPS mode with
the aesni-intel kernel module
13 years ago
Harald Hoyer
ef6900eb79
dracut: create var/log directory in the initramfs
...
https://bugzilla.redhat.com/show_bug.cgi?id=701864
13 years ago
Harald Hoyer
3fa9d4d717
95iscsi: add iscsiuio
...
install iscsiuio
start iscsiuio
stop iscsiuio before switching root
13 years ago
Harald Hoyer
ecf9496d17
95iscsi/parse-iscsiroot.sh: force load a lot of kernel modules
...
A lot of iSCSI driver are not autoloaded, so we have to manually
force load them.
13 years ago
Harald Hoyer
50acb19719
95iscsi/iscsiroot: use initiator-name from ibft firmware if unset
...
If initiator-name is unset, try to read it from the ibft firmware.
13 years ago
Harald Hoyer
745af91663
dracut-lib.sh: add killproc()
13 years ago
Harald Hoyer
87af1cba3c
50plymouth/plymouth-pretrigger.sh: respect primary console setting
...
The kernel's primary console device is determined by the last "console="
argument on the kernel command line. This setting should be respected by
dracut-generated initial RAM disks.
Steps to Reproduce:
(Easiest using a KVM VM, virt-manager and "virsh console")
1. Boot with a kernel command line ending in
console=tty0 console=ttyS0,115200
2. Observe both tty0 and ttyS0.
The output of init scripts is sent to ttyS0, as the final "console="
argument determines the primary console device as per
Documentation/serial-console.txt in the kernel sources.
https://bugzilla.redhat.com/show_bug.cgi?id=752073
13 years ago
Daniel Drake
ce335a0d5c
99base/init: avoid using cp -t
...
-t is not supported by busybox's cp.
Signed-off-by: Daniel Drake <dsd@laptop.org>
13 years ago
Harald Hoyer
01f896d38e
dracut.spec: remove xen module
13 years ago
Harald Hoyer
9af39cbe31
Makefile, git2spec.pl: use temporary builddir
...
to build the dracut rpm, use a temporary builddir
13 years ago
Harald Hoyer
1133b5e07a
99fs-lib/module-setup.sh: only include fsck helper needed for hostonly
...
for the host-only initramfs, check all relevant disks for the
filesystem type and only include those fsck tools, which are needed.
13 years ago
Harald Hoyer
470ee2d214
99base/init, 98usrmount: mount /usr if found in /sysroot/etc/fstab
...
We cannot boot correctly without /usr, because of
http://www.freedesktop.org/wiki/Software/systemd/separate-usr-is-broken
so, we mount /usr readonly.
13 years ago
Harald Hoyer
b0692d0311
add wait_for_dev() and wait_for_mount()
13 years ago
Harald Hoyer
9549014694
fs-lib: install /etc/e2fsck.conf, if e2fsck is installed
13 years ago