Harald Hoyer
21a3aab720
iscsi: call "iscsistart -b" until it succeeds
11 years ago
Harald Hoyer
8c828f329b
iscsi/iscsiroot.sh: do not trust iscsistart return value
11 years ago
Harald Hoyer
ab6f4a825e
iscsi: do iscsi_firmware regardless of network
...
Do the iscsi_firmware iscsistart at least once, even if the network is
not up, to activate offload HBA iSCSI.
https://bugzilla.redhat.com/show_bug.cgi?id=1031160
11 years ago
Harald Hoyer
c2ab990938
iscsi,nbd: do not fail in hostonly mode
11 years ago
Harald Hoyer
fa9384b1c0
iscsi/nbd: do not try to mount the whole disk, if root= is missing
...
only mount the whole disk for root=dhcp
11 years ago
Harald Hoyer
8bcfd683bd
*/module-setup.sh: add comments for dracut called functions
12 years ago
Harald Hoyer
de74e1ef41
Rewrite "rootok" and "netroot" logic
...
Previously if "$rootok" = 1, parsing of netroot command line arguments
was skipped. For multiple netroot arguments, all parse scripts have to
run.
Previously only the first netroot argument was taken into account for
the parsing scripts. Now every netroot argument is processed.
12 years ago
Harald Hoyer
5ecc117a25
iscsi: parse iscsi parameter, even if rootok=1
12 years ago
Harald Hoyer
ffc68f357e
use ${var:+val} rather than ${var+val}
...
${var:+val} also catches var=""
12 years ago
Harald Hoyer
7929ec198f
iscsi/module-setup.sh: install some modules regardless of hostonly
12 years ago
Harald Hoyer
af11946054
dracut-functions.sh: inst_multiple == dracut_install
12 years ago
Harald Hoyer
b093aa2dc7
beautified shell code
...
checked with shellcheck http://www.shellcheck.net/about.html
12 years ago
Harald Hoyer
0a5fd0dcec
iscsi/iscsiroot.sh: do not mount manually in systemd mode
12 years ago
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