Skip to content

Commit

Permalink
fix: iscsi-tools install prefix
Browse files Browse the repository at this point in the history
Fixes the `iscsi-tools` install prefix to be `/usr/local`. This broke
when moving from `make` to `meson`.

Signed-off-by: Noel Georgi <[email protected]>
  • Loading branch information
frezbo committed Nov 13, 2023
1 parent 2f8e401 commit 2859c23
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
7 changes: 7 additions & 0 deletions storage/iscsi-tools/iscsid.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
12 changes: 6 additions & 6 deletions storage/iscsi-tools/open-iscsi/pkg.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -59,11 +61,9 @@ 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
# we generate a one time initiatorname.iscsi when the iscsid-wrapper starts.
rm -rf /rootfs/usr/local/{etc/iscsi/initiatorname.iscsi,share,include,pkgconfig}
rm -rf /rootfs/var/lib/iscsi
cp /pkg/files/passwd /rootfs/usr/local/etc/passwd
finalize:
Expand Down

0 comments on commit 2859c23

Please sign in to comment.