I need turn a file into a encrypted device mapped on /dev/mapper/
and to do it the easier way I found is adding a named entry to /etc/crypttab
pointing to image file and key file, it works fine and map the device but only on next reboot.
Im doing it on an automated way by an scrpt and want do the mapping and formatting the mapped device with filesystem on the same script but the device arent available on the first run of my script.
There is a way to execute the crypttab mapping from command line without reboot ?
Is possible execute crypttab config without rebooting making the encrypted device mapped and available ?
Would be nice execute the mapping from command line without reboot otherwise I will need send two scripts one to map the encrypted device and another to setup the filesystem after reboot.