From e9d0356b8ccd6f6eb0cdf6f07735f8cf8de90808 Mon Sep 17 00:00:00 2001 From: fdupoux Date: Sun, 2 Aug 2020 09:01:29 +0100 Subject: [PATCH] Fix to remove warning during boot when there are no autorun scripts --- patches/archiso-06-autorun-copytoram.patch | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/patches/archiso-06-autorun-copytoram.patch b/patches/archiso-06-autorun-copytoram.patch index 0910d57..d3dd36d 100644 --- a/patches/archiso-06-autorun-copytoram.patch +++ b/patches/archiso-06-autorun-copytoram.patch @@ -6,7 +6,7 @@ index 3eb7ac7..e4585af 100644 _mnt_sfs "/run/archiso/bootmnt/${archisobasedir}/${arch}/airootfs.sfs" "/run/archiso/sfs/airootfs" -+ if [[ "${copytoram}" == "y" ]] && ls -lh /run/archiso/bootmnt/autorun* >/dev/null; then ++ if [[ "${copytoram}" == "y" ]] && ls -lh /run/archiso/bootmnt/autorun* >/dev/null 2>/dev/null; then + msg -n ":: Copying autorun scripts to RAM..." + if ! cp /run/archiso/bootmnt/autorun* /run/archiso/copytoram/ ; then + echo "ERROR: while copy '/run/archiso/bootmnt/autorun*' to '/run/archiso/copytoram/'"