misant, linux peops luks and mounting at boot

Locked
Underpants?
Posts: 4755
Joined: Mon Oct 22, 2001 7:00 am

misant, linux peops luks and mounting at boot

Post by Underpants? »

seems like a simple thing, but how to I bypass or automate the encrypted filesystem passphrase query at boot, so that my intranet (lol) server doesn't hang until I can pop in and type a simple word on a keyboard?
The only nonsense I've found so far is how to invoke crypt USERNAME in a startup script, which works with this console-less app about as much as a bicycle with no seat does a tour de france hopeful.
I am predicting the answer to be simple, in turn making me feel stupid. KTIABYE
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

I'd say the simple solution would be to not encrypt the file system. What are you using for encryption (and what distro)?

EDIT: I should learn to read topic titles. Still, what distro?
^misantropia^
Posts: 4022
Joined: Sat Mar 12, 2005 6:24 pm

Post by ^misantropia^ »

A thought occurred while doing the dishes: wouldn't

Code: Select all

echo "yourpassword" | cryptsetup luksOpen /dev/loop0 fsname
do the trick?
Underpants?
Posts: 4755
Joined: Mon Oct 22, 2001 7:00 am

Post by Underpants? »

I'll bet it would, will give it a try as soon as the lawn is mowed.
Thanks!
As far as the filesystem being encrypted-it started as a multi-user samba fileserver back when it was fashionable to restrict personal use of disk usage.
Now we've got a few years of mysql data and a big hatful of poorly-documented (oops) customizations in a warrantee-less PE 2650 living a bare-wire failover existence. I'm scared to even look at it cross-eyed, much less do a full rebuild and restore.
Locked