Ask your questions here.
Post a reply

Re: Two problems I encounterd

Sat Sep 19, 2015 5:28 pm

Just stating my opinion here, not criticizing if you choose to do things differently.
It's wasteful (inefficent) to allow stuff to be copied to $work_dir, then do double-work to remove it.
It's a PITA to chase after "editing/tweaking the snapshot script to customize it" each time a new version is released.
The script consults an excludes list. Customize THAT.

apt-get purge lahdeedah...
First of all, nowadays (for the past year or more) we can just type "apt purge..." or "apt install..."
("apt-get" is passe)
Second, in this exact instance, purging the package may not cause problems, but many of the things I'd weed(exclude) from a snapshot
would cause dependency breakages. Besides, sometimes an entire package isn't unwelcome (for me), I just want to avoid
copying selected cruft files I'll never use (cruft which eternally adds unnecessary overhead to "toram" live sessions when using the resulting snapshot).
That's the backstory for my "just whack the files and let apt/dpkg go on believing suchandsuch is still installed" remark, above.

Re: Two problems I encounterd

Sat Sep 19, 2015 8:27 pm

Uhh... yeah, there's no reason to edit the script to remove those files. Just add to the excludes file as I posted in my first reply.

Told you I wasn't awake before.

Re: Two problems I encounterd

Sun Sep 20, 2015 4:32 pm

I made changes in the way swap is handled. If a swap partition exists, it will automatically check the box in expert install. You still have the option of un-checking the box to use a swap file instead. Simple install will get a swap file unless you set the option in the config file, in which case it should show you a list of the swap partitions available and let you choose.

The cli installer will also use the config file, and I just realized that it will work correctly if you have one swap partition, but if you have more than one, it's screwed. I'll fix that in the final version.

EDIT: FIXED. You get to choose from a list of swap partitions in the cli installer if you set use_existing_swap to "yes" in the config file. Updated the link below.

I also noticed that disk labels and encryption aren't supported for swap. I'll look at that again - it's on the TODO list. Also noticed that there's no command-line option for using an alternate config file, like there is for refractasnapshot. That's on the list, too, more for me than anyone else.

Didn't roll it up into a .deb yet, but here are the relevant files, in case anyone wants to test. I only took them as far as the screen that lists the changes to be made and asks if I want to proceed with the installation.


refractainstaller-yad (9.1.6)
https://gist.github.com/fsmithred/1e6bf25eb0e14dc3af26

refractainstaller (9.1.6)
https://gist.github.com/fsmithred/6e394c8e5941f22dd5d6

refractainstaller.conf
https://gist.github.com/fsmithred/5cb8c5e75c170c6447dd

Re: Two problems I encounterd

Wed Sep 23, 2015 1:26 pm

Well, for me the main problem is solved, I'll edit the post title to reflect this :)
Post a reply