Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions defaults/linuxrc
Original file line number Diff line number Diff line change
Expand Up @@ -19,6 +19,9 @@ mount -t tmpfs -o rw,nosuid,nodev,relatime,mode=755 none /run 2>&1

/bin/busybox --install -s

#Reck Modules
depmod -a

if [ "$0" = "/init" ]; then
rm -f /linuxrc
fi
Expand Down
4 changes: 2 additions & 2 deletions gen_initramfs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -777,7 +777,7 @@ print_list()
append_modules() {
local group
local group_modules
local MOD_EXT=".ko"
local MOD_EXT=`modules_kext`

print_info 2 "initramfs: >> Searching for modules..."
if [ "${INSTALL_MOD_PATH}" != '' ]
Expand Down Expand Up @@ -821,7 +821,7 @@ append_modules() {
}

append_drm() {
local MOD_EXT=".ko"
local MOD_EXT=`modules_kext`

print_info 2 "initramfs: >> Appending drm drivers..."
if [ "${INSTALL_MOD_PATH}" != '' ]
Expand Down
13 changes: 13 additions & 0 deletions gen_moddeps.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,19 @@
modules_kext()
{
KEXT=".ko"
#Testing modules compressiona to add right extension
#CONFIG_MODULE_COMPRESS_XZ=y
#CONFIG_MODULE_COMPRESS_GZIP=y

if [ xy == x`kconfig_get_opt ${KERNEL_CONFIG} "CONFIG_MODULE_COMPRESS"` ]
then
if [ "xy" = x`kconfig_get_opt ${KERNEL_CONFIG} "CONFIG_MODULE_COMPRESS_XZ"` ]
then
KEXT="$KEXT.xz"
else
KEXT="$KEXT.gz"
fi
fi
echo ${KEXT}
}

Expand Down