Page 1 of 1

Copy to RAM with updates

Posted: 22 Sep 2016, 21:40
by Will
Hello!
I have installed Nemesis and updated it using setup-pman and pacman -Syu (because for some reason pman -Syu didn't really work after all the installation process)
I really like the modularity of packages, but that doesn't seem to work very well with arch packages because everything must be updated for new packages to work.

Everything works if I boot from the graphical entry (except very slow), and copy2ram only gives me the fresh system.

So, I wish to make the "fresh system" the updated system with the things I installed. How to do that?

I might be doing something wrong, so sugestions are very welcome!

Thanks! ;)

Re: Copy to RAM with updates

Posted: 23 Sep 2016, 01:39
by francois
Good that you got to a functional system. Nemesis is in development. Presently, it has stopped to permit the main developper brokenman to work on the slackware/porteus version of this forum.

Istinjazz is the right guy to get info presently. He is from manjaro and has done some testing on nemesis, and seems quite enthusiastic about nemesis. See:

Many threads are from him in the Nemesis section.

He might be the right guy to answer your question. And to discuss of some of the issues with nemesis, Just wait for the man or send a PM.

Re: Copy to RAM with updates

Posted: 23 Sep 2016, 19:41
by francois
Or maybe you just want to transform the persistent changes into a module which could become with the other modules your fresh system. And from there build with pman?

In this case, I might be your man.

Especially, that I would appreciate your updated system. :twisted:

Are you on linux file system or fat32?

Re: Copy to RAM with updates

Posted: 24 Sep 2016, 15:20
by Will
Vonverting changes to a module is good! It might take forever though :p
Let's proceed with that.
I'm using ext4.

Re: Copy to RAM with updates

Posted: 24 Sep 2016, 15:47
by francois
Might be worth a try. It depends on the size of the file. Sorry that you did not used ext2 in the first place. :(

This is all I can offer now. Istinjazz might know better.

Re: Copy to RAM with updates

Posted: 24 Sep 2016, 16:45
by Will
Whats the problem with ext4?
How I do that? dir2xzm changes modules/update.xzm?
Experience of doing that?
- It doesn't take forever. It's reasonably fast.
- Things are persistent as they should.
- Some minor issues with duplicate database. I'll try to fix them and see what happens

Re: Copy to RAM with updates

Posted: 24 Sep 2016, 18:48
by francois
Once satisfied or before the system breaks you can transform the /porteus/changes folder into a module with /usr/local/bin/dir2xzm
example:
cd /porteus/changes
dir2xzm yourchangefolder nameofmodule.xzm

Re: Copy to RAM with updates

Posted: 24 Sep 2016, 19:02
by Will
Yep I did that :)
It worked!

Some remarks:
- I had to write a python script to remove the duplicates (they were a lot)
- Packages that are no longer needed as the time goes don`t get deleted and have to be manually removed (upower-pm-utils libdbus)
- After that system updates are a lot faster (10 packages or so instead of 300+)

This is a workaround. A better solution would be to update the "base" system as the user updates and not appending new things.

What about this?

Re: Copy to RAM with updates

Posted: 24 Sep 2016, 20:13
by Blaze
Hi, Will.
Nemesis have a bug with dcadec.
For correcting updating packages of Nemesis you are need to run these commands:

Code: Select all

setup-pman
pacman -S dcadec
rm -rf /usr/lib/libdcadec.so.0
pacman -S dcadec
pacman -Syu

Re: Copy to RAM with updates

Posted: 24 Sep 2016, 21:13
by francois
Posting your updated nemesis change folder as a xzm module on mediafire or the sort would be appreciated. :D

Re: Copy to RAM with updates

Posted: 26 Sep 2016, 01:38
by Will
I could upload it but I have custom software installed. The update.xzm is about 1gb. :p
If someone explain how to make that base system .xzm I can make an updated version of it. Or even a script to update it for new users so Nemesis can be more useful.

Re: Copy to RAM with updates

Posted: 26 Sep 2016, 03:03
by francois
To decompress each unit of base do:

Code: Select all

root@porteus:/mnt/sda5/1_nemesis/porteus/base# mkdir 002-gui
root@porteus:/mnt/sda5/1_nemesis/porteus/base# xzm2dir 002-gui.xzm 002-gui
Parallel unsquashfs: Using 4 processors
2304 inodes (2652 blocks) to write

[=====================================================================-] 2652/2652 100%

created 1984 files
created 796 directories
created 310 symlinks
created 0 devices
created 0 fifos
root@porteus:/mnt/sda5/1_nemesis/porteus/base#
Packages are located at:
/mnt/sda5/1_nemesis/porteus/base/002-gui/var/lib/pacman/local/

To rebuild modules:
dir2xzm /path/dir /path/dir.xzm

or look at:
http://www.porteus.org/component/conten ... udies.html