┌────────────────────────────────┐ │ ░░░ ░░▓ ░▓▓ ███ ▓▓░ ▓░░ │ │ ~ M O O N ~ │ └────────────────────────────────┘
prd-web-01.centraldc.gr
LOCATION:
/usr/lib/dracut/modules.d/95cifs
☗ ROOT
↻ REFRESH
✎ EDIT FILE
EDITING: cifsroot.sh
#!/usr/bin/sh command -v getarg > /dev/null || . /lib/dracut-lib.sh command -v cifs_to_var > /dev/null || . /lib/cifs-lib.sh [ "$#" = 3 ] || exit 1 # root is in the form root=cifs://user:pass@[server]/[folder] either from # cmdline or dhcp root-path #netif="$1" root="$2" NEWROOT="$3" cifs_to_var "$root" mount.cifs "//$server/$path" "$NEWROOT" -o "$options" && { [ -e /dev/root ] || ln -s null /dev/root; } # inject new exit_if_exists # shellcheck disable=SC2016 echo 'settle_exit_if_exists="--exit-if-exists=/dev/root"; rm -f -- "$job"' > "$hookdir"/initqueue/cifs.sh # force udevsettle to break : > "$hookdir"/initqueue/work
CANCEL
Name
Type
Size
Modified
Actions
↩ ..
DIR
—
—
📄 cifs-lib.sh
SH
1.1 KB
2025-05-01 10:52
EDIT
📄 cifsroot.sh
SH
634 B
2025-05-01 10:52
EDIT
📄 module-setup.sh
SH
1.4 KB
2025-05-01 10:52
EDIT
📄 parse-cifsroot.sh
SH
1.3 KB
2025-05-01 10:52
EDIT