forked from sig_core/kickstarts
add additional comment to avoid overwrites
This commit is contained in:
parent
664f63a052
commit
7c1eeb81a0
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user