You are not logged in.
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
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
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
I hope any of you can help me here...
I have the same issue, I'd like to try your workaround but I can't find the cryptroot-script in the first place!
find: ‘cryptroot’: No such file or directory
Thanks!
Offline
Hi,
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?
Commenting exit 1 did not solve the issue, unless I misunderstood the fix!
Offline