Skip to content

Commit c73e7b9

Browse files
LaszloGombosjohannbg
authored andcommitted
fix(virtiofs): ismounted has a dependency on the base module
When dracut.sh is called with "--modules virtiofs", make sure dracut-lib.sh is installed by making the base module a dependency.
1 parent 85149b8 commit c73e7b9

File tree

2 files changed

+3
-1
lines changed

2 files changed

+3
-1
lines changed

modules.d/95virtiofs/module-setup.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ check() {
1616

1717
# called by dracut
1818
depends() {
19-
return 0
19+
echo base
2020
}
2121

2222
# called by dracut

modules.d/95virtiofs/mount-virtiofs.sh

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/usr/bin/sh
22

3+
type ismounted > /dev/null 2>&1 || . /lib/dracut-lib.sh
4+
35
if [ "${fstype}" = "virtiofs" -o "${root%%:*}" = "virtiofs" ]; then
46
if ! { modprobe virtiofs || strstr "$(cat /proc/filesystems)" virtiofs; }; then
57
die "virtiofs is required but not available."

0 commit comments

Comments
 (0)