32 Commits

Author SHA1 Message Date
Julien Coloos
ad18bce895 v1.2-1 2026-07-12 20:27:44 +02:00
Julien Coloos
d69f71b561 Reduce network device speed to 10M for WoL
In previous Arch/kernel versions, the network device speed was
automatically set to the lowest possible upon poweroff when WoL was
enabled.

Latest versions do keep the network device to its standard speed (1000M
for example), which consumes some useless power when computer is powered
off and WoL enabled.

Force speed lowering for WoL.
But restore it before continuing boot, when devices are unlocked,
otherwise it remains as-is.

Make it an option, to select the wanted speed, or leave it as-is.
2026-07-12 20:20:32 +02:00
Julien Coloos
cdc0b4c427 Fixed and added some comments 2026-07-12 20:20:21 +02:00
Julien Coloos
d5f066f066 Fix kernel panic when network setup fails
If there is no network, we skip the dropbear (SSH) part and only want to
allow unlocking on console.
However, with previous changes/refactoring, in this case the script to
run was not properly set up as expected.

Moved the concerned code so that script setup is performed in all cases.

Also do a last check to warn and skip in case of missing script, which
is preferable to a kernel panic.
2026-07-12 20:17:11 +02:00
Julien Coloos
14a74a0385 Fixed a few variables declaration/reading
Depending on configuration and what happens, some variable may not be
initialized.
2026-07-12 20:15:29 +02:00
Julien Coloos
6c1945a787 Wait 2s before powering off.
So that message is visible if user is on console.
2026-07-12 20:14:00 +02:00
Julien Coloos
3763703471 Refactor README
Add new option, and have install script mention README for details.
2026-07-12 20:12:58 +02:00
Julien Coloos
2335b859fa Refactor messages printing/logging
Add option to also log to ksmg.
2026-07-12 20:08:40 +02:00
Julien Coloos
32f45a9121 v1.1-2 1.1-2 2025-11-15 15:20:36 +01:00
Julien Coloos
7d866bdfca Use full version (pkgver and pkgrel) for source archive name
Sometimes we need to change the sources, but only for minor external
dependencies diff (e.g. adding/removing upstream source), in which
case we wish to only bump pkgrel.
2025-11-15 15:14:07 +01:00
Julien Coloos
8e5153d002 Removed 11-dm-initramfs.rules, which was added to 10-dm.rules
See: 589e0397ea
2025-11-15 15:12:46 +01:00
Julien Coloos
22da78cdef v1.1-1 1.1-1 2022-03-24 21:58:20 +01:00
Julien Coloos
d34b39b77f Refactored install script
Re-arrange and add comments to more easily spot code coming from other
hooks.
2022-03-24 21:52:03 +01:00
Julien Coloos
8f92d149eb Update help message after install
Show up-to-date options details.
2022-03-24 21:49:09 +01:00
Julien Coloos
f20941d376 Options to re-enable WOL and start a full shell
Adding ethtool - to allows chaning WOL settings - does not add much more
dependencies compared to the core ones (network, dropbear, cryptsetup).

Refactor script for easier maintenance.

v1.0-1
1.0-1
2021-11-13 21:02:49 +01:00
Julien Coloos
a2924457d3 Use SHA256 checksums instead of MD5 2021-11-13 17:00:58 +01:00
Julien Coloos
c3cafcf6cd Try to print network devices information when interface setup fails
Useful to check interfaces name and MAC address.

v0.9-1
0.9-1
2021-10-24 17:56:16 +02:00
Julien Coloos
b3e9382f08 Example to convert existing OpenSSH key to PEM format 0.8-1 2021-08-15 23:07:37 +02:00
Julien Coloos
8ebd239c7a Include 'libgcc_s.so.1' for proper LUKS v2 support
v0.8-1
2021-08-15 22:58:32 +02:00
Julien Coloos
bc04382857 Drop 'dsa' and add 'ed25519' private key support
Update README: dropbearconvert requires OpenSSH keys in PEM format.

Changed installation script to rely on variables, especially the list of
handled private key types, to that it automatically packages expected
private keys, instead of having to explicitely name/package them.
0.7-1
2020-07-14 16:22:54 +02:00
Julien Coloos
e47043f3a1 Drop '-m' option when calling dropbear
Latest ArchLinux versions does not handle it.
Boot fs is unlikely to have motd anyway.

v0.6-1
0.6-1
2018-03-13 22:20:27 +01:00
Julien Coloos
4c1a7741d6 README: don't forget to update ChangeLog when necessary 2018-03-13 22:17:19 +01:00
Julien Coloos
6167cbc9cd More details on installation and configuration
Mention dropbear SSH key generation (or conversion from OpenSSH).
Give example to setup IP with grub.
Some fixes/details.
2017-09-03 21:34:10 +02:00
Julien Coloos
a13fecf645 Add comment about keymap HOOK when using non-standard keyboard layout 2017-07-09 16:17:19 +02:00
Julien Coloos
d94d257cf6 Fix cryptsetup additional arguments handling
Quoting used in script prevented them ot be properly passed.
Also added a debug mode to print some more messages about ongoing actions.
0.5-1
2017-06-25 20:07:07 +02:00
Julien Coloos
e5ee05f382 Fixed TRIM option handling in /etc/crypttab
'discard' ('allow-discards' being the switch name to use in cryptsetup)

v0.4-1
0.4-1
2017-06-25 18:22:53 +02:00
Julien Coloos
cf6ccb2d23 Updated changelog 0.3-1 2015-11-22 19:05:58 +01:00
Julien Coloos
724d6a6bf0 Handle optional ipconfig timeout
Specify timeout for ipconfig so that we can still boot while network is done.
Otherwise ipconfig remains stuck (until IP can be configured). If not given
we default to 10s.

Minor code refactoring.

Moved configuration file from /etc/dropbear/initrd.env to /etc/initcpio/sshcs_env since
it now contains options for ipconfig and not only dropbear. Package installation script
move legacy file to new path if present.

v0.3-1
2015-11-22 18:54:57 +01:00
Julien Coloos
b61e50ebe8 v0.2-1 0.2-1 2014-05-20 22:53:17 +02:00
Julien Coloos
9443a3bb6b Configurable timeout before automatic poweroff 2014-05-20 22:39:32 +02:00
Julien Coloos
3b3cf4b944 killall is already available, no need for extra dependency 2014-05-20 22:38:45 +02:00
Julien Coloos
3e089a0ddb Initial commit 0.1-1 2014-05-19 22:46:59 +02:00