Removing it there does not work
This commit is contained in:
parent
6b0903ec71
commit
38c80b01a4
@ -150,15 +150,6 @@ EOF
|
|||||||
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
echo -e 'rocky\tALL=(ALL)\tNOPASSWD: ALL' >> /etc/sudoers
|
||||||
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
sed -i '1i # Modified for cloud image' /etc/cloud/cloud.cfg
|
||||||
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
sed -i 's/name: cloud-user/name: rocky/g' /etc/cloud/cloud.cfg
|
||||||
|
|
||||||
# Remove unneeded EFI files to match an actual installed system
|
|
||||||
case "$(uname -m)" in
|
|
||||||
x86_64) arch="x64"; ARCH="X64";;
|
|
||||||
aarch64) arch="aa64"; ARCH="AA64";;
|
|
||||||
esac
|
|
||||||
test -f "/boot/efi/EFI/BOOT/grub${arch}.efi" && /bin/rm "/boot/efi/EFI/BOOT/grub${arch}.efi"
|
|
||||||
test -f "/boot/efi/EFI/BOOT/mm${arch}.efi" && /bin/rm "/boot/efi/EFI/BOOT/mm${arch}.efi"
|
|
||||||
test -f "/boot/efi/EFI/BOOT/grub.cfg" && /bin/rm "/boot/efi/EFI/BOOT/grub.cfg"
|
|
||||||
}
|
}
|
||||||
|
|
||||||
################################################################################
|
################################################################################
|
||||||
|
Loading…
Reference in New Issue
Block a user