1
0
Fork 0

setup: ks: Generate iSCSI initiator name

The iSCSI initiator needs a unique name.  It will generate one the first
time it starts if one does not already exist.  Since it tries to write
it to a file under `/etc`, this will fail, since the root filesystem is
read-only.  As such, we need to generate the name during installation,
when the filesystem is still writable.
dch-webhooks-secrets
Dustin 2022-08-23 21:22:01 -05:00
parent be2f0e5f72
commit 102d1fb919
1 changed files with 3 additions and 0 deletions

View File

@ -125,6 +125,9 @@ ln -sf /run/systemd/resolve/resolv.conf /etc/resolv.conf
/usr/libexec/openssh/sshd-keygen ed25519
/usr/libexec/openssh/sshd-keygen rsa
printf 'InitiatorName=%s\n' "$(/usr/sbin/iscsi-iname)" \
> /etc/iscsi/initiatorname.iscsi
cat > /etc/modules-load.d/k8s.conf <<'EOF'
br_netfilter
EOF