| Message ID | 20261016031842.709431-1-wenwfu@qti.qualcomm.com |
|---|---|
| State | Rejected |
| Delegated to: | Yoann Congal |
| Headers | show |
| Series | [wrynose,1/7] initramfs-framework: add opt-in root-only udev trigger | expand |
diff --git a/meta/recipes-core/initrdscripts/initramfs-framework/init b/meta/recipes-core/initrdscripts/initramfs-framework/init index e03685175f..5dbf32a12d 100755 --- a/meta/recipes-core/initrdscripts/initramfs-framework/init +++ b/meta/recipes-core/initrdscripts/initramfs-framework/init @@ -154,11 +154,15 @@ mkdir $ROOTFS_DIR # Load and run modules for m in $MODULES_DIR/*; do # Skip backup files - if [ "`echo $m | sed -e 's/\~$//'`" != "$m" ]; then - continue - fi + case "$m" in + *~) + continue + ;; + esac - module=`basename $m | cut -d'-' -f 2` + module=${m##*/} + module=${module#*-} + module=${module%%-*} debug "Loading module $module" # pre hooks