Yes, that should work as well but only affects one substitution per backslash whereas single quotes disable it globally (whole cat). I'm not sure why you choose that more error prone way (especially as you don't need substitution at all in the cat process) but its your decision.
See Example 19-7. Parameter substitution turned off: http://www.tldp.org/LDP/abs/html/here-docs.html
Search Criteria
Package Details: memtest86-efi 1:11.1build1000-1
Package Actions
Git Clone URL: | https://aur.archlinux.org/memtest86-efi.git (read-only, click to copy) |
---|---|
Package Base: | memtest86-efi |
Description: | A free, thorough, stand alone memory test as an EFI application |
Upstream URL: | https://www.memtest86.com |
Licenses: | GPL2, custom:PassMark |
Submitter: | UnicornDarkness |
Maintainer: | UnicornDarkness |
Last Packager: | UnicornDarkness |
Votes: | 113 |
Popularity: | 0.086110 |
First Submitted: | 2013-10-29 10:25 (UTC) |
Last Updated: | 2024-10-31 09:57 (UTC) |
Dependencies (3)
- p7zip (p7zip-natspecAUR, p7zip-full-binAUR, 7zip) (make)
- efibootmgr (efibootmgr-gitAUR) (optional) – to add a new EFI boot entry
- grub (grub-coreosAUR, grub-xen-gitAUR, grub-luks-keyfileAUR, grub-silentAUR, grub-gitAUR, grub-improved-luks2-gitAUR, grub-grubenv-btrfsAUR, grub-libzfsAUR) (optional) – to add MemTest86 entry in GRUB2 menu
Required by (0)
Sources (4)
Latest Comments
« First ‹ Previous 1 .. 5 6 7 8 9 10 11 12 13 14 15 Next › Last »
Maniaxx commented on 2016-10-03 18:50 (UTC)
UnicornDarkness commented on 2016-10-03 15:23 (UTC)
Yes, I understand that, that's why I think using [ "\$grub_platform" = "efi" ] should fix this problem.
[ "x" = xefi ] is a nonsense, it should be always false.
Maniaxx commented on 2016-10-02 20:36 (UTC)
What i wanted to tell you is that this exactly happened here. Your script just copied this line: [ "x" = xefi ] and thus broke the condition completely in grub.cfg so the entry could never appear. I'm aware how that x comparison works. It started working properly once the single quotes around EOF were set.
UnicornDarkness commented on 2016-10-02 16:01 (UTC) (edited on 2016-10-02 16:02 (UTC) by UnicornDarkness)
@Maniaxx: Ok, after looking files in /etc/grub.d, I've added missing shebang.
cat <<EOF is used is these scripts (I've removed training space before EOF). 'EOF' is not used.
In "x${grub_platform}", 'x' is useless. Should be "\$grub_platform" according to other scripts.
Changes are pushed. I don't increase pkgrel, due to memtest86-efi script doesn't update configuration.
Maniaxx commented on 2016-09-30 01:31 (UTC) (edited on 2016-09-30 20:02 (UTC) by Maniaxx)
The '86_memtest' script probably should start with #!/bin/sh like all the other scripts in /etc/grub.d (it works anyway though) and there's a bug in the first line (missing single quotes):
cat << EOF
should be:
cat << 'EOF'
Otherwise [ "x${grub_platform}" = xefi ] results in [ "x" = xefi ] as ${grub_platform} gets expanded at cat runtime from local environment (that is not set).
The single quotes make sure that the text gets copied literally.
zerophase commented on 2016-08-08 16:16 (UTC)
This issue applies to Haswell E chips as well. http://www.passmark.com/forum/memtest86/6061-interesting-issue-running-memtest86-v7-0-free-with-i7-6700k
UnicornDarkness commented on 2016-08-08 13:01 (UTC)
Fixed. Bump to 7.1 and use HTTP instead HTTPS.
gableroux commented on 2016-08-08 03:07 (UTC) (edited on 2016-08-08 03:13 (UTC) by gableroux)
Following commit added https:
https://aur.archlinux.org/cgit/aur.git/commit/PKGBUILD?h=memtest86-efi&id=705fb5c1c1769fd0d53aa097dde36c3fc83449c9
According to jamesan comment, I'd revert the commit to use the working http method until it gets fixed on their server.
I tried to play around and see if it works, but makepkg fails (md5 changed). When extracting memtest86-7.0.iso.tar.gz, I get Memtest86-7.1.iso.
md5 for memtest86-7.0.iso.tar.gz is the same as memtest86-7.1.iso.tar.gz
I managed to fix it by upgrading to 7.1 at the same time:
git revert 705fb5c1c1769fd0d53aa097dde36c3fc83449c9 + following patch:
diff --git a/.SRCINFO b/.SRCINFO
index 9668a77..5caeb36 100644
--- a/.SRCINFO
+++ b/.SRCINFO
@@ -1,8 +1,6 @@
-# Generated by mksrcinfo v8
-# Wed Jul 27 18:04:51 UTC 2016
pkgbase = memtest86-efi
pkgdesc = A free, thorough, stand alone memory test as an EFI application
- pkgver = 7.0
+ pkgver = 7.1
pkgrel = 1
url = http://www.memtest86.com
install = memtest86-efi.install
@@ -14,12 +12,12 @@ pkgbase = memtest86-efi
optdepends = efibootmgr: to add a new EFI boot entry
optdepends = grub: to add MemTest86 entry in GRUB2 menu
backup = etc/memtest86-efi/memtest86-efi.conf
- source = memtest86-7.0.iso.tar.gz::http://www.memtest86.com/downloads/memtest86-iso.tar.gz
+ source = memtest86-7.1.iso.tar.gz::http://www.memtest86.com/downloads/memtest86-iso.tar.gz
source = memtest86-efi
source = memtest86-efi.conf
source = grub.conf
source = systemd-boot.conf
- md5sums = c709d3147295defc50e3f2b0e779a88e
+ md5sums = ed0ffd04d2d9ce72fc2a9fd871ebdd98
md5sums = 6d78d97e54e9feb75e3b1f835297ffd8
md5sums = 6c096df3f55baf3e27c3bd605a418aa2
md5sums = f848ecf41edb2d95f469ff2251bcfa4a
diff --git a/PKGBUILD b/PKGBUILD
index 4fce194..407fb13 100644
--- a/PKGBUILD
+++ b/PKGBUILD
@@ -2,7 +2,7 @@
_pkgbasename=memtest86
pkgname=$_pkgbasename-efi
-pkgver=7.0
+pkgver=7.1
pkgrel=1
pkgdesc="A free, thorough, stand alone memory test as an EFI application"
arch=('i686' 'x86_64')
@@ -18,7 +18,7 @@ source=("$_pkgbasename-$pkgver.iso.tar.gz::http://www.memtest86.com/downloads/$_
"memtest86-efi.conf"
"grub.conf"
"systemd-boot.conf")
-md5sums=('c709d3147295defc50e3f2b0e779a88e'
+md5sums=('ed0ffd04d2d9ce72fc2a9fd871ebdd98'
'6d78d97e54e9feb75e3b1f835297ffd8'
'6c096df3f55baf3e27c3bd605a418aa2'
'f848ecf41edb2d95f469ff2251bcfa4a'
jamesan commented on 2016-07-28 16:48 (UTC)
The HTTPS URL to the ISO tarball no longer works. The non-secure HTTP URL works though: http://www.memtest86.com/downloads/memtest86-iso.tar.gz.
Pinned Comments
UnicornDarkness commented on 2019-06-08 08:52 (UTC) (edited on 2019-06-08 08:53 (UTC) by UnicornDarkness)
As you probably know, the
<https://www.memtest86.com/downloads/memtest86-usb.zip>
URL is likely to cause problems, like this error:To avoid this problem, I prefer to reupload
memtest86-usb.zip
archive somewhere else, where this kind of breakage will not appear.I can't upload this archive on AUR directly (archive is 8 MB but AUR accepts 250 KiB maximum), so I decide to put this archive on my Git repository to avoid future breakages.
I hope it suits you.