### 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
### 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
### 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
### BEGIN TASK INFO
# Provides: InstallUnattend
-# RunBefore: UmountImage
+# RunBefore: EnforcePersonality
# RunAfter: MountImage
# Short-Description: Installs Unattend.xml for unattended windows setup
### END TASK INFO
### BEGIN TASK INFO
# Provides: SELinuxAutorelabel
-# RunBefore: UmountImage
+# RunBefore: EnforcePersonality
# RunAfter: MountImage
# Short-Description: Force the system to relabel at next boot
### END TASK INFO
### BEGIN TASK INFO
# Provides: AssignHostname
-# RunBefore: UmountImage
+# RunBefore: EnforcePersonality
# RunAfter: InstallUnattend
# Short-Description: Assign Hostname/Computer Name to the instance
### END TASK INFO
### BEGIN TASK INFO
# Provides: ChangePassword
-# RunBefore: UmountImage
+# RunBefore: EnforcePersonality
# RunAfter: InstallUnattend
# Short-Description: Changes Password for specified users
### END TASK INFO
### BEGIN TASK INFO
# Provides: FilesystemResizeMounted
-# RunBefore: UmountImage
+# RunBefore: EnforcePersonality
# RunAfter: InstallUnattend
# Short-Description: Resize filesystem to use all the available space
### END TASK INFO
### BEGIN TASK INFO
# Provides: EnforcePersonality
# RunBefore: UmountImage
-# RunAfter: DeleteSSHKeys
+# RunAfter: MountImage
# Short-Description: Inject files to the instance
### END TASK INFO
40InstallUnattend \
40SELinuxAutorelabel \
50AssignHostname \
- 50EnforcePersonality \
- 50FilesystemResizeMounted \
50ChangePassword \
+ 50FilesystemResizeMounted \
+ 60EnforcePersonality \
80UmountImage
edit = sed \