Page 1 of 1

[solved] porteus.cfg merged changes, with changes-ro

Posted: 21 Feb 2015, 20:45
by floatbit
hi,
a little bit issue with porteus.cfg,

my situation is, i wish to merge all the changes available in /porteus directory, copy2ram, activate all modules in modules directory and disallow save of further changes.

i tinkered porteus.cfg with following text,
LABEL gui-last
MENU LABEL GUI (XFCE) SAVED RO
KERNEL vmlinuz
APPEND initrd=initrd.xz changes=/porteus changes-ro login= copy2ram
TEXT HELP
Run Porteus the best way we can.
Try to autoconfigure graphics
card and use the maximum
allowed resolution
ENDTEXT
it doesn't works, still require /mnt/sda1 when i try to unmount it, and no changes merged.
need your suggestions.

Re: porteus.cfg merged changes, with changes-ro

Posted: 21 Feb 2015, 20:53
by francois
What do you mean by merging changes? Please give more information.

changes-ro and changes= syntax:
http://www.porteus.org/tutorials/26-gen ... -them.html
changes-ro

... Keep saved changes in a read-only state. This is useful when
you have your system set up exactly how you like it and do not
want to save any other changes you might make during a live
session. This cheatcode should be used in conjunction with the
'changes=' or 'changes=EXIT:' cheatcodes.
Example: 'changes=/path/file.dat changes-ro'
NOTE: remove the 'changes-ro' cheatcode from the bootloader config
to start saving changes as normal (effective after a reboot).

Re: porteus.cfg merged changes, with changes-ro

Posted: 21 Feb 2015, 21:02
by floatbit
hi francois,
i saw my usb got 2 directories, boot and porteus,
changes=/porteus i understood it as saving changes inside/porteus/changes directory, (i might be wrong here)

so when loading, porteus would merge /porteus/changes into /

my objective are,
1. activate all modules inside /porteus/modules
2. /porteus/changes must get merged into /
3. copy everything into memory
4. deny saving changes to /porteus/changes (assume the usb drive still plug in)
5. able to umount/eject the usb drive.

i tried the following
APPEND initrd=initrd.xz changes= changes-ro login= copy2ram
modules activated,
able to copy everything into memory
porteus message saying changes will save in memory (which is fine, because reboot will discard whatever user change)
able to umount/eject usb
but previous changes which located in /porteus/changes is not merged into /

Re: porteus.cfg merged changes, with changes-ro

Posted: 21 Feb 2015, 21:54
by ncmprhnsbl
floatbit wrote:changes=/porteus i understood it as saving changes inside/porteus/changes directory, (i might be wrong here)
i think that should be: changes=/porteus/
your usb must formatted to POSIX compatible filesystem(ext2,3,4) for this to work.

alternatively, you can make a module from your changes and place it in /porteus/modules.

Re: porteus.cfg merged changes, with changes-ro

Posted: 22 Feb 2015, 00:00
by brokenman
Why not just merge your modules and then remove the changes= line from porteus.cfg. It seems this would meet your requirements.

my objective are,
1. activate all modules inside /porteus/modules
This happens automatically on boot anyway.

2. /porteus/changes must get merged into /
Boot into copy2ram mode and make a module from changes: dir2xzm /mnt/live/memory/changes /mnt/sdxY/porteus/modules/mymodule.xzm
Next boot the module contents will be copied into /

3. copy everything into memory
copy2ram cheatcode

4. deny saving changes to /porteus/changes (assume the usb drive still plug in)
Remove the changes= line

5. able to umount/eject the usb drive.
This is automatic when booting into copy2ram

Re: [solved] porteus.cfg merged changes, with changes-ro

Posted: 22 Feb 2015, 01:41
by floatbit
thank you very much,

dir2xzm solved my issue :D :D

this distro is cool!!

Re: [solved] porteus.cfg merged changes, with changes-ro

Posted: 22 Feb 2015, 05:12
by francois
Not only the distro, the people too! 8)