Skip to content

Commit

Permalink
fixes cryptoloop *.enc modules support
Browse files Browse the repository at this point in the history
  • Loading branch information
neobht committed Jan 6, 2017
1 parent 80c4e27 commit f48c016
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
2 changes: 1 addition & 1 deletion make_uird_magos.sh
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ ln -s ../../modules.d/* ../modules.d/ 2>/dev/null
cd ../..
#./dracut/dracut.sh -l -N --strip -f -m "base uird uird-network ntfs kernel-modules kernel-network-modules" \
./dracut/dracut.sh -l -N --strip -f -m "base uird uird-network ntfs kernel-modules" \
-d "loop cryptoloop zram aes-generic aes-i586 aes-x86_64 pata_acpi ata_generic ahci xhci-hcd xhci-pci xhci-plat-hcd ohci-pci usb-storage uhci-hcd hid usbhid ehci-hcd ohci-hcd ehci-pci ehci-platform hid-generic
-d "loop cryptoloop cbc zram aes-generic aes-i586 aes-x86_64 pata_acpi ata_generic ahci xhci-hcd xhci-pci xhci-plat-hcd ohci-pci usb-storage uhci-hcd hid usbhid ehci-hcd ohci-hcd ehci-pci ehci-platform hid-generic
sr_mod sd_mod scsi_mod
jbd jbd2 lockd evdev sunrpc
af_packet
Expand Down
5 changes: 3 additions & 2 deletions modules.d/00uird/livekit/livekitlib
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ BIN_FSCK=/sbin/fsck
BIN_BTRFSCK=/sbin/btrfsck
BIN_BLKID=/sbin/blkid.real
BIN_LOSETUP=/sbin/losetup.real
BIN_LOSETUP_CRYPTO=/sbin/losetup.crypto

[ -f /etc/initvars ] && . /etc/initvars

Expand Down Expand Up @@ -753,12 +754,12 @@ mount_device()
echolog "$MOUNT_DEVICE_ENC" $green"$DEV"$default
times=3
while [ $times -gt 0 ]; do
$BIN_LOSETUP -e AES256 "$LOOPDEV" "$DEV" >/dev/console </dev/console 2>/dev/console
$BIN_LOSETUP_CRYPTO -e AES256 "$LOOPDEV" "$DEV" >/dev/console </dev/console 2>/dev/console
[ $(cmdline_parameter fsck) ] && fsck_device "$LOOPDEV"
mount -n -o $OPTIONS "$LOOPDEV" "$2" >/dev/null 2>&1
ERR=$?
[ $ERR -eq 0 ] && break
$BIN_LOSETUP -d "$LOOPDEV"
$BIN_LOSETUP_CRYPTO -d "$LOOPDEV"
times=$(expr $times - 1)
done
fi
Expand Down
2 changes: 2 additions & 0 deletions modules.d/00uird/module-setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ install() {
[ -x "$initdir/bin/bash" ] || inst $(type -p bash) "/bin/bash"
inst $(type -p blkid) /sbin/blkid.real
inst $(type -p losetup) /sbin/losetup.real
[ "$(uname -i)" = "x86_64" -a -x /usr/lib/magos/bin64/losetup ] && inst $(type -p /usr/lib/magos/bin64/losetup ) /sbin/losetup.crypto
[ "$(uname -i)" != "x86_64" -a -x /usr/lib/magos/bin/losetup ] && inst $(type -p /usr/lib/magos/bin/losetup ) /sbin/losetup.crypto

_binaries="locale dialog gettext loadkeys resume rsync fsck fsck.ext2 fsck.ext3 fsck.ext4 fsck.exfat fsck.vfat fsck.xfs fsck.btrfs btrfsck ntfsfix"
for _i in $_binaries; do
Expand Down

0 comments on commit f48c016

Please sign in to comment.