Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/hooks/archiso_pxe_http
diff options
context:
space:
mode:
Diffstat (limited to 'hooks/archiso_pxe_http')
-rw-r--r--hooks/archiso_pxe_http15
1 files changed, 10 insertions, 5 deletions
diff --git a/hooks/archiso_pxe_http b/hooks/archiso_pxe_http
index 5e55356..bf2f5f4 100644
--- a/hooks/archiso_pxe_http
+++ b/hooks/archiso_pxe_http
@@ -1,7 +1,8 @@
#!/bin/ash
run_hook() {
- # shellcheck disable=SC2154 # defined via initcpio's parse_cmdline()
+ # shellcheck disable=SC2154
+ # defined via initcpio's parse_cmdline()
if [ -n "${ip}" ] && [ -n "${archiso_http_srv}" ]; then
# booting with http is always copy-to-ram, so set here to make sure
@@ -24,7 +25,8 @@ _curl_get() {
local _dst="${2}"
msg ":: Downloading '${_url}'"
- # shellcheck disable=SC2154 # defined via initcpio's parse_cmdline()
+ # shellcheck disable=SC2154
+ # defined via initcpio's parse_cmdline()
if ! curl -L -f -o "/run/archiso/httpspace/${archisobasedir}${_dst}/${_url##*/}" --create-dirs "${_url}"; then
echo "ERROR: Downloading '${_url}'"
echo " Falling back to interactive prompt"
@@ -40,14 +42,17 @@ archiso_pxe_http_mount_handler () {
mkdir -p "/run/archiso/httpspace"
mount -t tmpfs -o size="${archiso_http_spc}",mode=0755 httpspace "/run/archiso/httpspace"
- # shellcheck disable=SC2154 # defined via initcpio's parse_cmdline()
+ # shellcheck disable=SC2154
+ # defined via initcpio's parse_cmdline()
_curl_get "${archiso_http_srv}${archisobasedir}/${arch}/airootfs.sfs" "/${arch}"
- # shellcheck disable=SC2154 # defined via initcpio's parse_cmdline()
+ # shellcheck disable=SC2154
+ # defined via initcpio's parse_cmdline()
if [ "${checksum}" = "y" ]; then
_curl_get "${archiso_http_srv}${archisobasedir}/${arch}/airootfs.sha512" "/${arch}"
fi
- # shellcheck disable=SC2154 # defined via initcpio's parse_cmdline()
+ # shellcheck disable=SC2154
+ # defined via initcpio's parse_cmdline()
if [ "${verify}" = "y" ]; then
_curl_get "${archiso_http_srv}${archisobasedir}/${arch}/airootfs.sfs.sig" "/${arch}"
fi