Allow for alternative grub config file
The grub config file passed into sed for the tty purge doesn't exist on fedora, causing image builds to fail. can't read /boot/grub/grub.cfg: No such file or directory Change-Id: I015abba81bf67e2ed7c5a2876adeaef641a6cc3c
This commit is contained in:
parent
9344eb9c31
commit
2e40ca389c
|
@ -1,4 +1,10 @@
|
|||
#!/bin/sh
|
||||
|
||||
sed -i -e 's/ console=ttyS0//' /etc/default/grub
|
||||
sed -i -e 's/ console=ttyS0//' /boot/grub/grub.cfg
|
||||
|
||||
GRUB_CONFIG_FILE=/boot/grub/grub.cfg
|
||||
if [ ! -e $GRUB_CONFIG_FILE ] ; then
|
||||
# Fedora grub config file location
|
||||
GRUB_CONFIG_FILE=/boot/grub/grub.conf
|
||||
fi
|
||||
sed -i -e 's/ console=ttyS0//' $GRUB_CONFIG_FILE
|
||||
|
|
Loading…
Reference in New Issue