[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#1003352: Workaround for #1003352



Same problem here, efivarfs isn't mounted. Also, mdadm must be called
before running cryptsetup, at least on my system (crypted rootfs on
raid).

Solution: Create /target/etc/initramfs-tools/scripts/init-premount/fakeraid (chmod +x),
then rebuild the initrd: in-target update-initramfs -u -k all

################
#!/bin/sh -e

PREREQS=""

prereqs() { echo "$PREREQS"; }

case "$1" in
    prereqs)
        prereqs
        exit 0
        ;;
esac

. /scripts/functions

log_begin_msg "Assembling fake-raid"
mount efivarfs /sys/firmware/efi/efivars -t efivarfs -o rw,nosuid,nodev,noexec,relatime
mdadm --assemble --scan
log_end_msg "fake-raid set up"
################

Attachment: signature.asc
Description: PGP signature


Reply to: