Harald Hoyer
d94050ddae
iscsi: integrate with systemd and improve robustness
...
parse-cmdline sets up an initial initiator-name to let iscsid start.
iscsid is started before doing any iscsistart business.
iscsistart is done with systemd-run asynchrone to do things in
paralllel. Also restarted for every new interface which shows up.
If rd.iscsi.waitnet (default) is set, iscsistart is done only
after all interfaces are up.
If not all interfaces are up and rd.iscsi.testroute (default) is set,
the route to a iscsi target IP is checked and skipped, if there is none.
If all things fail, we issue a "dummy" interface iscsiroot to retry
everything in the initqueue/timeout.
2015-08-12 14:33:49 +02:00
Harald Hoyer
6d58fa27a4
change "while read x" to cope with EOF without newline
...
while read x || [ -n "$x" ]
should do the trick
2015-04-28 11:39:15 +02:00
Thomas Renninger
f34a2ef14d
iscsi: iscsi.initiator and others can and must only show up once
...
Make sure duplicates of iscsi.initiator vanish.
Only get one rd.iscsi.* paramter value. If getargs is used and several
parameters are parsed, one gets two values separated by whitespace in a
variable which breaks later code and is not suppported.
Signed-off-by: Thomas Renninger <trenn@suse.de>
2014-12-16 13:29:36 +01:00
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
2014-08-29 13:38:47 +02:00
Harald Hoyer
a324c2111e
iscsi: for iBFT read the initiator-name from the correct file
...
/sys/firmware/ibft/initiator-name should be
/sys/firmware/ibft/initiator/initiator-name
https://github.com/haraldh/dracut/issues/12
2014-02-19 11:49:34 +01:00
Harald Hoyer
cb802bfbc7
iscsiroot: touch the right marker file
2014-02-12 18:26:36 +01:00
Harald Hoyer
352d557d4d
Do not reload systemd with wait_for_dev
2014-02-05 13:12:29 +01:00
Harald Hoyer
b5b31c9589
iscsi/iscsiroot.sh: beautify warning
2014-01-28 12:14:07 +01:00
Harald Hoyer
c7e15f0891
iscsi: more iscsiroot fixes
...
handle iscsiroot with firmware more gracefully
2014-01-22 17:40:10 +01:00
Harald Hoyer
21a3aab720
iscsi: call "iscsistart -b" until it succeeds
2014-01-17 14:52:01 +01:00
Harald Hoyer
8c828f329b
iscsi/iscsiroot.sh: do not trust iscsistart return value
2014-01-13 09:51:04 +01:00
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
2013-12-18 15:22:24 +01:00
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
2013-10-30 17:38:43 +01:00
Harald Hoyer
ffc68f357e
use ${var:+val} rather than ${var+val}
...
${var:+val} also catches var=""
2013-08-22 11:24:01 +02:00
Harald Hoyer
0a5fd0dcec
iscsi/iscsiroot.sh: do not mount manually in systemd mode
2013-03-14 18:30:35 +01:00
Harald Hoyer
c3dd68fcf1
iscsi: run iscsiroot even if no network configured
...
Also inject finished hooks for every iscsiroot netroot
2013-03-07 14:17:49 +01:00
Harald Hoyer
5e1e1ec060
iscsi, nbd: call write_fs_tab() and write /etc/fstab
2013-03-06 17:29:12 +01:00
Harald Hoyer
6b84015e67
iscsi/iscsiroot.sh: reload rules after adding 99-iscsi-root.rules
2012-12-14 09:04:56 +01:00
Harald Hoyer
f7f3792390
iscsi/iscsiroot.sh: force link initiatorname
2012-07-27 12:18:08 +02:00
Harald Hoyer
35022f987c
iscsiroot.sh: do not source /etc/conf.d
...
this should have been done already.
2012-07-25 14:52:25 +02:00
Harald Hoyer
68e7661ca7
deprecate old command line options
2012-07-25 10:32:42 +02:00
Harald Hoyer
b48f5e847c
iscsi: renamed rd.iscsi_param to rd.iscsi.param
2012-04-03 09:30:26 +02:00
Harald Hoyer
8d51acbbe9
iscsi: add rd.iscsi_param
...
rd.iscsi_param is directly handed over to iscsistart as a --param option
2012-03-29 12:04:26 +02:00
Harald Hoyer
ac3f1c6e87
add iscsi interface binding
...
iscsi connections can now be bound to <iscsi_iface_name> and <netdev_name>
2012-03-29 12:02:12 +02:00
Harald Hoyer
f8208d682f
95iscsi/iscsiroot.sh: fix for empty $root
2012-03-08 12:26:00 +01:00
Harald Hoyer
2c0317213e
get rid of /tmp/root.info
2012-03-08 11:00:29 +01:00
Harald Hoyer
552ecca6db
Renamed all shell scripts to *.sh
2012-02-22 15:15:21 +01:00