cryptsetup with FAI 4.3.1 (Debian Jessie)

Bob Apodaca bob at phxlab.honeywell.com
Tue May 16 19:24:25 CEST 2017


From: linux-fai [mailto:linux-fai-bounces at uni-koeln.de] On Behalf Of Bob Apodaca
Sent: Tuesday, May 16, 2017 8:48 AM
To: linux-fai at uni-koeln.de
Subject: cryptsetup with FAI 4.3.1 (Debian Jessie)



I'm trying to make an encrypted partition and getting errors.  Here are my files:



# <type> <mountpoint> <size>   <fs type> <mount options> <misc options>

disk_config disk1 disklabel:gpt bootable:1 fstabkey:uuid

primary -             1M       -         -

primary /             8192     ext4      rw,errors=remount-ro createopts="-L root"

primary swap          1024     swap      sw              createopts="-L swap"

primary /home         5120     ext4      rw,errors=remount-ro createopts="-m 1 -L home"

primary /var/log      2048     ext4      rw,errors=remount-ro createopts="-L var_log"

primary /tmp          4096     ext4      rw,errors=remount-ro createopts="-L tmp"

primary -             2048-    -         -



disk_config cryptsetup

luks:"test" /var/data disk1.7  ext3      rw,errors=remount-ro createopts="-L data"







and here is some output from fai.log:



Executing: wipefs -a /dev/sda7

...

Executing: parted -s /dev/sda mkpart primary "" 21476933632B 80026344959B

...

Executing: head -c 2048 /dev/urandom | od | tee /tmp/fai/crypt_dev_sda7

Executing: yes YES | cryptsetup luksFormat /dev/sda7 /tmp/fai/crypt_dev_sda7 -c aes-cbc-essiv:sha256 -s 256

Executing: cryptsetup luksOpen /dev/sda7 crypt_dev_sda7 --key-file /tmp/fai/crypt_dev_sda7

Executing: yes 'test' | cryptsetup luksAddKey --key-file /tmp/fai/crypt_dev_sda7 /dev/sda7

Executing: yes 'test' | cryptsetup luksRemoveKey /dev/sda7 /tmp/fai/crypt_dev_sda7

Executing: mkfs.ext3 -L data /dev/mapper/crypt_dev_sda7

/dev/sda5 UUID=073bb05a-c5c0-454c-8ba7-034b4d927da7

/dev/sda5 LABEL=var_log

/dev/sda4 UUID=342b98dc-bc5f-40fd-bb7d-001b38c057ee

/dev/sda4 LABEL=home

/dev/sda3 UUID=b055a193-3dfe-4c4a-b569-84534ddd39b0

/dev/sda3 LABEL=swap

/dev/sda6 UUID=76199b90-db2d-4b2a-b43c-f721639379d0

/dev/sda6 LABEL=tmp

/dev/sda2 UUID=8270d805-b35d-46fb-bb8f-d602aec8bd26

/dev/sda2 LABEL=root

Calling task_mountdisks

Enable swap device /dev/sda3

Mounting UUID=8270d805-b35d-46fb-bb8f-d602aec8bd26 to /target/

mount: unknown filesystem type 'ext4'

Error in task mountdisks. Code: 885

Traceback: task_error task_mountdisks task task_install task task_action task main

Source hook: savelog.LAST.source

ERRORS found in log files. See /tmp/fai/error.log



--------------------------------------------------------------------------------------------------------------------------------------------------------------------------



Two apologies:

1.       My mail client stinks

2.       I had rebuilt the NFSROOT and forgot to update the kernel/initrd on my USB stick causing this error.





-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.uni-koeln.de/pipermail/linux-fai/attachments/20170516/acc93d0d/attachment-0001.html>


More information about the linux-fai mailing list