The installer (from memory) checks for /mnt/live/porteus/modules which is a symlink to the source drive of porteus. If you're using copy2ram then obvisouly this symlink won't be useful. I'll look at the editing the installer to accommodate for this situation. Appreciate your feedback,thanks./quote]
export from_dev=$(cat $livedbglog | egrep -1 "boot device" | sed -r "s/#.*://" | tail -n 1 )
export sgnfile=$(cat /proc/cmdline | egrep "sgnfile" | sed -r "s/.*sgnfile=//" | cut -d " " -f 1)
export from_dir=$(cat /proc/cmdline | egrep "from_dir" | sed -r "s/.*from_dir=//" | cut -d " " -f 1)
echo from_dev $from_dev
echo sgnfile $sgnfile
echo from_dir $from_dir
check=$(cat /proc/mounts | egrep $from_dev)
if [ "$check" = "" ];then echo /mnt/$from_dev ;mkdir -p /mnt/$from_dev; mount /dev/$from_dev /mnt/$from_dev || exit 1 ; fi
if [ "$from_dir" != "" ];then
modulefolder=$(find /mnt/$from_dev | grep $sgnfile | sed -r s/"$sgnfile"//) || exit 1
mkdir -p $modulefolder
test -w $modulefolder || (echo $modulefolder aint writable && exit 1)
echo "Bruker $modulefolder som målmappe.."
This example is taken from a script I use to save settings before I reboot.... Some playing around showed me that it was just hopeless to use the old "changes=" cheat code on old USBs. They are just to good damn slow and changes=... writes to them on the fly..
But I did look for a cheat code for something like "save_settings_on_exit_without_using_changes=cheat_code", which I couldn't find... Magic folder came a bit closer though, but then again when surfing internet downloading tons of pron to tmp-folders, magicfolder=/root/.opera is hopeless to use as well
. Another point about running changes= is that is shortens the lifespan of usb/ssd disks. The changes we want to save are always just those changes still in union when we reboot. Crashes happens very rarely.
NB! Very important for me
... extramod= folder1;folder2;......folderN.... Please mod your script to allow for several extramods
Nice when running several distroes and/or version... An example
64 2 versions Kde + Xfce... Some modules are common and some not
32 2 versions Kde + Xfce... Some modules are common and some not
So common modules for 64 kde + xfce in one extramod. Same for the 32 bit version.
BUT then there are some addons and modules that is or can be common for both the 64 and 32 bit.
Let me know if there is a workaround this problem, coz I'm stuck with wasting space on some old small USBs with copies of same modules..
(I remember when those were expensive lol)
Oki doki. Just an extra addition thought for a great distro (and I wouldn't be surprised if something else comes to mind :p )..
2 more ideas... A "mount isofile" servicemenu shortcut..
"Extract xzm" looks a little amateurish when the OS is setup in another language then english. How about making a sticky thread for translations to other languages. A thread were people can just post their language versions in a way it can be easy to add them to your files.