alpine-initramfs-dropbear: update to 3.11.0_rc5

This commit is contained in:
minoplhy 2024-12-04 15:54:09 +07:00
parent 4838e809c6
commit 445fa9118e
Signed by: minoplhy
GPG Key ID: 41D406044E2434BF
2 changed files with 101 additions and 62 deletions

View File

@ -55,51 +55,42 @@ mkinitfs -i path/to/initramfs-dropbear <Kernel Version(from /lib/modules) incase
```diff ```diff
325a326,340 325a326,340
> setup_dropbear() { > setup_dropbear() {
> local port="${KOPT_dropbear}" > local port="${KOPT_dropbear}"
> local keys="" > local keys=""
> >
> # set the unlock_disc script as shell for root > # set the unlock_disc script as shell for root
> sed -i 's|\(root:x:0:0:root:/root:\).*$|\1/etc/dropbear/unlock_disk|' /etc/passwd > sed -i 's|\(root:x:0:0:root:/root:\).*$|\1/etc/dropbear/unlock_disk|' /etc/passwd
> echo '/etc/dropbear/unlock_disk' > /etc/shells > echo '/etc/dropbear/unlock_disk' > /etc/shells
> >
> # transfer authorized_keys > # transfer authorized_keys
> mkdir /root/.ssh > mkdir /root/.ssh
> cp /etc/dropbear/authorized_keys /root/.ssh/authorized_keys > cp /etc/dropbear/authorized_keys /root/.ssh/authorized_keys
> >
> dropbear -R -E -s -j -k -p $port > dropbear -R -E -s -j -k -p $port
> } > }
> >
453c468 512a528
< s390x_net dasd ssh_key BOOTIF zfcp uevent_buf_size aoe aoe_iflist aoe_mtu wireguard" > dropbear
--- 641c657,665
> s390x_net dasd ssh_key BOOTIF zfcp uevent_buf_size aoe aoe_iflist aoe_mtu wireguard dropbear"
581c596,604
< if [ -n "$KOPT_cryptroot" ]; then < if [ -n "$KOPT_cryptroot" ]; then
--- ---
> if [ -n "$KOPT_dropbear" ]; then > if [ -n "$KOPT_dropbear" ]; then
> if [ -n "$KOPT_cryptroot" ]; then > if [ -n "$KOPT_cryptroot" ]; then
> configure_ip > configure_ip
> setup_dropbear > setup_dropbear
> fi > fi
> fi > fi
> >
> # Add Workaround for dropbear > # Add Workaround for dropbear
> if [ -n "$KOPT_cryptroot" ] && [ ! -b /dev/mapper/"${KOPT_cryptdm}" ]; then > if [ -n "$KOPT_cryptroot" ] && [ ! -b /dev/mapper/"${KOPT_cryptdm}" ]; then
645a669,672 705a730,733
> # Kill all struck nlplug-findfs jobs and dropbear > # Kill all struck nlplug-findfs jobs and dropbear
> killall -9 nlplug-findfs > killall -9 nlplug-findfs
> killall -9 dropbear > killall -9 dropbear
> >
715a743 781a810,813
> >
733a762,765 > # Kill all struck nlplug-findfs jobs and dropbear
> > killall -9 nlplug-findfs
> # Kill all struck nlplug-findfs jobs and dropbear > killall -9 dropbear
> killall -9 nlplug-findfs
> killall -9 dropbear
1003c1035
< reboot
---
> reboot
\ No newline at end of file
``` ```

File diff suppressed because it is too large Load Diff