Cryptsetup not found in PATH

2021-09-08 Thread bruno pinto
hello everyone, 
I have a problem installing a client. 
I would like to partition the client with cryptsetup but during the 
installation it gives me an error: "cryptsetup not found in the PATH" while I 
have installed cryptsetup in my server. 
My partition is called LVM CRYPT, here is its content:


# entire disk with LVM, separate /home

disk_config disk1 disklabel:gpt bootable:1 fstabkey:uuid align-at:1M

primary /boot/efi 512M  vfatrw
primary /boot   200 ext2rw,noatime
primary -   4G- -   -

disk_config cryptsetup
luks:"passwd" - disk1.3 -   -

disk_config lvm fstabkey:uuid
vg vg1  disk1.3
vg1-root /   3G-50G   ext4noatime,rw
vg1-swap swap200-4G   swapsw
vg1-home /home   600- ext4noatime,nosuid,nodev,rw

Can someone help me please?

--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 200 Pce 033
BP 33 91898 Orsay Cédex
---


Re: Cryptsetup not found in PATH

2021-09-08 Thread bruno pinto
Hello Robert, 
Thank you very much you help a lot :D 
Cheers 
Bruno 
--- 
Bruno FERREIRA PINTO TEL:0164468580 
Service Informatique 
IJCLab 
IN2P3/CNRS 
Universite Paris-Sud 11 
Rue André Ampere Bt 200 Pce 033 
BP 33 91898 Orsay Cédex 
- 


De: "Robert Markula"  
À: linux-fai@uni-koeln.de 
Envoyé: Mercredi 8 Septembre 2021 14:48:09 
Objet: Re: Cryptsetup not found in PATH 

Hey Bruno, 

you have to add the 'cryptsetup' package to the NFSroot. To do so, open your 
/etc/fai/NFSROOT and add these lines: 

PACKAGES install-norec 
cryptsetup 

Recreate the NFSroot via: 

fai-make-nfsroot -fv 

and you should be good to go. 

Cheers, 


Robert 


Am 08.09.21 um 14:08 schrieb bruno pinto: 



hello everyone, 
I have a problem installing a client. 
I would like to partition the client with cryptsetup but during the 
installation it gives me an error: "cryptsetup not found in the PATH" while I 
have installed cryptsetup in my server. 
My partition is called LVM CRYPT, here is its content:


# entire disk with LVM, separate /home

disk_config disk1 disklabel:gpt bootable:1 fstabkey:uuid align-at:1M

primary /boot/efi 512M  vfatrw
primary /boot   200 ext2rw,noatime
primary -   4G- -   -

disk_config cryptsetup
luks:"passwd" - disk1.3 -   -

disk_config lvm fstabkey:uuid
vg vg1  disk1.3
vg1-root /   3G-50G   ext4noatime,rw
vg1-swap swap200-4G   swapsw
vg1-home /home   600- ext4noatime,nosuid,nodev,rw

Can someone help me please?

--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 200 Pce 033
BP 33 91898 Orsay Cédex
--- 






Root Password,

2021-09-24 Thread bruno pinto
Good afternoon everyone,

I have a question about the encryption of the password ROOT.
I followed the FAI Guide and the guide tell to encrypt the password with 
mkpasswd, after that the guide tell to put into the file "FAIBASE.var" in the 
variable $ROOTPWto put on $ROOTPW.
The command it's "echo "passwd" | mkpasswd -m md5 -s"
But I have a problem when I encrypt my password and when the desktop client 
finished the installation, the user don't have the password I put in.
Someone could help me find the solution please?

Kind regards,
--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 200 Pce 033
BP 33 91898 Orsay Cédex
---


Re: Root Password,

2021-09-28 Thread bruno pinto
Hello,
But my problem it's the password because I wanted to generate a personal 
password when I utilized the mkpasswd, after the installation the password I 
wanted it's not the good one.
I utilized the same command line of the FAI Guide. But after the installation 
of the client, the user standard don't have the good password.
Kind regards,
--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 200 Pce 033
BP 33 91898 Orsay Cédex
---

- Mail original -
De: "Thomas Lange" 
À: "fully automatic installation for Linux" 
Envoyé: Vendredi 24 Septembre 2021 16:50:40
Objet: Re: Root Password,

>>>>> On Fri, 24 Sep 2021 16:31:43 +0200 (CEST), bruno pinto 
>>>>>  said:

> But I have a problem when I encrypt my password and when the desktop 
client finished the installation, the user don't have the password I put in.
> Someone could help me find the solution please?

For the user account we have this in class/FAIBASE.bar

# a user account will be created
username=demo
USERPW='$1$kBnWcO.E$djxB128U7dMkrltJHPf6d1'


-- 
viele Grüße Thomas


