Browse Source

iscsi: do not replace the configuration in the host system

ln: failed to create symbolic link '/usr/lib/systemd/system/sockets.target.wants/iscsid.socket': Permission denied
  ln: failed to create symbolic link '/usr/lib/systemd/system/sockets.target.wants/iscsiuio.socket': Permission denied

No way. Just ensure the links are there in the initramfs image. In fact,
that is already the case for iscsiuio.socket. Add iscsid.socket too.
master
Lubomir Rintel 7 years ago committed by Harald Hoyer
parent
commit
9e82732dd4
  1. 4
      modules.d/95iscsi/module-setup.sh

4
modules.d/95iscsi/module-setup.sh

@ -208,9 +208,6 @@ install() { @@ -208,9 +208,6 @@ install() {
inst_libdir_file 'libgcc_s.so*'
inst_multiple umount hostname iscsi-iname iscsiadm iscsid

ln -sf $systemdsystemunitdir/iscsid.socket $systemdsystemunitdir/sockets.target.wants/iscsid.socket
ln -sf $systemdsystemunitdir/iscsiuio.socket $systemdsystemunitdir/sockets.target.wants/iscsiuio.socket

inst_multiple -o \
$systemdsystemunitdir/iscsid.socket \
$systemdsystemunitdir/iscsid.service \
@ -243,6 +240,7 @@ install() { @@ -243,6 +240,7 @@ install() {

mkdir -p "${initdir}/$systemdsystemunitdir/sockets.target.wants"
for i in \
iscsid.socket \
iscsiuio.socket \
; do
ln_r "$systemdsystemunitdir/${i}" "$systemdsystemunitdir/sockets.target.wants/${i}"

Loading…
Cancel
Save