# Cryptsetup Unsupported LUKS version 2

**URL:** <https://community.ipfire.org/t/cryptsetup-unsupported-luks-version-2/6969>\
**Category:** Add-Ons\
**Created:** [4 January 2022 14:34 UTC](https://community.ipfire.org/t/cryptsetup-unsupported-luks-version-2/6969 "2022-01-04T14:34:44Z")\
**Posts on this page:** 6\
**Page:** 3

<div class="post-metadata">

**Author:** ![dyle](https://community.ipfire.org/user_avatar/community.ipfire.org/dyle/32/8232_2.png) [@dyle](https://community.ipfire.org/u/dyle)\
**Post date:** [10 January 2022 15:56 UTC](https://community.ipfire.org/t/cryptsetup-unsupported-luks-version-2/6969/41 "2022-01-10T15:56:44Z")

</div>

> [@bonnietwin](#):
>
> These two names must be the same and the same as the name used in make.sh in the lfs2make line.

Thanks for the help the build is already running.  
Report me ((=

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [10 January 2022 16:32 UTC](https://community.ipfire.org/t/cryptsetup-unsupported-luks-version-2/6969/42 "2022-01-10T16:32:47Z")

</div>

It’s an easy enough mistake to make. I am pretty sure now that it will build successfully 🤞

---

<div class="post-metadata">

**Author:** ![dyle](https://community.ipfire.org/user_avatar/community.ipfire.org/dyle/32/8232_2.png) [@dyle](https://community.ipfire.org/u/dyle)\
**Post date:** [10 January 2022 18:35 UTC](https://community.ipfire.org/t/cryptsetup-unsupported-luks-version-2/6969/43 "2022-01-10T18:35:44Z")

</div>

Under Ubuntu he is still building …

At the same time on archlinux I get this error “cdrom”

```auto
strip [7][DONE]
Building packages                                                                                                                                             
Generating packages list from logs [DONE]
cdrom [1:44][FAIL]

    sed -e "s/NAME/IPFire/g" -e "s/VERSION/2.27/g" -e "s/ARCH/x86_64/g" \
    /usr/src/config/cdrom/grub-efi.cfg > /tmp/grub-efi.cfg
    # Build a GRUB EFI image
    mkdir -pv /tmp/cdrom/EFI/BOOT
    mkdir: created directory '/tmp/cdrom/EFI'
    mkdir: created directory '/tmp/cdrom/EFI/BOOT'
    grub-mkimage \
    --format=x86_64-efi \
    --output=/tmp/cdrom/EFI/BOOT/bootx64.efi \
    --config=/tmp/grub-efi.cfg \
    --compression=xz \
    --prefix=/EFI/BOOT \
    $(for mod in all_video at_keyboard boot bitmap_scale cat chain configfile disk echo efi_gop efi_uga ext2 extcmd fat file font fxterm_menu gfxterm gfxmenu gfxterm_background gzio halt help iso9660 jpeg loadbios loadenv loopback linux ls memdisk minicmd nativedisk normal ntfs part_gpt part_msdos png probe reboot regexp search search_fs_file search_fs_uuid search_label tar test tga true usb_keyboard; do [-f "/usr/lib/grub/x86_64-efi/${mod}.mod"] && echo "${mod}"; done)
    # Install GRUB configuration
    mkdir -pv /tmp/cdrom/EFI/BOOT
    sed -e "s/NAME/IPFire/g" -e "s/VERSION/2.27/g" -e "s/ARCH/x86_64/g" \
    < /usr/src/config/cdrom/grub.cfg > /tmp/cdrom/EFI/BOOT/grub.cfg
    # Create the EFI Eltorito image
    dd if=/dev/zero of=/tmp/cdrom/boot/isolinux/efiboot.img bs=1k count=1440
    1440+0 records in
    1440+0 records out
    1474560 bytes (1.5 MB, 1.4 MiB) copied, 0.00121855 s, 1.2 GB/s
    mkdosfs -F 12 -n "IPFIRE_EFI" /tmp/cdrom/boot/isolinux/efiboot.img
    mkfs.fat 4.2 (2021-01-31)
    # Mount the EFI image
    mkdir -pv /tmp/efiboot.img
    mkdir: created directory '/tmp/efiboot.img'
    mount -o loop /tmp/cdrom/boot/isolinux/efiboot.img /tmp/efiboot.img
    mount: /tmp/efiboot.img: mount failed: Unknown error -1
    make: *** [cdrom:193: /usr/src/log/cdrom] Error 32

ERROR: Building cdrom [FAIL]
    Check /tmp/sandbox/ipfire-2.x/log/_build.packages.log for errors if applicable [FAIL]

```

What is missing here?

---

<div class="post-metadata">

**Author:** ![arne\_f](https://community.ipfire.org/user_avatar/community.ipfire.org/arne_f/32/12760_2.png) [@arne\_f](https://community.ipfire.org/u/arne_f)\
**Post date:** [10 January 2022 18:48 UTC](https://community.ipfire.org/t/cryptsetup-unsupported-luks-version-2/6969/44 "2022-01-10T18:48:20Z")

</div>

looks like loop mounts (mounting a disk image file) are not allowed or you have a desktop environment with a strange automount feature.

---

<div class="post-metadata">

**Author:** ![dyle](https://community.ipfire.org/user_avatar/community.ipfire.org/dyle/32/8232_2.png) [@dyle](https://community.ipfire.org/u/dyle)\
**Post date:** [10 January 2022 20:50 UTC](https://community.ipfire.org/t/cryptsetup-unsupported-luks-version-2/6969/45 "2022-01-10T20:50:25Z")

</div>

can I remove cdrom from the build?

---

<div class="post-metadata">

**Author:** ![bonnietwin](https://community.ipfire.org/user_avatar/community.ipfire.org/bonnietwin/32/12350_2.png) [@bonnietwin](https://community.ipfire.org/u/bonnietwin)\
**Post date:** [10 January 2022 21:30 UTC](https://community.ipfire.org/t/cryptsetup-unsupported-luks-version-2/6969/46 "2022-01-10T21:30:29Z")

</div>

That is not an inherent aspect of archlinux.

I use archlinux for my build system, runni g with an xfce4 desktop and I have never had that problem.

[Previous page](https://community.ipfire.org/t/cryptsetup-unsupported-luks-version-2/6969.md?page=2)