Problem with boot crypt

2021-09-30 Thread bruno pinto
Hello everyone,
I have a little problem in my partitioning.
I wanted to make a LVM crypt to my desktop client and in the end of the 
installation the client don't boot in the system.
It seems that the boot stop in initramfs as if it could not decrypt the root 
partition.
Here we have the partition:
#

# entire disk with LVM, separate /home

disk_config disk1 disklabel:gpt bootable:1 fstabkey:uuid align-at:1M
primary /boot   100M   ext4  rw,noatime
primary /boot/efi   100M   vfat  rw
primary  -  200M-   --

disk_config cryptsetup
luks:"passwd" - disk1.3 - -

disk_config lvm fstabkey:uuid
vg vg1  disk1.3
vg1-root /   100Gext4   rw,noatime,errors=remount-ro
vg1-swap swap16G swap   sw
vg1-home /home   100-ext4   rw,noatime,nosuid,nodev createopts="-L home 
-m 1" tuneopts="-c 0 -i 0"

Thank for you help,
--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 200 Pce 033
BP 33 91898 Orsay Cédex
---


Re: Problem with boot crypt

2021-09-30 Thread bruno pinto
I have the package cryptsetup in my package list.
I think it's the only one i nedeed.
Kind regards,
--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 200 Pce 033
BP 33 91898 Orsay Cédex
---

- Mail original -
De: "Thomas Lange" 
À: "fully automatic installation for Linux" 
Envoyé: Jeudi 30 Septembre 2021 12:59:52
Objet: Re: Problem with boot crypt

>>>>> On Thu, 30 Sep 2021 12:20:34 +0200 (CEST), bruno pinto 
>>>>>  said:

> I have a little problem in my partitioning.
> I wanted to make a LVM crypt to my desktop client and in the end of the 
installation the client don't boot in the system.
> It seems that the boot stop in initramfs as if it could not decrypt the 
root partition.
Have you checked if the crypt packages that are needed are also
installed onto your system?

-- 
regards Thomas


Re: Problem with boot crypt

2021-09-30 Thread bruno pinto
Hello,
When I crypt my partition with cryptsetup, what packages would i need besides 
cryptsetup?
Kind regards,
--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 200 Pce 033
BP 33 91898 Orsay Cédex
---

- Mail original -
De: "bruno pinto" 
À: "fully automatic installation for Linux" 
Envoyé: Jeudi 30 Septembre 2021 13:21:58
Objet: Re: Problem with boot crypt

I have the package cryptsetup in my package list.
I think it's the only one i nedeed.
Kind regards,
--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 200 Pce 033
BP 33 91898 Orsay Cédex
---

- Mail original -
De: "Thomas Lange" 
À: "fully automatic installation for Linux" 
Envoyé: Jeudi 30 Septembre 2021 12:59:52
Objet: Re: Problem with boot crypt

>>>>> On Thu, 30 Sep 2021 12:20:34 +0200 (CEST), bruno pinto 
>>>>>  said:

> I have a little problem in my partitioning.
> I wanted to make a LVM crypt to my desktop client and in the end of the 
installation the client don't boot in the system.
> It seems that the boot stop in initramfs as if it could not decrypt the 
root partition.
Have you checked if the crypt packages that are needed are also
installed onto your system?

-- 
regards Thomas


Problem decryption disk

2021-10-13 Thread bruno pinto
Hello,
When I encrypt my client's disk with cryptsetup, at the end of the installation 
it reboots. 
Everything is going well. 
But when it boots after install, the boot sends me to the initriamfs. 
We think he can't decrypt the encrypted disk. Thomas told me about a package 
story. I already have the cryptsetup package configured on my server but do I 
need to put other packages that are unknown to me.
Anyone could help me?
Kind regards,

--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 200 Pce 033
BP 33 91898 Orsay Cédex
---


UEFI+LVM+LUKS

2021-10-21 Thread bruno pinto
Hello to all,
After installing my client, the client doesn't boot on ubuntu but on BusyBox. 
I think that it can't decrypt the disk during the boot.
I use this type of partition:
#  .

# whole disk with LVM, separate /home

disk_config disk1 disklabel:msdos bootable:2 fstabkey:uuid
primary /boot 200M ext4 rw,noatime
primary /boot/efi 100M vfat rw
primary - 200M- - -

disk_config cryptsetup
luks: "IJCLAB019" - disk1.3 - -

disk_config lvm
vg vg1 disk1.3
vg1-root / 100G ext4 rw,noatime,errors=remount-ro
vg1-swap swap 16G swap defaults
vg1-home /home 100- ext4 rw,noatime

I have already installed all the necessary cryptsetup packages: crypsetup, 
cryptsetup-run and cryptsetup-initriamfs.
Can anyone help me please?

