Don't install memtest86 on EFI systems.

This commit is contained in:
Darren 'Tadgy' Austin 2022-08-10 21:20:06 +01:00
commit bf80b41069

View file

@ -5,13 +5,13 @@ umask 022
# Create /opt directories.
mkdir -p -m 755 {/opt,/opt/{bin,include,info,lib64,man,man/man{0..8},sbin,share}}
# Install the LetsEncrypt CA bundles, to stop wget moaning.
# Install the CA bundles, to stop wget moaning.
cp -R ca-certificates /usr/local/share
update-ca-certificates
# Install memtest86 into /boot.
# Only install if /boot exists, so we are container compatible.
[ -e /boot ] && cp memtest86+ /boot
[[ -e /boot ]] && [[ ! -e /boot/efi ]] && cp memtest86+ /boot
# Install root's new crontab.
cat root.crontab >/var/spool/cron/crontabs/root