clevis icon indicating copy to clipboard operation
clevis copied to clipboard

New initramfs does not respect build prefix

Open jmarcelletti opened this issue 5 years ago • 0 comments

Output below but the things of note are this: Installing /tmp/clevis/build/src/initramfs-tools/hooks/clevis to /usr/share/initramfs-tools/hooks Installing /tmp/clevis/build/src/initramfs-tools/scripts/local-top/clevis to /usr/share/initramfs-tools/scripts/local-top Installing /tmp/clevis/build/src/initramfs-tools/scripts/local-bottom/clevis to /usr/share/initramfs-tools/scripts/local-bottom

These don't go into /build/ as specified by the meson prefix.

cd /tmp && \
git clone https://github.com/latchset/clevis.git && \
cd clevis && \
git checkout v12 && \
meson build --prefix=/build && \
ninja -C build -j$(nproc) && \
ninja -C build install

Cloning into 'clevis'... remote: Enumerating objects: 44, done. remote: Counting objects: 100% (44/44), done. remote: Compressing objects: 100% (35/35), done. remote: Total 1331 (delta 19), reused 22 (delta 9), pack-reused 1287 Receiving objects: 100% (1331/1331), 371.59 KiB | 2.84 MiB/s, done. Resolving deltas: 100% (857/857), done. Note: checking out 'v12'.

You are in 'detached HEAD' state. You can look around, make experimental changes and commit them, and you can discard any commits you make in this state without impacting any branches by performing another checkout.

If you want to create a new branch to retain commits you create, you may do so (now or later) by using -b with the checkout command again. Example:

git checkout -b

HEAD is now at dabff02 Release version 12 The Meson build system Version: 0.45.1 Source dir: /tmp/clevis Build dir: /tmp/clevis/build Build type: native build Project name: clevis Native C compiler: cc (gcc 7.4.0 "cc (Ubuntu 7.4.0-1ubuntu1~18.04.1) 7.4.0") Build machine cpu family: x86_64 Build machine cpu: x86_64 Found pkg-config: /usr/bin/pkg-config (0.29.1) Native dependency jansson found: YES 2.11 Native dependency jose found: YES 10 Program a2x found: NO Dependency bash-completion found: NO src/bash/meson.build:7: WARNING: Will not install bash completion due to missing dependencies! Native dependency luksmeta found: YES 8 Program pwmake found: YES (/usr/bin/pwmake) Native dependency libcryptsetup found: NO found '2.0.2' but need: '>=2.0.4' Dependency libcryptsetup found: NO Native dependency libcryptsetup found: YES 2.0.2 src/luks/meson.build:13: WARNING: Old version of cryptsetup found, forcing use of luksmeta Configuring clevis-luks-bind using configuration Configuring clevis-luks-unbind using configuration Configuring clevis-luks-unlock using configuration Dependency systemd found: NO src/luks/systemd/meson.build:18: WARNING: Will not install systemd support due to missing dependencies! Dependency audit found: NO Dependency udisks2 found: NO Dependency gio-2.0 found: NO src/luks/udisks2/meson.build:21: WARNING: Will not build udisks2 support due to missing dependencies! Configuring tests-common-functions using configuration Program bind-wrong-pass-luks1 found: YES (/tmp/clevis/src/luks/tests/bind-wrong-pass-luks1) Program bind-luks1 found: YES (/tmp/clevis/src/luks/tests/bind-luks1) Program unbind-unbound-slot-luks1 found: YES (/tmp/clevis/src/luks/tests/unbind-unbound-slot-luks1) Program unbind-luks1 found: YES (/tmp/clevis/src/luks/tests/unbind-luks1) Program bind-key-file-non-interactive-luks1 found: YES (/tmp/clevis/src/luks/tests/bind-key-file-non-interactive-luks1) Program bind-pass-with-newline-luks1 found: YES (/tmp/clevis/src/luks/tests/bind-pass-with-newline-luks1) Program bind-pass-with-newline-keyfile-luks1 found: YES (/tmp/clevis/src/luks/tests/bind-pass-with-newline-keyfile-luks1) Program bind-already-used-luksmeta-slot found: YES (/tmp/clevis/src/luks/tests/bind-already-used-luksmeta-slot) Native dependency libcrypto found: YES 1.1.1 Program /tmp/clevis/src/pins/sss/pin-sss found: YES (/tmp/clevis/src/pins/sss/pin-sss) Program /tmp/clevis/src/pins/sss/pin-test found: YES (/tmp/clevis/src/pins/sss/pin-test) Program systemd-socket-activate found: NO Program systemd-activate found: NO Program /build/libexec/tangd-keygen found: NO Program /usr/libexec/tangd-keygen found: NO Program /usr/lib/x86_64-linux-gnu/tangd-keygen found: YES (/usr/lib/x86_64-linux-gnu/tangd-keygen) Program /build/libexec/tangd-update found: NO Program /usr/libexec/tangd-update found: NO Program /usr/lib/x86_64-linux-gnu/tangd-update found: YES (/usr/lib/x86_64-linux-gnu/tangd-update) Program /build/libexec/tangd found: NO Program /usr/libexec/tangd found: NO Program /usr/lib/x86_64-linux-gnu/tangd found: YES (/usr/lib/x86_64-linux-gnu/tangd) Program curl found: YES (/usr/bin/curl) src/pins/tang/meson.build:45: WARNING: Will not run tang tests due to missing dependencies! Program tpm2_createprimary found: NO src/pins/tpm2/meson.build:14: WARNING: Will not install tpm2 pin due to missing dependencies! Program pin-tpm2 found: YES (/tmp/clevis/src/pins/tpm2/pin-tpm2) Program update-initramfs found: YES (/usr/sbin/update-initramfs) Configuring clevis using configuration Configuring clevis using configuration Configuring clevis using configuration meson.build:60: WARNING: Will not build man pages due to missing dependencies! Build targets in project: 2 Found ninja-1.8.2 at /usr/bin/ninja ninja: Entering directory build' [6/6] Linking target src/pins/sss/clevis-encrypt-sss. ninja: Entering directory build' [0/1] Installing files. Installing src/pins/sss/clevis-decrypt-sss to /build/bin/clevis-decrypt-sss Installing src/pins/sss/clevis-encrypt-sss to /build/bin/clevis-encrypt-sss Installing /tmp/clevis/build/src/initramfs-tools/hooks/clevis to /usr/share/initramfs-tools/hooks Installing /tmp/clevis/build/src/initramfs-tools/scripts/local-top/clevis to /usr/share/initramfs-tools/scripts/local-top Installing /tmp/clevis/build/src/initramfs-tools/scripts/local-bottom/clevis to /usr/share/initramfs-tools/scripts/local-bottom Installing /tmp/clevis/build/src/luks/clevis-luks-unbind to /build/bin Installing /tmp/clevis/build/src/luks/clevis-luks-unlock to /build/bin Installing /tmp/clevis/build/src/luks/clevis-luks-bind to /build/bin Installing /tmp/clevis/src/pins/tang/clevis-decrypt-tang to /build/bin Installing /tmp/clevis/src/pins/tang/clevis-encrypt-tang to /build/bin Installing /tmp/clevis/src/clevis-decrypt to /build/bin Installing /tmp/clevis/src/clevis to /build/bin root@5329c38bb3ef:/tmp/clevis#

jmarcelletti avatar Feb 23 '20 02:02 jmarcelletti