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

Post here if you are a new Porteus member and you're looking for some help.
Post Reply
floatbit
White ninja
White ninja
Posts: 10
Joined: 21 Feb 2015, 05:20
Distribution: Porteus
Location: GMT8

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

Post#1 by floatbit » 21 Feb 2015, 20:45

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.
Last edited by floatbit on 22 Feb 2015, 01:39, edited 1 time in total.

User avatar
francois
Contributor
Contributor
Posts: 5080
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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

Post#2 by francois » 21 Feb 2015, 20:53

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).
Voltaire: Le mieux est l'ennemi du bien.

floatbit
White ninja
White ninja
Posts: 10
Joined: 21 Feb 2015, 05:20
Distribution: Porteus
Location: GMT8

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

Post#3 by floatbit » 21 Feb 2015, 21:02

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 /

User avatar
ncmprhnsbl
DEV Team
DEV Team
Posts: 973
Joined: 20 Mar 2012, 03:42
Distribution: 3.2.2-64bit xfce/openbox
Location: australia
Contact:

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

Post#4 by ncmprhnsbl » 21 Feb 2015, 21:54

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.
Forum Rules : http://forum.porteus.org/viewtopic.php?f=35&t=44

User avatar
brokenman
Site Admin
Site Admin
Posts: 5574
Joined: 27 Dec 2010, 03:50
Distribution: Porteus v3.2rcX all desktops
Location: Brazil
Contact:

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

Post#5 by brokenman » 22 Feb 2015, 00:00

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
How do i become super user?
Wear your underpants on the outside and put on a cape.

floatbit
White ninja
White ninja
Posts: 10
Joined: 21 Feb 2015, 05:20
Distribution: Porteus
Location: GMT8

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

Post#6 by floatbit » 22 Feb 2015, 01:41

thank you very much,

dir2xzm solved my issue :D :D

this distro is cool!!

User avatar
francois
Contributor
Contributor
Posts: 5080
Joined: 28 Dec 2010, 14:25
Distribution: kde xfce porteus manjaro kubun
Location: Enfin l'été, le changement climatique attendu: le soleil.

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

Post#7 by francois » 22 Feb 2015, 05:12

Not only the distro, the people too! 8)
Voltaire: Le mieux est l'ennemi du bien.

Post Reply