use default/grub and an if check
This commit is contained in:
parent
f1ec5b7f57
commit
ad58d6e53f
@ -212,7 +212,10 @@ timeout 300;
|
|||||||
retry 60;
|
retry 60;
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
sed -i -e 's/ rhgb quiet//' /boot/grub2/grub.conf
|
if [ -f /boot/grub2/grub.conf ]; then
|
||||||
|
sed -i -e 's/ rhgb quiet//' /boot/grub2/grub.conf
|
||||||
|
fi
|
||||||
|
sed -i -e 's/ rhgb quiet//' /etc/default/grub
|
||||||
cat > /etc/modprobe.d/blacklist-nouveau.conf << EOL
|
cat > /etc/modprobe.d/blacklist-nouveau.conf << EOL
|
||||||
blacklist nouveau
|
blacklist nouveau
|
||||||
EOL
|
EOL
|
||||||
@ -425,7 +428,10 @@ EOF
|
|||||||
|
|
||||||
rpm --import /tmp/key
|
rpm --import /tmp/key
|
||||||
# remove these for debugging
|
# remove these for debugging
|
||||||
|
if [ -f /boot/grub2/grub.conf ]; then
|
||||||
sed -i -e 's/ rhgb quiet//' /boot/grub2/grub.conf
|
sed -i -e 's/ rhgb quiet//' /boot/grub2/grub.conf
|
||||||
|
fi
|
||||||
|
sed -i -e 's/ rhgb quiet//' /etc/default/grub
|
||||||
|
|
||||||
# enable resizing on copied AMIs
|
# enable resizing on copied AMIs
|
||||||
echo 'install_items+=" sgdisk "' > /etc/dracut.conf.d/sgdisk.conf
|
echo 'install_items+=" sgdisk "' > /etc/dracut.conf.d/sgdisk.conf
|
||||||
|
Loading…
Reference in New Issue
Block a user