/usr/share/tripleo-image-elements/remove-serial-console/finalise.d/60-purge-serial-console is in python-tripleo-image-elements 0.7.1-1.
This file is owned by root:root, with mode 0o755.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 | #!/bin/sh
sed -i -e 's/ console=ttyS0//' /etc/default/grub
GRUB_CONFIG_FILE=""
if [ -e /boot/grub/grub.cfg ] ; then
# Ubuntu and Debian are using /boot/grub/grub.cfg for the grub2
# configuration
GRUB_CONFIG_FILE=/boot/grub/grub.cfg
elif [ -e /boot/grub2/grub.cfg ]; then
# On openSUSE and recent Fedora releases the grub2 config resides
# in /boot/grub2/grub.cfg
GRUB_CONFIG_FILE=/boot/grub2/grub.cfg
fi
if [ "$GRUB_CONFIG_FILE" ]; then
sed -i -e 's/ console=ttyS0//' $GRUB_CONFIG_FILE
fi
|