Page 1 of 1

How start Porteus with .dat container without password entering...

Posted: 22 May 2021, 14:40
by rozkom
Hello :)

Sorry for my english... Please tell me, how I can start Porteus without entering password
from keyboard ?. I need start Porteus with .DAT container [ encrypted ], but I don't need
entering password. This is possible ? Password dor .DAT container in Porteus.cfg file is
possible ? Or start Porteus with encrypted container, but without entering password,
autostart / automount without passwords from keyboard ?

Example: I required some like this, or autostart without prompt passwords

MENU LABEL RO Graphics mode + DAT
KERNEL /boot/syslinux/vmlinuz
INITRD /boot/syslinux/initrd.xz
APPEND changes=/mnt/sdb2/porteussave.dat changes-ro password "27$@323121212"
TEXT HELP

ENDTEXT

How start Porteus with .dat container without password entering...

Posted: 22 May 2021, 17:41
by Ed_P
If anyone who boots to RO Graphics mode will have access to the encrypted save.dat file why encrypt it?

An option I use with my save.dat file to run in read only mode is to copy the file to my modules folder as save.dat.xzm and boot without the changes= cheatcode.

How start Porteus with .dat container without password entering...

Posted: 24 May 2021, 13:32
by rozkom
Ed_P wrote:
22 May 2021, 17:41
If anyone who boots to RO Graphics mode will have access to the encrypted save.dat file why encrypt it?

An option I use with my save.dat file to run in read only mode is to copy the file to my modules folder as save.dat.xzm and boot without the changes= cheatcode.
Example:

- sda1 [ encrypted partition ( diskcryptor ) - not required passwords - boot - ok ] [ syslinux ] - this working ok
- sda2 [ porteussave.dat ] [ without any .xzm modules - all data from .xzm transfered to .dat container ]

I need start Porteus and using encrypted sda2/porteussave.dat, but without entering passwords from keyboard.
After that my script start other hybrid funcionality... [ console scripts without gui etc... ]. This is possible ?

How start Porteus with .dat container without password entering...

Posted: 25 May 2021, 21:02
by Ed_P
Without a password cheatcode I don't think it is possible at this time. Maybe a future release will support the idea. In the interim remove the save.dat encryption and enjoy porteus. :)

How start Porteus with .dat container without password entering...

Posted: 28 May 2021, 12:28
by babam
You can try editing initrd (linuxrc) so that cryptsetup gets the passphrase from the standard input.

Code: Select all

echo -n "MyPassphrase" | /opt/000-kernel/sbin/cryptsetup luksOpen /dev/loop2 crypt -d -