tests/sanity: apply machine-id workaround if running from a cloud image
This commit is contained in:
parent
dc17b26471
commit
a19b8a2f6f
@ -97,6 +97,11 @@ rlJournalStart
|
||||
|
||||
# check kernel installation, must not create /boot/<machineid>
|
||||
if [ $UID -eq 0 ]; then
|
||||
rlLog "Apply machine-id workaround if running from a cloud image"
|
||||
pushd /boot/loader/entries/
|
||||
[ -f ffffffffffffffffffffffffffffffff-$(uname -r).conf ] && \
|
||||
mv ffffffffffffffffffffffffffffffff-$(uname -r).conf $(cat /etc/machine-id)-$(uname -r).conf
|
||||
popd
|
||||
if rlCheckRpm kernel-core; then
|
||||
rlRun "dnf -y reinstall kernel-core" 0 "Reinstalling the kernel to verify BLS scripts function"
|
||||
rlAssertNotExists /boot/`cat /etc/machine-id`
|
||||
|
||||
Loading…
Reference in New Issue
Block a user