From c71fca7360b7b9bea1cd5e25308a27e15907c5f5 Mon Sep 17 00:00:00 2001 From: Noel Georgi Date: Tue, 14 Nov 2023 01:46:44 +0530 Subject: [PATCH] fix: iscsi-tools install `prefix` Fixes the `iscsi-tools` install prefix to be `/usr/local`. This broke when moving from `make` to `meson`. Signed-off-by: Noel Georgi --- storage/iscsi-tools/iscsid.yaml | 7 +++++++ storage/iscsi-tools/open-iscsi/pkg.yaml | 11 +++++------ 2 files changed, 12 insertions(+), 6 deletions(-) diff --git a/storage/iscsi-tools/iscsid.yaml b/storage/iscsi-tools/iscsid.yaml index 4c53e6ee..e61a7cbf 100644 --- a/storage/iscsi-tools/iscsid.yaml +++ b/storage/iscsi-tools/iscsid.yaml @@ -61,6 +61,13 @@ container: options: - bind - ro + - source: /var/lib/iscsi + destination: /var/lib/iscsi + type: bind + options: + - rshared + - rbind + - rw - source: /run/lock/iscsi destination: /run/lock/iscsi type: bind diff --git a/storage/iscsi-tools/open-iscsi/pkg.yaml b/storage/iscsi-tools/open-iscsi/pkg.yaml index fa320767..436d1601 100644 --- a/storage/iscsi-tools/open-iscsi/pkg.yaml +++ b/storage/iscsi-tools/open-iscsi/pkg.yaml @@ -48,7 +48,9 @@ steps: meson setup \ -Db_lto=true \ -Dno_systemd=true \ - -Drulesdir="/usr/local/etc/udev/rules.d" \ + -Dprefix=/usr/local \ + -Discsi_sbindir=/usr/local/sbin \ + -Drulesdir=/usr/local/etc/udev/rules.d \ -Dc_args="$CFLAGS -I/usr/local/include -DNO_SYSTEMD -DGLOB_ONLYDIR=0" \ output @@ -59,11 +61,8 @@ steps: DESTDIR=/rootfs ninja -C output install # cleanup - rm -rf /rootfs/usr/local/share - rm -rf /rootfs/usr/local/include - rm -rf /rootfs/usr/local/lib/pkgconfig - rm -rf /rootfs/usr/local/etc/iscsi/ifaces - rm -rf /rootfs/etc + rm -rf /rootfs/usr/local/{share,include,pkgconfig} + rm -rf /rootfs/var/lib/iscsi cp /pkg/files/passwd /rootfs/usr/local/etc/passwd finalize: