initramfs-tools/scripts/local-bottom/clevis: ps: invalid option -- 'o'

Bug #2065149 reported by Benjamin Drung
6
This bug affects 1 person
Affects Status Importance Assigned to Milestone
clevis (Ubuntu)
New
Undecided
Unassigned

Bug Description

As seen on Ubuntu 24.04 (noble) in the logs of bug #2065037:

```
+ /scripts/local-bottom/clevis
ps: invalid option -- 'o'
BusyBox v1.36.1 (Ubuntu 1:1.36.1-6ubuntu3) multi-call binary.

Usage: ps

Show list of processes

 w Wide output
 l Long output
```

busybox does not have the -o option on ps. Please make it work with busybox.

Revision history for this message
Stefano (luckylinux777) wrote (last edit ):

Please be aware, not sure if relevant, that I applied a fix in attempt to speedup the boot time.

As we discussed, this was mainly due to DHCPCD, but before we got to that conclusion I had attempted to apply the fix described here (a few days ago):
https://github.com/latchset/clevis/issues/289#issuecomment-1322633750

Specifically adding `--connect-timeout 15` to the `curl` command like this in `/usr/bin/clevis-decrypt-tang`:
`if ! rep="$(curl --connect-timeout 15 -sfg -X POST -H "$ct" --data-binary @- "$rec_url" <<< "$xfr")"; then
`

I also attempted to fix `/usr/bin/clevis-encrypt-tang`:
`elif ! jws="$(curl --connect-timeout 15 -sfg "$url/adv/$thp")"; then`

And `/usr/bin/clevis-luks-report`:
`if ! jws="$(curl --connect-timeout 15 -sfg "${url}/adv")"; then`

(I don't know if this is relevant for this issue, but I just post it in case it might be, because it's best if you know all the Details rather than losing time hunting ghosts)

To post a comment you must log in.
This report contains Public information  
Everyone can see this information.

Other bug subscribers

Remote bug watches

Bug watches keep track of this bug in other bug trackers.