[firsttime boot] suppress error message on platforms not supporting kdump (#9521)
Why I did it Eliminate benign firsttime boot error reported when running on platforms that do not support kdump. How I did it Change rc.local to check for presence of the file /etc/default/kdump-tools before referencing it. How to verify it Install a new image on an armhf or arm64 platform and check for a failed reference to /etc/default/kdump-tools on firsttime boot.
This commit is contained in:
parent
b450cd157b
commit
c715bdbf56
@ -382,7 +382,7 @@ if [ -f $FIRST_BOOT_FILE ]; then
|
||||
ebtables_config
|
||||
|
||||
# Kdump tools configuration
|
||||
sed -i -e "s/__PLATFORM__/$platform/g" /etc/default/kdump-tools
|
||||
[ -f /etc/default/kdump-tools ] && sed -i -e "s/__PLATFORM__/$platform/g" /etc/default/kdump-tools
|
||||
|
||||
firsttime_exit
|
||||
fi
|
||||
|
Loading…
Reference in New Issue
Block a user