LUKS automation script
I've wrote bash script fsLuks for LUKS partitions creating, opening, dumping and closing, and would share it with community. Comments are welcome. It has been published in post http://www.dvgu.ru/forum/thread.php?...ge=2#post43879.
Features:
|
Hi
Thanks for the work and sharing. I downloaded your script and I'm currently looking at what is inside (it's well written and documented, great!). I'm sure you'll understand that, as this script is to be run as root, I prefered to look before.. In this idea, one feature that I would have liked is like the -n switch of make. Don't do anything, just display what would be done. Like preceding all commands with a function that does or only echoes the command that would be done. The problem will be that further steps will fail but doesn't matter for the moment. Also do you know that pmount also automatically mounts LUKS partitions? I use it to mount my encrypted partition: add /dev/hda6 to /etc/pmount.allow and then pmount hda6 pmount will try all FS until it discovers a LUKS disk and ask the passphrase. I thought it could interest you to know this thinggy.. Thanks again |
Quote:
Quote:
nx5000, thank you for comments. |
New version released
New version 1.0.3 released. Main changes:
|
New version 1.0.5 released. Changes:
|
fsLuks new version 1.0.9 released
Changes 1.0.5 -> 1.0.7 (2007-09-08):
- tune2fs options "-c 0 -m 0" excluded - cosmetic changes - a few non-serious mistypings corrected Changes 1.0.7 -> 1.0.9 (2008-01-12): - new fs type "swap" added (improvement) - "acl,user_xattr" mount options added for ext3 fs type (light improvement) - redirections "> /dev/null 2>&1" replaced by shorter equivalent "&> /dev/null" (cosmetic) - bad-blocks list removal command made conditional (light improvement) - "exit 0" command appended to script end (useful for bootload scripts) - a few non-serious mistypings corrected |
Quote:
Code:
[ "$DEBUG" == "-n" ] && echo "Let's execute some harmless action ..." |
All times are GMT -5. The time now is 11:54 AM. |