Skip to content

Commit 6feaaab

Browse files
committed
fix(base): suppress calls to getarg in build phase
Setting `DEBUG_MEM_LEVEL` in the build phase prevents `setmemdebug()` to call `getargnum`, which would use `dracut-getarg` in the initrd runtime phase. No more: ``` modules.d/99base/dracut-lib.sh: line 217: dracut-getarg: command not found ```
1 parent c3bb9d1 commit 6feaaab

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

modules.d/99base/module-setup.sh

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ install() {
1717
sed ls flock cp mv dmesg rm ln rmmod mkfifo umount readlink setsid \
1818
modprobe chmod
1919

20-
inst_multiple -o findmnt less kmod dracut-getargs
20+
inst_multiple -o findmnt less kmod
2121

2222
inst_binary "${dracutsysrootdir}${dracutbasedir}/dracut-util" "/usr/bin/dracut-util"
2323

@@ -117,6 +117,8 @@ install() {
117117
fi
118118
export PREFIX="$initdir"
119119

120+
# suppress getarg for `rd.memdebug`
121+
export DEBUG_MEM_LEVEL=0
120122
# shellcheck source=dracut-lib.sh
121123
. "$moddir/dracut-lib.sh"
122124

0 commit comments

Comments
 (0)