Hi Thomas,
That looks fantastic. Is there any examples to use these functions ?
Best regards,
Rémy
Le lun. 29 janv. 2024 à 17:31, Thomas Lange a écrit :
>
> FAI 6.2 now provides some helper functions to create your own disklist:
>
> grepv_disks()
> grep_disks()
> notmatchdisks()
>
> On Wed, 31 Jan 2024 11:15:46 +0100, Rémy Dernat said:
> Hi Thomas,
> That looks fantastic. Is there any examples to use these functions ?
No, the documentation is really bad. In FAI the disk list is created
by these two steps:
set_bootstick
all_disks_and_size | checkdisk $FAI_BOOTS
Ok, Thanks Thomas.
So, let's say I want to get a `$disklist` as an environment variable
for the setup-storage step (or '-D'), and this disklist is :
`$(newdisk_list=$(all_disks_by_size |sort -r | tr "\n" " ")`
How could I change my disk_config file to use this new list ? By
modifying `class/20-hw
I know I could change directly the subroutine code from the
"set_disk_info" function, but if I can avoid doing this and doing
something better / cleaner...
Le mer. 31 janv. 2024 à 12:48, Rémy Dernat a écrit :
>
> Ok, Thanks Thomas.
>
> So, let's say I want to get a `$disklist` as an environment v
Hi all,
that is the example how to change the shell variable $disklist:
https://fai-project.org/download/misc/99-disklist.sh
Create the script class/99-disklist.sh in your config space (/s/rv/fai/config)
These are the imprtant lines:
if [ -n "$newlist" ]; then
echo New disklist: $newlist