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
parent
be2f0e5f72
commit
102d1fb919
|
@ -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 ed25519
|
||||||
/usr/libexec/openssh/sshd-keygen rsa
|
/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'
|
cat > /etc/modules-load.d/k8s.conf <<'EOF'
|
||||||
br_netfilter
|
br_netfilter
|
||||||
EOF
|
EOF
|
||||||
|
|
Loading…
Reference in New Issue