Page 1 of 1

porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 27 Oct 2018, 13:05
by jan6
  • What's the difference in the changes= between the two, for example?
  • And
    1. would it be possible to set the changes to a different partition, but not hard-conf stuff like /dev/sdb2 ? (cause there may be more usb sticks, or there might even not be an internal hard drive in the computer, or be several, etc...)
      (also, is GPT formatting drives gonna be supported anytime soon? that'd be nice as well I guess)
      And
    2. is it possible to have the modules on a different partition too? I'd prefer to keep the base OS and the additions separated...
    If the answer is no to either one, then I guess I'll have to go with a single partition setup...

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 24 Dec 2018, 21:42
by Rava
jan6 wrote:
27 Oct 2018, 13:05
[*]And
  1. would it be possible to set the changes to a different partition, but not hard-conf stuff like /dev/sdb2 ? (cause there may be more usb sticks, or there might even not be an internal hard drive in the computer, or be several, etc...)
Use UUID. Quoted from boot/docs/cheatcodes.txt
SPECIAL NOTE FOR USING CHEATCODES WITH 'LABEL' AND 'UUID':
If you specify a LABEL or UUID with a cheatcode, remember that all
portions of these commands are case sensitive. You should use a
unique label for each of your partitions if you wish to use device
labels with your cheatcodes. Use the 'blkid' command to view your
device's UUID and LABEL. Using UUID and LABEL can be quite handy
because they are unique to your device, and your data will be found
and properly mapped on different hardware configurations.
Every cheatcode which contains a /path can take advantage of 'UUID:'
and 'LABEL:' extensions.

Examples:
changes=UUID:STrING-0F-ChARACtERS/path/file.dat
extramod=LABEL:YourLabelName/path/to_folder/with_modules
from=UUID:STrING-0F-ChARACtERS/path/folder
rootcopy=LABEL:YourLabelName/path/to_folder/with_files
emphasis mine

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 25 Dec 2018, 14:30
by ppp
Thank you Rava for the UUID method, I changed /mnt/sdc1 to my usb's uuid and it works really well!

But I still have a same question with jan6:
what's the difference beteen the changes= in 2 .cfg files? Why we need both of them point to one location to load permanent changes? I once commented the changes= line in /porteus/porteus-v4.0-x86_64.cfg and get stuck in an ugly weird login ui, refusing me to get in the system.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 25 Dec 2018, 15:52
by Rava
ppp wrote:
25 Dec 2018, 14:30
But I still have a same question with jan6:
what's the difference beteen the changes= in 2 .cfg files? Why we need both of them point to one location to load permanent changes? I once commented the changes= line in /porteus/porteus-v4.0-x86_64.cfg and get stuck in an ugly weird login ui, refusing me to get in the system.
Sorry I don`t know the answer to that, therefore I am unable to help you.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 25 Dec 2018, 16:01
by Ed_P
ppp wrote:
25 Dec 2018, 14:30
what's the difference beteen the changes= in 2 .cfg files? Why we need both of them point to one location to load permanent changes?
They are the same codes just in different locations. You don't need to configure both of them, just one. The v4.0 file is new and intended for codes that can effect multiple DEs, the old one is specific to the DE.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 25 Dec 2018, 16:25
by Rava
Ed_P wrote:
25 Dec 2018, 16:01
They are the same codes just in different locations. You don't need to configure both of them, just one. The v4.0 file is new and intended for codes that can effect multiple DEs, the old one is specific to the DE.
That was was I thought as well but since I was not 100% sure I thought better not comment. Thanks for clearing that up.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 25 Dec 2018, 16:55
by Ed_P
You think I'm 100% sure!! :shock:

:D

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 26 Dec 2018, 03:32
by ppp
Ed_P wrote:
25 Dec 2018, 16:01
They are the same codes just in different locations. You don't need to configure both of them, just one. The v4.0 file is new and intended for codes that can effect multiple DEs, the old one is specific to the DE.
But I think both of them needs to be configured because even I added the change= code in my porteus-v4.0-x86_64.cfg, I can't load in my changes if I don't modify the change= line in the old porteus.cfg. Maybe is a bug of my own computer?

What's more, my porteus.cfg is not specific to any DE. I only have one line of MENU LABEL Graphics mode without the suffix of (KDE) or (LXDE), is that means I can add my own MENU LABEL Graphics mode with suffix to enter different DE? That's cool!

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 26 Dec 2018, 04:32
by Ed_P
ppp wrote:
26 Dec 2018, 03:32
But I think both of them needs to be configured because even I added the change= code in my porteus-v4.0-x86_64.cfg, I can't load in my changes if I don't modify the change= line in the old porteus.cfg.
Try with the changes= cheatcode only in the porteus.cfg file.

As for the purpose of the new cfg file:
https://forum.porteus.org/viewtopic.php?t=7742 wrote:New configuration file at porteus/porteus-v4.0-x86_64.cfg which replaces the .sgn file and can hold cheatcodes. One per line.
and
https://forum.porteus.org/viewtopic.php?t=7564&start=45 wrote:whatever cheatcodes are set in that file will be passed to whatever boot entry you choose.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 26 Dec 2018, 05:07
by ppp
Ed_P wrote:
26 Dec 2018, 04:32
Try with the changes= cheatcode only in the porteus.cfg file.
Strange, I commented the changes= line in my porteus-v4.0-x86_64.cfg and rebooted. Last time I did this I can't enter the system but this time, I entered in my system successfully. And I find my unclosed softwares in the last login session are still there!

I don't know why I got 2 outcomes for only apply the changes= cheatcode in the porteus.cfg. But I think this words:
ncmprhnsbl wrote:
27 Feb 2018, 21:30
whatever cheatcodes are set in that file will be passed to whatever boot entry you choose..
is not correct (at least on my computer): the changes= code in porteus-v4.0-x86_64.cfg is unnecessary, only porteus.cfg works.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 26 Dec 2018, 05:20
by ppp
ppp wrote:
26 Dec 2018, 05:07
Strange, I commented the changes= line in my porteus-v4.0-x86_64.cfg and rebooted. Last time I did this I can't enter the system but this time, I entered in my system successfully. And I find my unclosed softwares in the last login session are still there!
But when I shutdown and start manually, those unclosed softwares are closed like normal.

Re: porteus-v4.0-x86_64.cfg vs porteus.cfg cheatcodes? and having stuff on different partitions

Posted: 26 Dec 2018, 11:41
by Rava
Ed_P wrote:
25 Dec 2018, 16:55
You think I'm 100% sure!! :shock:

:D
Valid point indeed. :D