Cloud-init is the tool used to automate disk partitioning and package selection during a bare-metal operating system in…