diff --git a/Rocky-9-Azure-Base.ks b/Rocky-9-Azure-Base.ks index 16e3050..b404743 100644 --- a/Rocky-9-Azure-Base.ks +++ b/Rocky-9-Azure-Base.ks @@ -157,6 +157,7 @@ EOL echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers diff --git a/Rocky-9-Azure-LVM.ks b/Rocky-9-Azure-LVM.ks index 0128c52..2a225e6 100644 --- a/Rocky-9-Azure-LVM.ks +++ b/Rocky-9-Azure-LVM.ks @@ -179,6 +179,7 @@ EOL echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers diff --git a/Rocky-9-EC2-Base.ks b/Rocky-9-EC2-Base.ks index aabd0e8..bbadb35 100644 --- a/Rocky-9-EC2-Base.ks +++ b/Rocky-9-EC2-Base.ks @@ -152,6 +152,7 @@ if ! grep -q growpart /etc/cloud/cloud.cfg; then fi # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers diff --git a/Rocky-9-EC2-LVM.ks b/Rocky-9-EC2-LVM.ks index e8c56d1..d2972d6 100644 --- a/Rocky-9-EC2-LVM.ks +++ b/Rocky-9-EC2-LVM.ks @@ -175,6 +175,7 @@ if ! grep -q growpart /etc/cloud/cloud.cfg; then fi # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers diff --git a/Rocky-9-GenericCloud-Base.ks b/Rocky-9-GenericCloud-Base.ks index c9895e0..18b33f1 100644 --- a/Rocky-9-GenericCloud-Base.ks +++ b/Rocky-9-GenericCloud-Base.ks @@ -173,6 +173,7 @@ fi sed -i 's/^system_info:/locale: C.UTF-8\nsystem_info:/' /etc/cloud/cloud.cfg # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg diff --git a/Rocky-9-GenericCloud-LVM.ks b/Rocky-9-GenericCloud-LVM.ks index 39a4a64..d534b80 100644 --- a/Rocky-9-GenericCloud-LVM.ks +++ b/Rocky-9-GenericCloud-LVM.ks @@ -196,6 +196,7 @@ fi sed -i 's/^system_info:/locale: C.UTF-8\nsystem_info:/' /etc/cloud/cloud.cfg # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg diff --git a/Rocky-9-OCP.ks b/Rocky-9-OCP.ks index 97f93c0..c446ab9 100644 --- a/Rocky-9-OCP.ks +++ b/Rocky-9-OCP.ks @@ -137,6 +137,7 @@ EOL echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg diff --git a/cloud/rocky-azure-base.ks b/cloud/rocky-azure-base.ks index 51e00cb..00d66c8 100644 --- a/cloud/rocky-azure-base.ks +++ b/cloud/rocky-azure-base.ks @@ -123,6 +123,7 @@ EOL echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers diff --git a/cloud/rocky-azure-lvm.ks b/cloud/rocky-azure-lvm.ks index 0ec8fae..930c5bc 100644 --- a/cloud/rocky-azure-lvm.ks +++ b/cloud/rocky-azure-lvm.ks @@ -123,6 +123,7 @@ EOL echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers diff --git a/cloud/rocky-ec2-base.ks b/cloud/rocky-ec2-base.ks index d1d7742..e9ff7f2 100644 --- a/cloud/rocky-ec2-base.ks +++ b/cloud/rocky-ec2-base.ks @@ -81,6 +81,7 @@ if ! grep -q growpart /etc/cloud/cloud.cfg; then fi # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers diff --git a/cloud/rocky-ec2-lvm.ks b/cloud/rocky-ec2-lvm.ks index 8a53c57..62f7e5d 100644 --- a/cloud/rocky-ec2-lvm.ks +++ b/cloud/rocky-ec2-lvm.ks @@ -81,6 +81,7 @@ if ! grep -q growpart /etc/cloud/cloud.cfg; then fi # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers diff --git a/cloud/rocky-genclo-base.ks b/cloud/rocky-genclo-base.ks index c4ceaaf..bc876f4 100644 --- a/cloud/rocky-genclo-base.ks +++ b/cloud/rocky-genclo-base.ks @@ -91,6 +91,7 @@ fi sed -i 's/^system_info:/locale: C.UTF-8\nsystem_info:/' /etc/cloud/cloud.cfg # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg diff --git a/cloud/rocky-genclo-lvm.ks b/cloud/rocky-genclo-lvm.ks index 0231415..465c596 100644 --- a/cloud/rocky-genclo-lvm.ks +++ b/cloud/rocky-genclo-lvm.ks @@ -91,6 +91,7 @@ fi sed -i 's/^system_info:/locale: C.UTF-8\nsystem_info:/' /etc/cloud/cloud.cfg # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg diff --git a/cloud/rocky-ocp.ks b/cloud/rocky-ocp.ks index 4610d69..d8ab89d 100644 --- a/cloud/rocky-ocp.ks +++ b/cloud/rocky-ocp.ks @@ -83,6 +83,7 @@ EOL echo "RUN_FIRSTBOOT=NO" > /etc/sysconfig/firstboot # rocky cloud user +sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg