RAID 0 Disk config.

Marc Hoppins marc.hoppins at eset.com
Wed Apr 5 10:25:30 CEST 2023


Forgive my ignorance, I understand the basic use of FAI but I had no hand in installing the suite or configuring it, so I am more than happy to learn more about the mechanics of it.

You said wipe-all was a script and partition.WIPEDISK is a hook, yet you suggest putting wipe-all into the hooks directory.

/srv/fai/config/hooks $ ls
debconf.CENTOS  instsoft.DEBIAN  repository.CENTOS  setup.DEFAULT.sh   updatebase.DEBIAN
debconf.IMAGE   instsoft.UBUNTU  savelog.LAST.sh    updatebase.CENTOS  updatebase.UBUNTU

would include partition.WIPEDISK (wipe-all script)

and in 50-host-classes we have (eg)
    *-dbnode*)
        echo "FAIBASE UBUNTU FOCAL64 BOND JUMBO-DBNODE GRUB_EFI" ;;

The fact that hooks, classes, and more have similar naming is a bit confusing.  However, the new class definition for the above example would then be:

    *-dbnode*)
        echo "FAIBASE UBUNTU WIPEDISK FOCAL64 BOND JUMBO-DBNODE GRUB_EFI" ;;

-----Original Message-----
From: linux-fai <linux-fai-bounces at uni-koeln.de> On Behalf Of Thomas Lange
Sent: Wednesday, April 5, 2023 9:57 AM
To: fully automatic installation for Linux <linux-fai at uni-koeln.de>
Subject: RE: RAID 0 Disk config.

EXTERNAL


>>>>> On Wed, 5 Apr 2023 07:34:11 +0000, Marc Hoppins via linux-fai <linux-fai at uni-koeln.de> said:

    > Would the wipe-all script sit in class, like

    > 20-hwdetect.sh
    > 21-wipe-all.sh
No, put those script into hooks/
and name them for e.g. partition.WIPEDISKS

Then it get executed before the partitioning task starts if the class WIPEDISKS is defined.

--
viele Grüße Thomas


More information about the linux-fai mailing list