<!doctype html>
<html>
 <head> 
  <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"> 
 </head>
 <body> 
  <div class="default-style"> 
   <div class="default-style">
     Hello FAI Users! 
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style">
     I have encountered a problem with the "setup-storage" module, I hope you can help me. 
   </div> 
   <div class="default-style"> 
    <br>I've already read the manpage, but the example doesn't work for "Plain disk + LUKS + LVM2 example" 
    <br>https://fai-project.org/doc/man/setup-storage.html or better formatting at: https://manpages.debian.org/bookworm/fai-setup-storage/setup-storage.8.en.html . 
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style">
     I want FAI to create finally following disk layout: 
   </div> 
   <div class="default-style">
     RAID1 (2 Disks), encrypted with LUKS and LVM 
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style">
     As first step I've tried to implement LVM. 
    <br>This works without problems (with the included example). 
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style">
     As second step, I've tried LUKS with LVM. 
   </div> 
   <div class="default-style">
     But now my GRUB Bootloader can't find the encrypted LVM Pool. 
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style">
     It seems like FAI does not modify GRUB for LUKS decryption. 
    <br>But I don't know if this must be done (I'm coming from Arch, but Debian is not my main world) 
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style">
     My disk_config is this (<a href="https://bin.tiekoetter.com/?b84e7e543b813b3b#76tQEgA77NzMg8aSM6dQeTYyJizcmNyfu75JS7pDxxrP">https://bin.tiekoetter.com/?b84e7e543b813b3b#76tQEgA77NzMg8aSM6dQeTYyJizcmNyfu75JS7pDxxrP</a>), or in this Email: 
    <br>===== 
    <br>disk_config disk1 fstabkey:uuid align-at:1M 
   </div> 
   <div class="default-style">
     primary /boot 500 ext4 rw,noatime 
    <br>primary - 4G- - - 
   </div> 
   <div class="default-style">
     disk_config cryptsetup 
   </div> 
   <div class="default-style">
     luks:"passwd" - disk1.2 - - 
   </div> 
   <div class="default-style">
     disk_config lvm fstabkey:uuid 
   </div> 
   <div class="default-style">
     vg vg1 disk1.2 
    <br>vg1-root / 3G- ext4 noatime,rw 
    <br>===== 
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style">
     The error message from a FAI Client (Screenshot). 
    <br>See Attachment! 
   </div> 
   <div class="default-style"> 
    <br>Now the question is, how can this be realized? 
    <br>Does FAI do not configure GRUB for LVM decryption? 
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style">
     Or is only my disk config wrong? 
   </div> 
   <div class="default-style">
     Have you similar setups configured with FAI? 
    <br>Can you give me some Code snippets? 
    <br>The best would be a finished setup with RAID1 + LVM + LUKS. 
   </div> 
   <div class="default-style">
       
   </div> 
   <div class="default-style"> 
    <br>Greetings from Germany (near Frankfurt am Main). 
    <br>Paul Berz 
   </div> 
  </div> 
 </body>
</html>