:: [dyne:bolic] create a LUKS encrypte…
Inizio della pagina
Delete this message
Reply to this message
Autore: Giancarlo Pinerolo
Data:  
To: dynebolic mailinglist
Vecchi argomenti: Re: [dyne:bolic] Dudas: Live dvd, instalación Frugal, Docking.
Oggetto: [dyne:bolic] create a LUKS encrypted persistent image file
To create a LUKS encrypted image file I use this kind of script/commands.
You need to do modprobe dm_map and have the cryptsetup package installed

<-- start cryptsetup-format script -->
# create an LUKS encrypted image file in the dir where called from

modprobe dm_mod
IMAGE="live-rw" ### no dots nor spaces nor special chars
MOUNTPOINT="/mnt/${IMAGE}"
mkdir $MOUNTPOINT
dd if=/dev/zero of=$IMAGE bs=1000k count=256
sync
#dd if=/dev/urandom of=$IMAGE size=
DEV=$(losetup -f)
losetup $DEV $IMAGE
cryptsetup luksFormat $DEV
cryptsetup luksOpen $DEV $IMAGE
CRYPTMAP="/dev/mapper/${IMAGE}"
mkfs.ext3 -F -j -L "$IMAGE" "$CRYPTMAP"
mount "${CRYPTMAP}" $MOUNTPOINT

<--- end script -->


--- Gio 23/2/12, Giancarlo Pinerolo <giancapin@???> ha scritto:

> Da: Giancarlo Pinerolo <giancapin@???>
> Oggetto: Re: [dyne:bolic] Dudas: Live dvd, instalación Frugal, Docking.
> A: "dynebolic mailinglist" <dynebolic@???>
> Data: Giovedì 23 febbraio 2012, 09:27
> A few days ago I posted a patch for
> live-initramfs, so that you can start with
> 'persistent=cryptsetup' cheatcode and have live-initramfs
> "scripts/live-helpers" (called everywhere by the script
> 'live'), mount  a LUKS encrypted, image file (live-rw
> or home-rw). The actual version can only mount LUKS
> partitions, not file images.
> https://launchpad.net/ubuntu/+source/live-initramfs/+bugs