Comments (6)
please test with keep alive settings
https://linux.die.net/man/8/dropbear
-K timeout_seconds
Ensure that traffic is transmitted at a certain interval in seconds. This is useful for working around firewalls or routers that drop connections after a certain period of inactivity. The trade-off is that a session may be closed if there is a temporary lapse of network connectivity. A setting if 0 disables keepalives.
from mkinitcpio-systemd-tool.
This did not change anything. As far as I can tell, -K
only affects open connections. The issue I'm describing here also happens without any open connection. I suspect that there is a dependency missing somewhere.
from mkinitcpio-systemd-tool.
I found a workaround: adding a file /etc/systemd/system/dev-system-root.device.d/depend-on-cryptsetup.conf
to the initrd with the following contents:
[Unit]
JobTimeoutSec=0
Requires=cryptsetup.target
But I'm not sure if that's the best solution and it would be nice if it just works by default.
from mkinitcpio-systemd-tool.
an easier solution for root device timeout could be:
-
remove
root=/dev/mapper/root
from kernel command line -
provide
/sysroot/
folder in the/boot/initramfs-linux.img
-
declare long timeout in
/boot/initramfs-linux.img/ucpio://etc/fstab
:
# provide here root partition description (instead of kernel command line)
# <file system> <dir> <type> <option> <dump> <pass>
/dev/mapper/root /sysroot auto x-systemd.device-timeout=9999h 0 1
see details:
http://man7.org/linux/man-pages/man7/bootup.7.html
https://www.freedesktop.org/software/systemd/man/systemd.mount.html
https://www.freedesktop.org/software/systemd/man/systemd-fstab-generator.html
from mkinitcpio-systemd-tool.
Two noob questions:
- How to provide the /sysroot folder?
- Why not x-systemd.device-timeout=0, for waiting indefinetly?
from mkinitcpio-systemd-tool.
/sysroot
: now included in service by default:
https://github.com/random-archer/mkinitcpio-systemd-tool/blob/master/initrd-cryptsetup.service#L37
x-systemd.device-timeout
: there is no default, per docs:
https://www.freedesktop.org/software/systemd/man/systemd.mount.html
but please try and report back
from mkinitcpio-systemd-tool.
Related Issues (20)
- Instances of templated service units are currently not supported
- boot loop with systemd 253 HOT 1
- initrd-shell should not use /root/.ssh/authorized_keys HOT 1
- 38: InitrdPath for authorized_keys is not correct
- Custom authorized_keys implemented in #104 breaks existing installations HOT 2
- Error running initrd-shell.sh on boot
- update systemd/udev groups HOT 1
- Dropbear does not work on fresh installation HOT 2
- protect root user password hash
- Provide LUKS passphrase via SSH non-interactively HOT 4
- Wireless interface name not restored after initrd HOT 1
- Configuration permissions issue HOT 1
- Unlocking SED drives HOT 4
- [tinyssh-convert] command usage changed HOT 3
- Proposal to move upstream HOT 6
- Required dependencies HOT 2
- Get a remote key to open a luks device HOT 1
- Has this project been abandoned? HOT 2
- tpm2-tss libraries are not installed to the initrd. They are required for TPM unlock. HOT 1
- FIDO2 PIN input support
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mkinitcpio-systemd-tool.