EasyClone copy user-installed kernel modules
EasyClone was discussed somewhere in the forum. Ah, yes, recall, it was in relation to the graphical installer:
https://forum.puppylinux.com/viewtopic.php?t=17171
If the person has booted up Easy from a usb-stick, got it all setup nicely, used it for awhile, then decides would like to install to internal drive of the computer, EasyClone is optionally used to copy selectively the setup of the currently-running Easy to the new installation. Like for example, browser configuration, history, bookmarks.
The EasyClone GUI has a checkbox to select the kernel modules
setup. The "Kernel modules (blacklist, etc.)" checkbox can be seen
here:
https://easyos.org/install/how-to-clone-a-easyos-installation.html
However, one thing is missed. The person may have installed the Broadcom wifi wl.ko module, which is available as a PET package. if that particular checkbox is ticked, then any user-installed kernel modules should also be cloned.
I have added a lines to /usr/local/easy_install/easyclone script:
if [ "$EXC8" == "true" ];then #kernel modules
mkdir -p /mnt/${WKG_DEV}/EASYCLONE/.session/session1/etc/rc.d
cp -a -f /mnt/wkg/.session/session1/etc/modprobe.d* /mnt/${WKG_DEV}/EASYCLONE/.session/session1/etc/ 2>/dev/null
cp -a -f /mnt/wkg/.session/session1/etc/rc.d/MODULESCONFIG /mnt/${WKG_DEV}/EASYCLONE/.session/session1/etc/rc.d/ 2>/dev/null
#20260725 user may have installed the broadcom wl.ko pet package...
if [ -d /mnt/.easy_rw/mainrw/usr/lib/modules/${KERNVER} ];then
Kfnd="$(find /mnt/${WKG_DEV}/${WKG_DIR}.session/session1/usr/lib/modules/${KERNVER} -mindepth 2 -type f -name '*.ko' | sed "s%/mnt/${WKG_DEV}/${WKG_DIR}.session/session1%%" | tr '\n' ' ')"
for aK in ${Kfnd}
do
[ ! -f "$aK" ] && continue
aD="$(dirname ${aK})"
mkdir -p /mnt/${WKG_DEV}/EASYCLONE/.session/session1${aD}
cp -a -f ${aK} /mnt/${WKG_DEV}/EASYCLONE/.session/session1${aD}/
done
fi
fi
Note, the Broadcom module is provided as a PET package, not
builtin to 'easy.sfs', as it is a proprietary closed source
driver, and conflicts with the open-source drivers provided with
the kernel; these are bcma, b43, brcmsmac, ssb -- these may have
to be blacklisted to be able to use the Broadcom wl.ko module. The
wl module is preferred by some people as has superior performance.
Tags: easy