]> git.ipfire.org Git - thirdparty/dracut.git/blob - modules.d/98usrmount/module-setup.sh
dracut_mkdir(): create parent directories as needed.
[thirdparty/dracut.git] / modules.d / 98usrmount / module-setup.sh
1 #!/bin/bash
2
3 # called by dracut
4 check() {
5 [[ $mount_needs ]] && return 1
6 return 0
7 }
8
9 # called by dracut
10 depends() {
11 echo 'fs-lib'
12 }
13
14 # called by dracut
15 install() {
16 if ! dracut_module_included "systemd"; then
17 inst_hook pre-pivot 50 "$moddir/mount-usr.sh"
18 fi
19 :
20 }
21