The officially official Devuan Forum!

You are not logged in.

#1 2020-06-27 19:55:57

kuleszdl
Member
Registered: 2018-11-03
Posts: 84  

Dropbear-initramfs: cryptroot-unlock says "Try again later" forever

Hi,

after installing the dropbear-initramfs package, everything looked fine. However, after SSH'ing into the busybox environment, each call to

cryptroot-unlock

resulted in the following message:

Try again later

it seems like the following check in cryptroot-unlock never passes:

if [ ! -f "$TABFILE" ] || [ "$TABFILE" -ot "/proc/1" ]; then
        # Too early, init-top/cryptroot hasn't finished yet
        echo "Try again later" >&2
        exit 1
fi

Workaround: Uncomment the line with "exit 1", then everything should work.

Is this check systemd-related?

Offline

#2 2020-06-28 18:56:24

bgstack15
Member
Registered: 2018-02-04
Posts: 158  

Re: Dropbear-initramfs: cryptroot-unlock says "Try again later" forever

The logic says this:
If (file $TABFILE does not exist) or ( $TABFILE is older than /proc/1) then,
display the error message
return a non-zero result
end-if.

So the creation date of process number 1 (the init, so most likely sysvinit, but doesn't really matter for merely checking the date) is when that process started. So if the tab file (I'm assuming crypttab, as in encrypted filesystem table, but I could be wrong) is older than the current init, then that is a failure state for your check. So it sounds like, in conjunction with the comment, that we need something else to happen first before cryptroot-unlock will work successfully.

So it's not systemd-related. But I don't know the specifics of cyrptroot or dropbear so that's probably all I can help you with.


This space intentionally left blank.

Offline

#3 2020-07-05 19:53:09

kuleszdl
Member
Registered: 2018-11-03
Posts: 84  

Re: Dropbear-initramfs: cryptroot-unlock says "Try again later" forever

Thanks, well the issue here was that I tried to move from an unencrypted to an encrypted system which resulted in a inproper initramfs.

Offline

Board footer