Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
12 years ago
Harald Hoyer
575733aa25
add newline to cmdline config files
12 years ago
Harald Hoyer
1743473b2b
add parameter --print-cmdline
...
This prints the kernel command line parameters for the current disk
layout.
$ dracut --print-cmdline
rd.luks.uuid=luks-e68c8906-6542-4a26-83c4-91b4dd9f0471
rd.lvm.lv=debian/root rd.lvm.lv=debian/usr root=/dev/mapper/debian-root
rootflags=rw,relatime,errors=remount-ro,user_xattr,barrier=1,data=ordered
rootfstype=ext4
12 years ago
Harald Hoyer
69f7ed9610
Create initramfs without using udevadm
...
This enables building a hostonly image, without the udev database
populated.
12 years ago
Harald Hoyer
730b9b8b77
crypt/crypt-run-generator: also skip if UUID match in crypttab
12 years ago
Harald Hoyer
4baac4b291
crypt/module-setup.sh: use crypttab in hostonly and don't install cmdline
12 years ago
James Lee
7deba0428a
crypt: Fix typo--/etc/crypttab not /etc/cryptab
...
1ae8b8a
breaks the crypt module for those who use keyfiles due to a
typo leading to the exclusion of /etc/crypttab from the initrd.
12 years ago
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
12 years ago
Amadeusz Żołnowski
1ae8b8aa02
crypt: Skip /etc/crypttab if not present
...
Prevents following error message:
I: *** Including module: crypt ***
/usr/lib/dracut/modules.d/90crypt/module-setup.sh: line 31: /etc/crypttab: No such file or directory
12 years ago
Harald Hoyer
cdcb27a4fe
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
12 years ago
Harald Hoyer
96efbc51ac
crypt/module-setup.sh: filter /etc/crypttab in host-only mode
...
only take those /etc/crypttab entries, which we need to boot the system
12 years ago
Harald Hoyer
d351541ee6
make host_fs_types a hashmap
...
This requires bash >= 4, but hash maps are so much more comfortable
12 years ago
Harald Hoyer
cf24ac8c19
crypt, dmraid, mdraid: use for_each_host_dev_and_slaves_all()
...
To catch _all_ UUIDs and not only the first one, use
for_each_host_dev_and_slaves_all
12 years ago
Harald Hoyer
e9020221a7
crypt: do not cleanup in systemd mode
12 years ago
Harald Hoyer
3d12d7a2cc
crypt: install /etc/crypttab only in host-only mode
13 years ago
Harald Hoyer
92b3ee855f
removed finished-ask-password.sh
13 years ago
Harald Hoyer
3d352f5228
crypt: add systemd crypt support
13 years ago
Harald Hoyer
53fe81e752
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.
13 years ago
Harald Hoyer
4d0f1d7b28
modules.d/*/module-setup.sh: no more sourcing of dracutfunctions
13 years ago
Harald Hoyer
eef7649e71
merge "cleanup" and "pre-pivot-cleanup" hooks
13 years ago
Dave Young
1bd76bf981
move cleanup scripts to pre-pivot-cleanup hook
...
below cleanup scripts is moved:
40network: kill-dhclient.sh
90crypt: crypt-cleanup.sh
90multipath: multipathd-stop.sh
95iscsi: cleanup-iscsi.sh
95nfs: nfsroot-cleanup.sh
Signed-off-by: Dave Young <dyoung@redhat.com>
13 years ago
Harald Hoyer
004fd0557d
host-only checks corrected and kernel_only mode
...
In kernel_only mode, we don't want to write /etc/cmdline.d
Correctly return the check functions, so we have a valid return of
for_each_host_dev_fs().
mdraid and dmraid functions had wrong checkings for the filesystem
type.
13 years ago
Harald Hoyer
96b8d60a9b
dracut: precreate "${initdir}/etc/cmdline.d"
13 years ago
Harald Hoyer
5f282199c8
90crypt/module-setup.sh: prepend "luks-" to hostonly cmdline file
13 years ago
Cong Wang
1b7fd0fa3e
Check module dependencies of mount points
...
Like -H, we need to poll every module to check if it is needed
to mount a specific device in '--mount'.
Signed-off-by: Cong Wang <xiyou.wangcong@gmail.com>
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
e59f58f854
use inst_simple to install non-binary files
14 years ago
Harald Hoyer
29b10e65b1
dracut-functions: make local vars local and prefix with "_"
14 years ago
Harald Hoyer
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
f024bf0dcd
base, crypt: install umount, because it is used
14 years ago
Amadeusz Żołnowski
9fe4f5ff25
crypt: installing all crypto kernel modules instead of few selected
14 years ago
Harald Hoyer
71df3c4329
renamed module-info.sh to module-setup.sh
14 years ago
Harald Hoyer
95d2dabc25
replaced check,install,installkernel with module-info.sh
14 years ago