Edit File by line
/home/barbar84/public_h.../wp-conte.../plugins/sujqvwi/AnonR/anonr.TX.../lib/dracut/modules..../95cifs
File: cifsroot.sh
#!/bin/sh
[0] Fix | Delete
[1] Fix | Delete
type getarg >/dev/null 2>&1 || . /lib/dracut-lib.sh
[2] Fix | Delete
. /lib/cifs-lib.sh
[3] Fix | Delete
[4] Fix | Delete
[ "$#" = 3 ] || exit 1
[5] Fix | Delete
[6] Fix | Delete
# root is in the form root=cifs://user:pass@[server]/[folder] either from
[7] Fix | Delete
# cmdline or dhcp root-path
[8] Fix | Delete
netif="$1"
[9] Fix | Delete
root="$2"
[10] Fix | Delete
NEWROOT="$3"
[11] Fix | Delete
[12] Fix | Delete
cifs_to_var $root
[13] Fix | Delete
echo server: $server
[14] Fix | Delete
echo path: $path
[15] Fix | Delete
echo options: $options
[16] Fix | Delete
[17] Fix | Delete
mount.cifs //$server/$path $NEWROOT -o $options && { [ -e /dev/root ] || ln -s null /dev/root ; }
[18] Fix | Delete
[19] Fix | Delete
# inject new exit_if_exists
[20] Fix | Delete
echo 'settle_exit_if_exists="--exit-if-exists=/dev/root"; rm -f -- "$job"' > $hookdir/initqueue/cifs.sh
[21] Fix | Delete
# force udevsettle to break
[22] Fix | Delete
> $hookdir/initqueue/work
[23] Fix | Delete
[24] Fix | Delete
It is recommended that you Edit text format, this type of Fix handles quite a lot in one request
Function