Coder Social home page Coder Social logo

Comments (6)

Andrei-Pozolotin avatar Andrei-Pozolotin commented on August 25, 2024

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.

julianbrost avatar julianbrost commented on August 25, 2024

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.

julianbrost avatar julianbrost commented on August 25, 2024

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.

Andrei-Pozolotin avatar Andrei-Pozolotin commented on August 25, 2024

an easier solution for root device timeout could be:

  1. remove root=/dev/mapper/root from kernel command line

  2. provide /sysroot/ folder in the /boot/initramfs-linux.img

  3. 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.

accensi avatar accensi commented on August 25, 2024

Two noob questions:

  1. How to provide the /sysroot folder?
  2. Why not x-systemd.device-timeout=0, for waiting indefinetly?

from mkinitcpio-systemd-tool.

Andrei-Pozolotin avatar Andrei-Pozolotin commented on August 25, 2024

/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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.