Page 1 of 1

VDpup 9.2x: How to encrypt the pupsave file on a frugal install?

Posted: Mon Jan 02, 2023 3:48 pm
by Airdale

This probably has been addressed somewhere else, but I have looked and was unable to find it. Is it possible to encrypt the pupsave file on a frugal install? I realized that on a full install OR a frugal install with a "save folder" that probably wouldn't be possible. But on a frugal install with a pupsave file it seems like that isn't an option either.

Its fine if that is not an option..... probably not a very widely used feature since most folks probably have either full installs or frugal installs with a save folder. I just wanted to make sure that I wasn't missing something or doing something wrong.

Thanks!


Re: VDpup 9.2x encryption

Posted: Mon Jan 02, 2023 9:30 pm
by bigpup

What kind of save did you make?
File or folder?

I think the save has to be a save file to be able to encrypt it.

When you made the save it should have offered to you option to encrypt or normal.

If you choose normal it will just be a normal save file.

If select encrypt, it will require the password you make to access the save file.

Are you just asking or do you really now want the save to be encrypted?


Re: VDpup 9.2x encryption

Posted: Mon Jan 02, 2023 10:34 pm
by Airdale
bigpup wrote: Mon Jan 02, 2023 9:30 pm

What kind of save did you make?
File or folder?

I think the save has to be a save file to be able to encrypt it.

When you made the save it should have offered to you option to encrypt or normal.

If you choose normal it will just be a normal save file.

If select encrypt, it will require the password you make to access the save file.

Are you just asking or do you really now want the save to be encrypted?

First I did the save folder, but there was no option for encryption.
Then I tried making a save file, but still no option.

I'd like to encrypt it if possible, bit I didn't know if this have been changed from the more traditional puppies.


Re: VDpup 9.2x encryption

Posted: Tue Jan 03, 2023 7:21 am
by dimkr

Encrypted save file functionality is not available because cryptsetup is not preinstalled. Maybe it will work if you apt install cryptsetup-bin.


Re: VDpup 9.2x encryption

Posted: Sat Jan 07, 2023 2:28 am
by Airdale

That did it. Now I get the option to encrypt when creating the save file.
Thanks!


Re: VDpup 9.2x encryption

Posted: Sat Jan 07, 2023 5:08 pm
by Airdale

Oh well....
Not so fast :)

I got the option to make an encrypted save file after installing cryptsetup.
However, when I tried to boot up the system and select that savefile there were errors.

I think it is because when I install cryptsetup, it actually gets saved to the savefile, of course.
So everything is good until the next boot up, when Dpup cant access the encypted save file.... because cryptsetup is inside the encrypted save file, not the sfs.

So I think I'm kind of stuck.... because any changes that I make will be saved in the save file not the main sfs,


Re: VDpup 9.2x encryption

Posted: Sat Jan 07, 2023 6:02 pm
by dimkr

You can create a SFS which contains /sbin/cryptsetup and name it ydrv_vanilladpup_whatever.sfs. It will get auto-loaded.


Re: VDpup 9.2x encryption

Posted: Sun Jan 08, 2023 7:32 am
by Airdale
dimkr wrote: Sat Jan 07, 2023 6:02 pm

You can create a SFS which contains /sbin/cryptsetup and name it ydrv_vanilladpup_whatever.sfs. It will get auto-loaded.

I tried that and it worked well. The yrdv sfs did indeed autoload and now it asks for the password for the save file on boot up now for the first time!

However, after entering the correct password I get an error message...

"You probably entered a wrong password. Or maybe the kernel doesn't properly support dm-encrypt"

So I guess there is more to it than just cryptsetup.


Re: VDpup 9.2x encryption

Posted: Sun Jan 08, 2023 8:57 am
by dimkr

This is probably due to differences in the cryptsetup version between initrd and /sbin.

Maybe you should try to put the static cryptsetup from https://github.com/puppylinux-woof-CE/i ... tic.tar.xz in /sbin - that's the one used to load the save file.


Re: VDpup 9.2x encryption

Posted: Mon Jan 09, 2023 12:12 am
by Airdale
dimkr wrote: Sun Jan 08, 2023 8:57 am

This is probably due to differences in the cryptsetup version between initrd and /sbin.

Maybe you should try to put the static cryptsetup from https://github.com/puppylinux-woof-CE/i ... tic.tar.xz in /sbin - that's the one used to load the save file.

That worked perfectly!
Thanks so much for your help and pointing me in the right direction.