Kind regards,
--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 100A Pce A118
91898 Orsay Cédex
---


Install with cryptetup

2021-11-10 Thread bruno pinto
Hello everyone,
I need some help with the install of one computer.
To install my pc, I would like to encrypt my entire disk except the /boot/efi 
partition.
Is there anyone who has successfully done an encrypted install, with 
cryptsetup, in the whole disk?
Could you help me solve this?
Kind regards,
--- 
Bruno FERREIRA PINTOTEL:0164468580
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 100A Pce A118
91898 Orsay Cédex
---


Ubuntu 22.04

2022-05-18 Thread bruno pinto
Hello , 

When will the new version of ubuntu be available in the Fai basefiles?

Or is there another way to generate your own basefile?

Kind regards,
Bruno Pinto

--- 
Bruno FERREIRA PINTO
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 100A Pce A118
91898 Orsay Cédex
---


Dracut : Could not boot

2022-07-11 Thread bruno pinto
Hello everyone,
I need some help in my problem.
Last friday, I receive a new laptop to install by FAI (Dell Precision 5570) , 
and when I boot by PXE with FAI, I have a message lie this:
"dracut: Warning: could not boot"
I search the solutions these two days but no results.
The problem I can't understand is that no computer has ever done this to me 
before.
If anyone could help me, I would be very grateful.
Kind regards 
Bruno Pinto

--- 
Bruno FERREIRA PINTO
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 100A Pce A118
91898 Orsay Cédex
---


Re: Dracut : Could not boot

2022-07-11 Thread bruno pinto
Hello Mr Lange,
Well I do the installation by network.
How I proceed to install the non free firmware in the initrd of FAI?

Kind regards,
--- 
Bruno FERREIRA PINTO
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 100A Pce A118
91898 Orsay Cédex
---

- Mail original -
De: "Thomas Lange" 
À: "fully automatic installation for Linux" 
Envoyé: Lundi 11 Juillet 2022 15:57:40
Objet: Re: Dracut : Could not boot

>>>>> On Mon, 11 Jul 2022 15:02:26 +0200 (CEST), bruno pinto 
>>>>>  said:

> Last friday, I receive a new laptop to install by FAI (Dell Precision 
5570) , and when I boot by PXE with FAI, I have a message lie this:
Do you do a network installation with FAI? Or do you boot a FAI ISO
from USB/CD,?

> "dracut: Warning: could not boot"
This may be because of an unknown hardware device. If you do the
network installation, the ethernet device must be activated. Otherwise
the USB device containing the ISO will be used.
Maybe your ethernet device needs some nonfree firmware, which is not
included into the initrd that dracut is using.

Do you have any more detailed warning/error message?
-- 
regards Thomas


Re: Dracut : Could not boot

2022-07-12 Thread bruno pinto
I have inside the NFSROOT : firmware-linux-nonfree
I know what firmware I need: 
https://fwupd.org/lvfs/devices/com.dell.uefi398c4c37.firmware
Kind regards,
--- 
Bruno FERREIRA PINTO
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 100A Pce A118
91898 Orsay Cédex
---

- Mail original -
De: "Thomas Lange" 
À: "fully automatic installation for Linux" 
Envoyé: Lundi 11 Juillet 2022 17:03:44
Objet: Re: Dracut : Could not boot

>>>>> On Mon, 11 Jul 2022 16:08:57 +0200 (CEST), bruno pinto 
>>>>>  said:

> Well I do the installation by network.
> How I proceed to install the non free firmware in the initrd of FAI?
First check if you have the nonfree firmware inside the nfsroot. Do
you know which firmware you need?

-- 
regards Thomas


Re: Dracut : Could not boot

2022-07-18 Thread bruno pinto
Hello Thomas,
How you put in the initrd the new firmwar?
Thanks a lot,
--- 
Bruno FERREIRA PINTO
Service Informatique
IJCLab
IN2P3/CNRS
Universite Paris-Sud 11
Rue André Ampere Bt 100A Pce A118
91898 Orsay Cédex
---

- Mail original -
De: "Thomas Lange" 
À: "fully automatic installation for Linux" 
Envoyé: Mercredi 13 Juillet 2022 09:20:39
Objet: Re: Dracut : Could not boot

>>>>> On Tue, 12 Jul 2022 13:47:29 +0200 (CEST), bruno pinto 
>>>>>  said:

> I have inside the NFSROOT : firmware-linux-nonfree
> I know what firmware I need: 
https://fwupd.org/lvfs/devices/com.dell.uefi398c4c37.firmware
Using this command you can see which files are included in the initrd
that FAI is using:

/srv/fai/nfsroot/usr/bin/lsinitrd /srv/fai/nfsroot/boot/initrd.img* | less

-- 
regards Thomas