fanthom wrote:@EdP
did you ever create a /mnt/sda1/scripts folder in qemu virtual session? did you ever put you script there?
if yes then you must use 'rootcopy=/mnt/sda1/scripts' chatcode instead of 'rootcopy=/mnt/sdb1/scripts' as it looks to me that /dev/sdb drive does not exist in virtual session.
if you are not sure about drive naming then 'rootcopy=/scripts' will also be ok as booting script will find it itself.
Yes I had a /scripts/bin folder on the USB drive so it was there regardless of the drive designation that Porteus assigned to it. But do note I rarely use QEMU except to try and catch booting problems. Porteus, like several other apps, are WAY TOO SLOW to use effectively run that way. As noted previously it takes over an hour to just boot Porteus and it doesn't have an online connection under QEMU.
However, your last comment tweaked my interest. It may explain the script problem not executing, I should put it in the root of the USB drive and reference it WITHOUT a path setting. /touchpad.sh rather than /mnt/sdb1/script/bin/touchpad.sc or whatever. Or would /script/bin/touchpad.sh work? I'm referring to the rc.local file's entry for it.
from my point of view it would be easiest if you could remaster porteus ISO and put your script inside the module (as suggested by brokenman) or in /porteus/rootcopy folder (and do not use 'rootcopy=' cheatcode then).
I'm not disagreeing with your view at this point. I assumed working with this would be a challenge for me with my limited/non-existent Linux knowledge. I wasn't planning on it being hard for Portues also.
before you start doing anything please read following docs:
link
link2
link3
I have read those links. A couple of times.

But most seem to be are based on an install of Porteus verses an ISO approach.
@brokenman
'changes' module appears when you are booting with 'changes=EXIT:' cheatcode as destination point must be treated as normal module (read-only) if we want to perform writes only during shutdown.
i know it may sound weird but it has to be like that.
Thank you for answering
brokenman's question because I was going to ask him how to find it so I could see what was in it also.
-edit-
etc/rc.d/rc.local
Code: Select all
root@porteus:~# cat /etc/rc.d/rc.local
#!/bin/sh
#
# /etc/rc.d/rc.local: Local system initialization script.
#
# Put any local startup commands in here. Also, if you have
# anything that needs to be run at shutdown time you can
# make an /etc/rc.d/rc.local_shutdown script and put those
# commands in there.
sh /touchpad.sh
Boot msg
Code: Select all
sh /touchpad.sh no such file or directory
Code: Select all
root@porteus:~# ls /mnt/sdb1/
!QEMU_USB_booter.cmd* ISOs/ autorun.inf* ntldr*
!Rebuild.cmd* PorteusNotes.txt* beep.txt* porteussave.dat*
Autorun/ PswdsISOsWiFi.txt* boot.ini* scripts/
Boot/ QEMU/ grldr* touchpad.sh* <--------------------
CD2ISO/ Splashimages/ menu.lst*
Contig/ Temp/ ntdetect.com*
