4 # use CIFSROOT to set $server, $path, and $options.
5 # CIFSROOT is something like: cifs://[<username>[:<password>]]@<host>/<path>
6 # NETIF is used to get information from DHCP options, if needed.
8 type getarg
>/dev
/null
2>&1 || .
/lib
/dracut-lib.sh
11 local cifsuser
; local cifspass
12 # Check required arguments
15 cifspass
=${cifsuser#*:}
16 if [ "$cifspass" != "$cifsuser" ]; then
17 cifsuser
=${cifsuser%:*}
19 cifspass
=$
(getarg cifspass
)
21 if [ "$cifsuser" != "$server" ]; then
24 cifsuser
=$
(getarg cifsuser
)
30 if [ ! "$cifsuser" -o ! "$cifspass" ]; then
31 die
"For CIFS support you need to specify a cifsuser and cifspass either in the cifsuser and cifspass commandline parameters or in the root= CIFS URL."
33 options
="user=$cifsuser,pass=$cifspass"