Commit c50358a6 authored by Nikos Skalkotos's avatar Nikos Skalkotos
Browse files

Make sure EnforcePersonality runs last

When a users inject a file in an image that already exists,
we want to make sure that this file is not altered by any other task.
So, the EnforcePersonality task, is the last task that should run
before the image is unmounted.
parent 68ec47be
......@@ -19,7 +19,7 @@
### BEGIN TASK INFO
# Provides: AddSwap
# RunBefore: UmountImage
# RunBefore: EnforcePersonality
# RunAfter: MountImage
# Short-Description: Set up the swap partition and add an entry in fstab
### END TASK INFO
......
......@@ -19,7 +19,7 @@
### BEGIN TASK INFO
# Provides: DeleteSSHKeys
# RunBefore: UmountImage
# RunBefore: EnforcePersonality
# RunAfter: MountImage
# Short-Description: Remove ssh keys and in some cases recreate them
### END TASK INFO
......
......@@ -19,16 +19,16 @@
### BEGIN TASK INFO
# Provides: DisableRemoteDesktopConnections
# RunBefore: UmountImage
# RunBefore: EnforcePersonality
# RunAfter: MountImage
# Short-Description: Temporary Disable Remote Desktop Connections
### END TASK INFO
#
# This task will change the value of `fDenyTSConnection' registry key located in
# `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\' to
# "true". This will disable RDP connections. The key will change back to "false"
# during the specialize pass of the Windows setup.
# This task will change the value of `fDenyTSConnection' registry key located
# in `HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\' to
# "true". This will disable RDP connections. The key will change back to
# "false" during the specialize pass of the Windows setup.
#
set -e
......
......@@ -19,7 +19,7 @@
### BEGIN TASK INFO
# Provides: InstallUnattend
# RunBefore: UmountImage
# RunBefore: EnforcePersonality
# RunAfter: MountImage
# Short-Description: Installs Unattend.xml for unattended windows setup
### END TASK INFO
......
......@@ -19,7 +19,7 @@
### BEGIN TASK INFO
# Provides: SELinuxAutorelabel
# RunBefore: UmountImage
# RunBefore: EnforcePersonality
# RunAfter: MountImage
# Short-Description: Force the system to relabel at next boot
### END TASK INFO
......
......@@ -19,7 +19,7 @@
### BEGIN TASK INFO
# Provides: AssignHostname
# RunBefore: UmountImage
# RunBefore: EnforcePersonality
# RunAfter: InstallUnattend
# Short-Description: Assign Hostname/Computer Name to the instance
### END TASK INFO
......
......@@ -19,7 +19,7 @@
### BEGIN TASK INFO
# Provides: ChangePassword
# RunBefore: UmountImage
# RunBefore: EnforcePersonality
# RunAfter: InstallUnattend
# Short-Description: Changes Password for specified users
### END TASK INFO
......
......@@ -19,7 +19,7 @@
### BEGIN TASK INFO
# Provides: FilesystemResizeMounted
# RunBefore: UmountImage
# RunBefore: EnforcePersonality
# RunAfter: InstallUnattend
# Short-Description: Resize filesystem to use all the available space
### END TASK INFO
......
......@@ -20,7 +20,7 @@
### BEGIN TASK INFO
# Provides: EnforcePersonality
# RunBefore: UmountImage
# RunAfter: DeleteSSHKeys
# RunAfter: MountImage
# Short-Description: Inject files to the instance
### END TASK INFO
......
......@@ -10,9 +10,9 @@ dist_tasks_SCRIPTS = \
40InstallUnattend \
40SELinuxAutorelabel \
50AssignHostname \
50EnforcePersonality \
50FilesystemResizeMounted \
50ChangePassword \
50FilesystemResizeMounted \
60EnforcePersonality \
80UmountImage
edit = sed \
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment