alpine-initramfs-dropbear: init

This commit is contained in:
minoplhy 2024-11-03 22:17:34 +07:00
parent a2aea661e2
commit 271e8eef2d
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
5 changed files with 1201 additions and 0 deletions

File diff suppressed because it is too large Load Diff

View 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

View File

@ -0,0 +1,3 @@
/usr/sbin/dropbear
/sbin/cryptsetup
/etc/dropbear/*

View File

@ -0,0 +1,3 @@
kernel/crypto/*
kernel/arch/*/crypto/*
kernel/drivers/md/dm-crypt.ko

File diff suppressed because it is too large Load Diff