Harald Hoyer
6d58fa27a4
change "while read x" to cope with EOF without newline
...
while read x || [ -n "$x" ]
should do the trick
10 years ago
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>
10 years ago
Harald Hoyer
967cc19ab1
remove all vim and emacs code format comments
11 years ago
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
11 years ago
Harald Hoyer
cb802bfbc7
iscsiroot: touch the right marker file
11 years ago
Harald Hoyer
352d557d4d
Do not reload systemd with wait_for_dev
11 years ago
Harald Hoyer
b5b31c9589
iscsi/iscsiroot.sh: beautify warning
11 years ago
Harald Hoyer
c7e15f0891
iscsi: more iscsiroot fixes
...
handle iscsiroot with firmware more gracefully
11 years ago
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
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
ffc68f357e
use ${var:+val} rather than ${var+val}
...
${var:+val} also catches var=""
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
6b84015e67
iscsi/iscsiroot.sh: reload rules after adding 99-iscsi-root.rules
12 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
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
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
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
3b403b32fc
removed trailing whitespaces
14 years ago
Harald Hoyer
fb59f4c967
get rid of absolute PATHs
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
b43f4df540
iscsi: changed parameters to new rd.iscsi style
14 years ago
Harald Hoyer
cc02093d69
reformat source code
...
removed tabs and set indention to 4 spaces
added emacs and vi format headers
15 years ago
Harald Hoyer
169f167151
iscsi: add support for multiple netroot=iscsi:
...
The whole netdisk concept should be reviewed though!
15 years ago
Harald Hoyer
9232cab470
fix IFS restoring
15 years ago
Harald Hoyer
c98bcec89c
add preliminary IPv6 support
15 years ago
Harald Hoyer
a0e44f97bd
iscsi/iscsiroot: remove redirection on rdnetdebug
...
iscsiroot is now executed in the initqueue
16 years ago
Harald Hoyer
a52586e8ea
network: break udevsettle early
16 years ago
Harald Hoyer
9babe97e6f
iscsiroot: check real root if it is block:...
16 years ago
Hans de Goede
766968bb6f
Implement extended iscsi: rfc4173 syntax which allows specifying credentials
...
As discussed before, it would be nice to be able to specify
the iscsi chap credentials inside the netroot=iscsi:.....
syntax, this patch implements this in a backwards compatible way, like
this:
iscsi:username:pass@127.0.0.1::3260::iqn.2009-01.com.example:testdisk
iscsi:username:pass:reverse:pass@127.0.0.1::3260::iqn.2009-01.com.example:test
The only downside is that the backwards compatibility is broken when there
is an @ in the iscsi target name (very unlikely), that can still be used,
but only like this:
iscsi:@192.168.1.100::3260::iqn.2009-01.com.example:testdi@sk
16 years ago
Harald Hoyer
bb57587b42
iscsiroot: fixed udev rules for iscsi_firmware
16 years ago
Harald Hoyer
a3f4e7709b
add udev rules for iscsi_firmware
16 years ago
Harald Hoyer
0375106c78
add source_conf for static configuration variables
...
source_conf sources all *.conf files of a directory
init will now source all /etc/conf.d/*.conf files
16 years ago
Harald Hoyer
c094baa0fb
install mount script if iscsistart succeeded and add iscsi udev rule
16 years ago