Harald Hoyer
c3dd68fcf1
iscsi: run iscsiroot even if no network configured
...
Also inject finished hooks for every iscsiroot netroot
12 years ago
Harald Hoyer
5e1e1ec060
iscsi, nbd: call write_fs_tab() and write /etc/fstab
12 years ago
Harald Hoyer
41eba87b32
dracut_need_initqueue
12 years ago
Harald Hoyer
6b84015e67
iscsi/iscsiroot.sh: reload rules after adding 99-iscsi-root.rules
12 years ago
Harald Hoyer
dff1671f8f
iscsi/parse-iscsiroot.sh: delay loading of iscsi modules
13 years ago
dyoung@redhat.com
83e0dc7a3d
Add for_each_host_dev_and_slaves for device only checking
...
For lvm, multipath, iscsi modules they do not care about the filesystem,
Also there could be devcie in host_devs but it does not get formated.
For these kind of modules, use for_each_host_dev_and_slaves will be better than use
for_each_host_dev_fs, here add a new function to iterate the host_devs and
their slave devices.
In original for_each_host_dev_fs, it will call check_block_and_slaves which
will return once helper function return 0, but this is not enough for kdump
iscsi setup. For kdump iscsi case, it need setup each slave devices so that
the iscsi target can be properly setuped in initramfs.
Thus, this patch also add new functions check_block_and_slaves_all and
for_each_host_dev_and_slaves_all.
Signed-off-by: Dave Young <dyoung@redhat.com>
Tested-by: WANG Chao <chaowang@redhat.com>
13 years ago
Harald Hoyer
f7f3792390
iscsi/iscsiroot.sh: force link initiatorname
13 years ago
Harald Hoyer
35022f987c
iscsiroot.sh: do not source /etc/conf.d
...
this should have been done already.
13 years ago
Harald Hoyer
68e7661ca7
deprecate old command line options
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
9c2a1d0de6
iscsi/module-setup.sh: speedup installkernel()
13 years ago
Harald Hoyer
4f9f76cd62
iscsi/module-setup.sh: only install s390 driver on s390 arch
13 years ago
Harald Hoyer
cb08b0132f
iscsi/module-setup.sh: fix host-only/mount checks
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
b48f5e847c
iscsi: renamed rd.iscsi_param to rd.iscsi.param
13 years ago
Harald Hoyer
8d51acbbe9
iscsi: add rd.iscsi_param
...
rd.iscsi_param is directly handed over to iscsistart as a --param option
13 years ago
Harald Hoyer
ac3f1c6e87
add iscsi interface binding
...
iscsi connections can now be bound to <iscsi_iface_name> and <netdev_name>
13 years ago
Harald Hoyer
f8208d682f
95iscsi/iscsiroot.sh: fix for empty $root
13 years ago
Harald Hoyer
2c0317213e
get rid of /tmp/root.info
13 years ago
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
13 years ago
Harald Hoyer
2a3faa2df9
95iscsi: fix "root=iscsi:...." case
...
install udev rules and wait for /dev/root
13 years ago
Harald Hoyer
fb67e4aa36
shutdown on demand
...
Do not save and restore the initramfs, but instead, just unpack the
default initramfs for shutdown on shutdown.
13 years ago
Harald Hoyer
e684ee786a
fix kernel modules search for s390
...
forgot last ; in {}
13 years ago
Harald Hoyer
c416b1de5a
fix kernel modules search for s390
...
find_kernel_modules_by_path only takes one parameter
fixes c254ac796f
and 4fcd5409e0
13 years ago
Cong Wang
7f347723d8
let some modules to respect $mount_needs
...
Cc: Harald Hoyer <harald@redhat.com>
Signed-off-by: WANG Cong <xiyou.wangcong@gmail.com>
13 years ago
Harald Hoyer
4fcd5409e0
iscsi/multipath: also search in drivers/s390/scsi
13 years ago
James Buren
7fffc9f11f
add xz compression for kernel modules
13 years ago
Hermann Gausterer
0de93fa1da
typo fix
...
Signed-off-by: Hermann Gausterer <git-dracut-2012@mrq1.org>
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
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
b0692d0311
add wait_for_dev() and wait_for_mount()
13 years ago
John Reiser
881eda695e
instmods: get filenames from stdin if no args; use it
...
Use bash "[[ string =~ pattern ]]" instead of "egrep -q".
Replace control-dominated serial fondling
for var in $(proc1); do proc2 var; done
with data-dominated parallel pipeline
proc1 | while read var; do proc2 var; done
Together this is a large savings.
[harald@redhat.com: fixed network kernel module filter]
14 years ago
Harald Hoyer
4073c8159c
add filter_kernel_modules_by_path() to speed up module search
14 years ago
Harald Hoyer
5e802b113a
removed sourceforge references
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
7c18802966
iscsi: find iscsi kernel modules by symbol names
14 years ago
Harald Hoyer
3fc621ee45
iscsi/mount-lun.sh: use NEWROOT
14 years ago
Harald Hoyer
fb59f4c967
get rid of absolute PATHs
14 years ago
Harald Hoyer
1cd1da13da
iscsi: add additional hardcoded modules
...
https://bugzilla.redhat.com/show_bug.cgi?id=692781
https://bugzilla.redhat.com/show_bug.cgi?id=689694
14 years ago
Harald Hoyer
0b53ca70b6
Move all hooks to "$hookdir"
...
hookdir=/lib/dracut/hooks for now, to keep the root directory clean
14 years ago
Harald Hoyer
c9f1e3d1f4
check for getarg() function before sourcing dracut-lib.sh
...
make use of "type getarg" to check, if we really need to source
dracut-lib.sh
14 years ago
Harald Hoyer
19f3a804e7
s#/dev/.run#/run#g
...
Move things where they really belong to.
14 years ago
Harald Hoyer
b177e9133e
move all /dev/.initramfs to /dev/.run/initramfs
...
We want all "/var/run" information to live in /dev/.run, until the real
root is mounted.
Therefore we mount a tmpfs on /dev/.run, which can/will be bind/move mounted
on /var/run later on.
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