alpine-initramfs-dropbear: init
This commit is contained in:
parent
a2aea661e2
commit
271e8eef2d
111
alpine-initramfs-dropbear/README.md
Normal file
111
alpine-initramfs-dropbear/README.md
Normal file
File diff suppressed because it is too large
Load Diff
29
alpine-initramfs-dropbear/dropbear/unlock_disk
Normal file
29
alpine-initramfs-dropbear/dropbear/unlock_disk
Normal file
@ -0,0 +1,29 @@
|
||||
#!/bin/sh
|
||||
|
||||
set -- $(cat /proc/cmdline)
|
||||
|
||||
for opt; do
|
||||
case "$opt" in
|
||||
cryptroot=*)
|
||||
KOPT_cryptroot=${opt#cryptroot=}
|
||||
continue
|
||||
;;
|
||||
cryptdm=*)
|
||||
KOPT_cryptdm=${opt#cryptdm=}
|
||||
continue
|
||||
;;
|
||||
root=*)
|
||||
KOPT_root=${opt#root=}
|
||||
continue
|
||||
;;
|
||||
esac
|
||||
done
|
||||
|
||||
while [ ! -b /dev/mapper/${KOPT_cryptdm} ]; do
|
||||
/sbin/nlplug-findfs -c ${KOPT_cryptroot} -m ${KOPT_cryptdm} ${KOPT_debug_init:+-d} -p /sbin/mdev ${KOPT_root}
|
||||
sleep 2
|
||||
done
|
||||
|
||||
# make a new file to kill the timer
|
||||
echo "" > /tmp/timer_kill
|
||||
killall -9 dropbear
|
3
alpine-initramfs-dropbear/features.d/dropbear.files
Normal file
3
alpine-initramfs-dropbear/features.d/dropbear.files
Normal file
@ -0,0 +1,3 @@
|
||||
/usr/sbin/dropbear
|
||||
/sbin/cryptsetup
|
||||
/etc/dropbear/*
|
3
alpine-initramfs-dropbear/features.d/dropbear.modules
Normal file
3
alpine-initramfs-dropbear/features.d/dropbear.modules
Normal file
@ -0,0 +1,3 @@
|
||||
kernel/crypto/*
|
||||
kernel/arch/*/crypto/*
|
||||
kernel/drivers/md/dm-crypt.ko
|
1055
alpine-initramfs-dropbear/initramfs-dropbear
Normal file
1055
alpine-initramfs-dropbear/initramfs-dropbear
Normal file
File diff suppressed because it is too large
Load Diff
Loading…
Reference in New Issue
Block a user