#1063146 fai-setup-storage: New dependency on /usr/lib/fai/subroutines

#1063146#5
Date:
2024-02-05 11:40:13 UTC
From:
To:
We use the fai-setup-storage utility in a standalone way (i.e. not
with the rest of FAI) as part of our local installation and
configuration scripts. This has always worked perfectly up to version
6.0.

With the recent changes in 6.2 the fai-disk-info script now requires
/usr/lib/fai/subroutines which is in the fai-client package but there
is no dependency declared. If the fai-client package is not installed
setup-storage will now completely fail to run.

Regards,

Stephen Quinney

#1063146#10
Date:
2024-02-06 14:30:10 UTC
From:
To:
Actually it's worse than that. Even with the fai-client package
installed I cannot run fai-disk-info

With version 6.0 I get:

/usr/lib/fai/fai-disk-info
sda

with version 6.2 I get:

/usr/lib/fai/fai-disk-info
bash: set_bootstick: command not found
bash: once_only: command not found
bash: all_disks_and_size: command not found
bash: checkdisk: command not found

which in turn breaks the setup-storage utility.

Regards,

Stephen Quinney

#1063146#15
Date:
2024-02-07 01:35:16 UTC
From:
To:
Hi Stephen,

thanks for the report. setup-storage does not need fai-client if you
use the option -D and specify the list of disks.

So it's not always needed. But I will prepare a patch for it.

#1063146#20
Date:
2024-02-07 01:38:52 UTC
From:
To:
I can add a Depends or Recommends on fai-client for the package
fai-setup-storage. What do you think is better?