@fredx181
Hi
I am sorry. I forget to keep dm-crypt.ko in initrd in last patch.
Need modify /usr/local/cr-initrd/mkinitrd
Code: Select all
copy_including_deps /$LMK/kernel/drivers/md/md-mod.*
+copy_including_deps /$LMK/kernel/drivers/md/dm-crypt.*
It used for changes=
As i see in linuxrc
code
Code: Select all
elif [ $CHANGES ]; then
echo $i"setting up directory for changes"
CHNEXIT=`echo $CHANGES | cut -d: -f1`;
[ $CHNEXIT = EXIT ] && CHANGES=`echo $CHANGES | cut -d: -f2-`
[ $CHNEXIT = +EXIT ] && CHANGES=`echo $CHANGES | cut -d: -f2-`
[ -r $CFGDEV/$CHANGES ] && { DEV=`echo $CFGDEV | sed s@/mnt/@@`; LPTH=$CHANGES; } || locate -r $CHANGES
if [ $? -eq 0 ]; then
if [ -d /mnt/$DEV/$LPTH ]; then
mkdir -p /mnt/$DEV/$LPTH/changes 2>/dev/null && \
mount -o bind /mnt/$DEV/$LPTH/changes /memory/changes && touch /memory/changes/._test1 2>/dev/null
else
if blkid /mnt/$DEV/$LPTH 2>/dev/null | cut -d" " -f3- | grep -q _LUKS; then
for x in dm_crypt cryptd cbc sha256_generic aes_generic aes_x86_64; do modprobe $x 2>/dev/null; done
losetup /dev/loop2 /mnt/$DEV/$LPTH
echo $i"found encrypted .dat container"
cryptsetup luksOpen /dev/loop2 crypt
fsck_dat /dev/mapper/crypt
mount /dev/mapper/crypt /memory/changes 2>/dev/null && touch /memory/changes/._test1 2>/dev/null
But i never use it. Can you test it with new initrd.
Another crypto modules copied as before. I don't touch it.
copy_including_deps /$LMK/kernel/crypto