mirror of
https://github.com/xcat2/confluent.git
synced 2024-11-22 09:32:21 +00:00
Fix module autoloading in diskless profiles
The initramfs has a reduced set of modules to boot and then in diskless mode hands over to the 'real' OS for all userspace to use the more substantial root filesystem with all of the modules. However one exception is kernel module autoload, which induces modprobe to run in the initial mount namespace unconditionally. Thus, preserve the ramfs drivers (just in case) but have the autoloading pivot to the normal root filesystem to get the full complement of modules.
This commit is contained in:
parent
351d6a85ee
commit
52549ec563
@ -121,4 +121,6 @@ if grep installtodisk /proc/cmdline > /dev/null; then
|
||||
run_remote installimage
|
||||
exec reboot -f
|
||||
fi
|
||||
mv /lib/modules/$(uname -r) /lib/modules/$(uname -r)-ramfs
|
||||
ln -s /sysroot/lib/modules/$(uname -r) /lib/modules/
|
||||
exec /opt/confluent/bin/start_root
|
||||
|
@ -136,4 +136,6 @@ if grep installtodisk /proc/cmdline > /dev/null; then
|
||||
run_remote installimage
|
||||
exec reboot -f
|
||||
fi
|
||||
mv /lib/modules/$(uname -r) /lib/modules/$(uname -r)-ramfs
|
||||
ln -s /sysroot/lib/modules/$(uname -r) /lib/modules/
|
||||
exec /opt/confluent/bin/start_root
|
||||
|
Loading…
Reference in New Issue
Block a user