CentOS/luks: disable SSH/user+password ONE scripts

This commit is contained in:
fnux 2020-07-06 10:43:27 +02:00
parent 4dab15fae2
commit c0f32f78e3
1 changed files with 4 additions and 0 deletions

View File

@ -19,6 +19,7 @@ LOOPBACK_DEVICE=/dev/loop0
LUKS_PASSPHRASE=secret
LUKS_DEVICE_NAME=cryptroot
LUKS_DEVICE="/dev/mapper/$LUKS_DEVICE_NAME"
DISABLED_ONE_SCRIPTS="loc-20-set-username-password loc-22-ssh_public_key"
ONE_CONTEXT_RPM_URL="https://github.com/OpenNebula/addon-context-linux/releases/download/v5.10.0/one-context-5.10.0-1.el$RELEASE.noarch.rpm"
ONE_CONTEXT_RPM_PATH=/root/one-context.rpm
@ -113,6 +114,9 @@ EOF
curl -L "$ONE_CONTEXT_RPM_URL" > "/mnt$ONE_CONTEXT_RPM_PATH"
run_root dnf -y install "$ONE_CONTEXT_RPM_PATH"
run_root rm "$ONE_CONTEXT_RPM_PATH"
for script in "$DISABLED_ONE_SCRIPTS"; do
run_root rm "/etc/one-context.d/$script"
done
# Install resize2fs, which is required to resize the root file-system.
run_root dnf -y install e2fsprogs