mirror of
https://github.com/minoplhy/scriptbox.git
synced 2024-12-05 01:46:57 +00:00
alpine-initramfs-dropbear: fix README
This commit is contained in:
parent
271e8eef2d
commit
87c2f296b7
@ -13,7 +13,7 @@ significant changes:
|
|||||||
|
|
||||||
* Add dropbear
|
* Add dropbear
|
||||||
|
|
||||||
* Add dropbear session timer, this make typical decryption still works even if dropbear/network is broken
|
* Add dropbear session timer, if timeout/cancel normal decryption prompt would appear.
|
||||||
|
|
||||||
Please install `dropbear` before continuing
|
Please install `dropbear` before continuing
|
||||||
|
|
||||||
@ -24,20 +24,20 @@ Please install `dropbear` before continuing
|
|||||||
Note: if you're using Deeplerg/mk-f scripts before don't forget to change `unlock_disk` as i modified that one too.
|
Note: if you're using Deeplerg/mk-f scripts before don't forget to change `unlock_disk` as i modified that one too.
|
||||||
|
|
||||||
### /etc/mkinitfs.conf
|
### /etc/mkinitfs.conf
|
||||||
`features="ata base ide scsi usb virtio ext4 cryptsetup keymap dropbear network"`
|
```features="ata base ide scsi usb virtio ext4 cryptsetup keymap dropbear network"```
|
||||||
* features+= `dropbear` `network`
|
* features+= `dropbear` `network`
|
||||||
|
|
||||||
### /etc/update-extlinux.conf
|
### /etc/update-extlinux.conf
|
||||||
`modules=sd-mod,usb-storage,ext4,ata_piix,virtio_net,e1000e,virtio_pci`
|
```modules=sd-mod,usb-storage,ext4,ata_piix,virtio_net,e1000e,virtio_pci```
|
||||||
* if network is not working (/sys/class/net/*/address not found etc.) try adding `e1000e` or `virtio_net` `virtio_pci`
|
* if network is not working (/sys/class/net/*/address not found etc.) try adding `e1000e` or `virtio_net` `virtio_pci`
|
||||||
|
|
||||||
`default_kernel_opts="cryptroot=UUID=xxx cryptdm=root quiet rootfstype=ext4 dropbear=<dropbear_port> ip=<ip>>"`
|
```default_kernel_opts="cryptroot=UUID=xxx cryptdm=root quiet rootfstype=ext4 dropbear=<dropbear_port> ip=<ip>>"```
|
||||||
* ip= can be both static and dhcp(if supported) `ip=<ip>::<gw>:<mask>::<interface>` `ip=dhcp`
|
* ip= can be both static and dhcp(if supported) `ip=<ip>::<gw>:<mask>::<interface>` `ip=dhcp`
|
||||||
|
|
||||||
|
|
||||||
`update-extlinux`
|
```update-extlinux```
|
||||||
|
|
||||||
`mkinitfs -i path/to/initramfs-dropbear <Kernel Version(from /lib/modules) incase in emergency CD>`
|
```mkinitfs -i path/to/initramfs-dropbear <Kernel Version(from /lib/modules) incase in emergency CD>```
|
||||||
|
|
||||||
## Full Diff:
|
## Full Diff:
|
||||||
```diff
|
```diff
|
||||||
|
Loading…
Reference in New Issue
Block a user